|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: creating a string of child node names
Haydn,
I would try inside the matching template: <xsl:element name="input"> <xsl:attribute name="value"> <xsl:for-each select="*"> <xsl:value-of select="name(.)"/> <xsl:if test="position() != last()">,</xsl:if> </xsl:for-each> </xsl:attribute> <xsl:attribute name="type">hidden</xsl:attribute> </xsl:element> or better (depending on what exactly you want to do) <xsl:variable name="value">
<xsl:for-each select="*">
<xsl:value-of select="name(.)"/>
<xsl:if test="position() != last()">,</xsl:if>
</xsl:for-each>
</xsl:variable>
<input name="X2H_VAR_NAMES111" value="{$value}" type="hidden"/>Cheers, Manolis Haydn Flower wrote: I need to build up a string if child node names. 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
|

Cart








