XPath 1.0 - how to retrieve minimum or maximum

S

Stefan Franke

Hi,
I'm trying to figure out if it's possible to find out a minimum or a maximum
via XPath 1.0.

The XML document I'm working on looks like this:

<doc>
<val>10</val>
<val>5</val>
<val>7</val>
</doc>

That's all. For XPath 2.0 there is a special command to get a minimum or a
maximum, but I wonder if this is also possible with XPath 1.0?

Cheers,
Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top