xsl-list
[Top] [All Lists]

Re: [xsl] Help on node selection

2010-08-27 10:32:51
Fabien Tillier wrote:
Got it.... stupid me...

<xsl:template name = "domain">
        <xsl:param name="rows" as="element(row)*"/>
        <xsl:for-each select="$rows">
                <xsl:value-of select ="./N2"/>,
        </xsl:for-each>

With XSLT 2.0 you don't need the for-each,
       <xsl:value-of select="$rows/N2" separator=","/>
suffices (well unless you want a comma after the last N2 value).

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>