Jump to content

sorting in xpath


lookin_vijay

Recommended Posts

Well, you can't. But in XSLT for example, you may use the <xsl:sort> element to sort. There you'll use an XPath expression (most of the times, a single node) to sort by. Other languages also implement their own ways of sorting. The reason for XPath not having sorting is that we are talking the exact same output with only a difference in the order. XPath is for selecting, not presenting.

Link to comment
Share on other sites

Well, you can't. But in XSLT for example, you may use the <xsl:sort> element to sort. There you'll use an XPath expression (most of the times, a single node) to sort by. Other languages also implement their own ways of sorting. The reason for XPath not having sorting is that we are talking the exact same output with only a difference in the order. XPath is for selecting, not presenting.

Thankyou verymuch for the promt reply
Link to comment
Share on other sites

  • 2 months later...

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...