[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Template problem.Unnecessary text displayed

Subject: RE: Template problem.Unnecessary text displayed
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Thu, 20 Dec 2001 08:05:18 -0000
RE:  Template problem.Unnecessary text displayed
Tarun,
It shouldn't do. Unless you have an apply-templates in your Parameter
template in which case it will use the builtin template and output the
text node.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Tarun Saheja
> Sent: 20 December 2001 04:20
> To: Xsl-List (E-mail)
> Subject:  Template problem.Unnecessary text displayed
> 
> 
> 
> 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
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.