Hi,
i have the following document:
<order>
<key><landId>0012</landId>....here are other key elements......</key>
.....here are other elements.........
<item>
<name>name1</name>
</item>
<item>
<name>name2</name>
</item>
.....here are other elements.........
</order>
I want to get the sorted Item List of the order with its landId.
question:
how can i sort the items by name?
I used the following xquery and have got an error message:sequernce occurrend where atomic value required.
for $q in input()/order
where $q/key/landId='0012'
sort by ($q/item/name)
return <myOrder><land>{$q/key/landId}</land>{$q/item} </myOrder>
How can i solve this problem?
Thank u in advance.
Chacha
#API-Management#webMethods#Tamino