[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Function's at XSLT
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|