XQuery how to keep order of elements?
- From: "paul.rusu@xxxxxxxxx" <paul.rusu@xxxxxxxxx>
- Date: 6 Dec 2005 04:30:56 -0800
I have a element "v" wich has different types of objects a,b,c.
and i do:
for $x in $doc/v/a where ... return $x
for $x in $doc/v/b where ... return $x
for $x in $doc/v/c where ... return $x
for each of them to filter them by conditions.
This way i get all the objects of type a, than all objects of type b,
than all obj of type c.
But I would like to have them in the original (mixed) order.
How to keep this order. Someone told me I could add a order by field.
But still I have to say "for each element whatever type, if it is of
type a than, else..". How do I say this in Xquery?
Paul
.
- Follow-Ups:
- Re: XQuery how to keep order of elements?
- From: Priscilla Walmsley
- Re: XQuery how to keep order of elements?
- Prev by Date: XSLT how to find 2nd next sibling?
- Next by Date: Re: XSLT how to find 2nd next sibling?
- Previous by thread: XSLT how to find 2nd next sibling?
- Next by thread: Re: XQuery how to keep order of elements?
- Index(es):
Relevant Pages
|