R
Ravi
my xml looks like:
<abc>
<val1>1</val1>
<val2>2</val2>
<val3>3</val3>
</abc>
and I want to have it displayed as
Col1 Col2 Col3
val1 val2 val3
with the columns separated by a tab. I used the following snippet in my
xsl but I am not getting the desired output. the columns are being
separated only by a single space.
<xsl:template match="abc">
Col1<xsl:text> </xsl:text>Col2<xsl:text> </xsl:text>Col3<br/>
<xsl:value-of select="val1"><xsl:text> </xsl:text><xsl:value-of
select="val2"><xsl:text> </xsl:text><xsl:value-of select="val3"><br/>
</xsl:template>
how can i add a tab after each value is displayed?
TIA.
<abc>
<val1>1</val1>
<val2>2</val2>
<val3>3</val3>
</abc>
and I want to have it displayed as
Col1 Col2 Col3
val1 val2 val3
with the columns separated by a tab. I used the following snippet in my
xsl but I am not getting the desired output. the columns are being
separated only by a single space.
<xsl:template match="abc">
Col1<xsl:text> </xsl:text>Col2<xsl:text> </xsl:text>Col3<br/>
<xsl:value-of select="val1"><xsl:text> </xsl:text><xsl:value-of
select="val2"><xsl:text> </xsl:text><xsl:value-of select="val3"><br/>
</xsl:template>
how can i add a tab after each value is displayed?
TIA.