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

Re: Function's at XSLT

Subject: Re: Function's at XSLT
From: Frederic Laurent <fl@xxxxxxxxxxxxx>
Date: Thu, 27 Nov 2003 16:05:58 +0100
xslt function

Bruno LLopes wrote:

> hi all,
>   How  can a get the last node of one sequence ? there is any function? or I
> have to create a recursive one?
> I have the fucntion last() but give the number , and I want the node..
> 
> Where can I find a fast guide with all function's that can possible used in
> xslt ?

With the simple position()=last() test, you can select the last node...
Is this you want to ?

<xsl:template match="/">
  <xsl:apply-templates select="//mynode[position()=last()]"/>
</xsl:template>

will drive the transformation to the last 'mynode' node...

Fred

-- 

XPath free testing software :  http://lantern.sourceforge.net
Frédéric Laurent                     http://www.opikanoba.org

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


Current Thread

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.