[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: max value

Subject: Re: max value
From: "Charly" <cohana@xxxxxxxxxxxxxxx>
Date: Wed, 12 Dec 2001 09:43:21 -0800
xpath max value
Thanks Mike,
You were right I was working with a Beta version of XSLT processor .

----- Original Message -----
From: "Mike Brown" <mike@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, December 11, 2001 6:04 PM
Subject: Re:  max value


> Charly wrote:
> > Thanks Mark,
> > I still have a problem with the last(), after I do the sort the last
doesn't
> > give the last position anymore .
>
> position() and last() should be giving you the info relative to the
> sorted set. In the example you're going with, the last node should be
> the one with the max value. If it is not, then your XSLT processor is
> in violation of http://www.w3.org/TR/xslt#sorting which says
>
>   "When a template is instantiated by xsl:apply-templates and
>   xsl:for-each, the current node list list consists of the complete
>   list of nodes being processed in sorted order."
>
> ...and http://www.w3.org/TR/xslt#section-Expressions explains that the
> current node list determines the context as used by the XPath functions
> such as last().
>
>    - Mike
>
____________________________________________________________________________
>   mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
>   denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Re: max value, (continued)
      • Charly - Tue, 11 Dec 2001 11:01:00 -0500 (EST)
    • Mark Miller - Tue, 11 Dec 2001 11:19:54 -0500 (EST)
      • Charly - Tue, 11 Dec 2001 16:36:12 -0500 (EST)
        • Mike Brown - Tue, 11 Dec 2001 21:03:26 -0500 (EST)
        • Charly - Wed, 12 Dec 2001 09:42:32 -0500 (EST) <=
    • Jeff Beadle - Tue, 11 Dec 2001 11:27:36 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.