XPath 1.0 - how to retrieve minimum or maximum

Discussion in 'XML' started by Stefan Franke, Nov 16, 2004.

  1. 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
     
    Stefan Franke, Nov 16, 2004
    #1
    1. Advertising

  2. Stefan Franke wrote:


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


    See
    http://www.dpawson.co.uk/xsl/sect2/N5121.html#d6079e265

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Nov 16, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    554
    Chris Taylor
    Mar 13, 2006
  2. Lobang Trader

    Minimum & Maximum for username/password

    Lobang Trader, Apr 12, 2004, in forum: Java
    Replies:
    7
    Views:
    548
    Sudsy
    Apr 14, 2004
  3. Replies:
    7
    Views:
    357
    Keith Thompson
    Sep 16, 2007
  4. Replies:
    1
    Views:
    338
    Obnoxious User
    Mar 29, 2008
  5. HipHopper
    Replies:
    1
    Views:
    362
    Göran Andersson
    Jul 26, 2008
Loading...

Share This Page