I have something like this but it is giving a syntax erro can someone help me:
<cfscript>
numSrcinfo=ArrayLen(mydoc.metadata.dataqual.lineage.XmlChildren);
num=ArrayLen(mydoc.metadata.dataqual.lineage.procstep);
numLinage=numSrcinfo-num;
for(k=1;
k LTE #numLinage#;
k = k+1)
{
if (IsDefined("mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText")
Originator[k] = "#mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText#";
else
" ";
</cfscript>
The error is:
Parameter 1 of function IsDefined, which is now "mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText", must be a syntactically valid variable name.
The Error Occurred in C:\iPlanet\Servers\docs\XML\test1.cfm: line 12
10 : k LTE #numLinage#;
11 : k = k+1)
12 : {
13 : if (IsDefined("mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText")
14 : Originator[k] = "#mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText#";
I am not sure what can be correct syntax here:
if (IsDefined("mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText")
<cfscript>
numSrcinfo=ArrayLen(mydoc.metadata.dataqual.lineage.XmlChildren);
num=ArrayLen(mydoc.metadata.dataqual.lineage.procstep);
numLinage=numSrcinfo-num;
for(k=1;
k LTE #numLinage#;
k = k+1)
{
if (IsDefined("mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText")
Originator[k] = "#mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText#";
else
" ";
</cfscript>
The error is:
Parameter 1 of function IsDefined, which is now "mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText", must be a syntactically valid variable name.
The Error Occurred in C:\iPlanet\Servers\docs\XML\test1.cfm: line 12
10 : k LTE #numLinage#;
11 : k = k+1)
12 : {
13 : if (IsDefined("mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText")
14 : Originator[k] = "#mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText#";
I am not sure what can be correct syntax here:
if (IsDefined("mydoc.metadata.dataqual.lineage.srcinfo[k].srccite.citeinfo.origin.XMLText")