This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Template problem.Unnecessary text displayed
- From: "Tarun Saheja" <tarun dot saheja at patni dot com>
- To: "Xsl-List \(E-mail\)" <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 20 Dec 2001 09:50:14 +0530
- Subject: [xsl] Template problem.Unnecessary text displayed
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
When I am creating a template of name say "Parameter", it displays the value
of the "Parameter" tag on its own on the page.
For eg My XSL is...:
<xsl:template match="Parameter">
<tr>
<xsl:for-each select="Values">
<td>Value of </td>
<td><xsl:value-of select="Values"/></td>
</xsl:for-each>
</tr>
</xsl:template>
My XML is....
<Parameter>
This is value for the parameter tag
<Values>
Value1
</Values>
<Values>
Value2
</Values>
<Values>
Value3
</Values>
</Parameter>
My HTML is displayed in such a manner...
output starts....
----------------------------------------------------------------
This is value for the parameter tag
Value of Value1
Value of Value2
Value of Value3
------------------------------------------------------------------
output ends....
The problem is that I dont want the text "This is value for the parameter
tag", (as displayed in the output) to be displayed.
Regards,
Tarun
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list