silverbux Posted October 16, 2006 Share Posted October 16, 2006 is there a way to sort the result of xpath query? like "order by" in mysql Link to comment Share on other sites More sharing options...
boen_robot Posted October 17, 2006 Share Posted October 17, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now