Avinash Salimat
November 13th, 2003, 12:01 AM
Dear all
Please help me imme in solving this.
I have some thing like this -
<tag1>
........
........
<childtag1>ChildValue1</childtag1>
<childtag1>ChildValue2</childtag1>
<childtag1>ChildValue3</childtag1>
.......
</tag1>
In the XSL, Iam using
<xsl:template match='tag1'>
<test1><xsl:apply-templates select="childtag1"></test1>
</xsl:template>
The <xsl:apply-templates> element applies a template rule to the current
element or to the current element's child nodes.
So the output value (in the output xml) Iam getting is -
<test1>ChildValue1ChildValue2ChildValue3</test1>
I want this output to be separated by commas, like
<test1>ChildValue1, ChildValue2, ChildValue3</test1>.
How to achieve this?
Thx in advance.
-Avinash
***********************************
Please help me imme in solving this.
I have some thing like this -
<tag1>
........
........
<childtag1>ChildValue1</childtag1>
<childtag1>ChildValue2</childtag1>
<childtag1>ChildValue3</childtag1>
.......
</tag1>
In the XSL, Iam using
<xsl:template match='tag1'>
<test1><xsl:apply-templates select="childtag1"></test1>
</xsl:template>
The <xsl:apply-templates> element applies a template rule to the current
element or to the current element's child nodes.
So the output value (in the output xml) Iam getting is -
<test1>ChildValue1ChildValue2ChildValue3</test1>
I want this output to be separated by commas, like
<test1>ChildValue1, ChildValue2, ChildValue3</test1>.
How to achieve this?
Thx in advance.
-Avinash
***********************************