XQuery how to keep order of elements?



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

.



Relevant Pages

  • Re: Evenings Pleasures? Tuesday 9-6-05
    ... filter. ... Classy. ... Paul ... Prev by Date: ...
    (alt.smokers.pipes)
  • Re: xpath search by LocalName
    ... is there somewhere (book or website) that is ... > Paul wrote: ... > then add a predicate in square brackets to filter on the local name e.g. ... Prev by Date: ...
    (microsoft.public.dotnet.xml)
  • Re: Can Xnews kill on ISP adress ?
    ... > If you want the filter to apply to all groups, ... Bert Hyman | St. Paul, ... Prev by Date: ...
    (news.software.readers)
  • Urgent question on filtering view
    ... this is an urgent question, ... I need to have a view for a form library in wich only one user, DOM\User, ... value DOM\User for all the forms and I added a filter for that view with the ... Prev by Date: ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Update on laser distance meter project (master thesis) and question
    ... I should also of mentioned to filter the signal carefully just before the ... limiter, i think this is most important, if you have not done so already. ... bandwidth you are using wich might be considerable. ... Prev by Date: ...
    (sci.electronics.design)