Jump to content

xpath sorting


silverbux

Recommended Posts

XPath 1.0 results are sorted in their document order by default and you can't change that. What you can do in XSLT at least though is to use the <xsl:sort/> element to re-sort the output. In other environments, you'll have to use other equivalents for now.XPath 2.0 and XQuery will provide options for sorting, thus allowing all environments to sort their results, not only the ouput.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...