declare namespace esb = "http://www.ferguson.com/esb";
declare option ddtek:serialize "omit-xml-declaration=no,indent=yes";
for $Order at $orderPos in doc('converter:file:///c:/XML_021608/storefront_send.conv?file:///c:/XML_021608/zzedi856_o.dat')/root/Order
return
ddtek:serialize-to-url(
{
$Order/Orderno/text()
}
{
$Order/Address/text()
}
{
$Order/Address2/text()
}
, concat("esb-",$orderPos, ".xml"), "")(: Stylus Studio meta-information - (c) 2004-2008. Progress Software Corporation. All rights reserved.
:)