xsl-list
[Top] [All Lists]

Re: creating a string of child node names

2003-12-03 04:50:51


You don't need an explicit recursive template here, an alternative would be
<xsl:template match="Invoice">
<input name="X2H_VAR_NAMES">
<xsl:attribute name="value">
<xsl:for-each select="*">
<xsl:value-of select="name()"/>
<xsl:if test="position()&lt;last()">,</xsl:if>
</xsl:for-each>
</xsl:attribute>
</input>
</xsl:template>

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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



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