Subject:Remove Empty tags Author:Rajat Nair Date:03 Mar 2009 11:48 AM
Hi,
I m facing a similar issue to the one mentioned in the previous "Remove Empty tags" topic and tried the solution mentioned by adding in the if statement.
for $Contact in /*:AcknowledgePurchaseOrder/*:DataArea/*:PurchaseOrder/*:PurchaseOrderHeader/*:SupplierParty/*:Contact
ERROR [STDERR] Error on line 131 column 24
XPST0008: XQuery static error in #... if($Contact/*:#:
Variable $Contact has not been declared.
Should the variable declaration in the for loop be good enough for the variable to be used within the for loop in a if statement?I m confused as to what i m doing wrong in the above code snippet.