[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: working out where the last() is
On 10/6/06, Robert Walpole <robert.walpole@xxxxxxxxxxxx> wrote:
Hi, In 2.0 you can use: string-join(//*[not(*)]/@name, ', ') In 1.0 you don't have the string-join() function so you need to add the comma yourself: <xsl:for-each select="//*[not(*)]/@name"> <xsl:value-of select="."/> <xsl:if test="position() != last()">, </xsl:if> </xsl:for-each> cheers andrew
|
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
|