D
Dennis
Here is what I am trying to do...
I have an XML doc that looks like:
<root>
<node>value1</node>
<node>value2</node>
<node>value3</node>
<node>value4</node>
</root>
I am looping thru the node's with a for-each like:
<xsl:for-each select="node">
<xsl:value-of select="."/>
</xsl:for-each>
I want to put a comma between each value so the output looks like:
value1,value2,value3,value4
I think I need to use position() and last() to get it to work so that I
only output the comma in the loop IF the node that is being processed is
NOT the last one.
How would I do this?
TIA,
I have an XML doc that looks like:
<root>
<node>value1</node>
<node>value2</node>
<node>value3</node>
<node>value4</node>
</root>
I am looping thru the node's with a for-each like:
<xsl:for-each select="node">
<xsl:value-of select="."/>
</xsl:for-each>
I want to put a comma between each value so the output looks like:
value1,value2,value3,value4
I think I need to use position() and last() to get it to work so that I
only output the comma in the loop IF the node that is being processed is
NOT the last one.
How would I do this?
TIA,