Is there a way to query an XML document to return the maximum of a given attribute using Xpath 1.0 ?
For example is there a way to get the max id ?
&
In XPath 2.0, use the max function. To find the book with the highest id, do
max
id
/library/book[@id = max(/library/book/@id)]