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

Re: When is xsl:text relevant?

Subject: Re: When is xsl:text relevant?
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Wed, 08 Jun 2005 14:32:21 +0200
Re:  When is xsl:text relevant?
Sylvain Hellegouarch wrote:

>Hi,
>
>As I'm not a guru of XSLT, I am surely missing a point but why would I should
>use xsl:text?
>  
>

The <xsl:text> element is defined whenever you need to write 'literal'
text to the output.

>Look at the following example :
>http://www.w3.org/TR/xslt#result-element-stylesheet
>
>Would it make more sense to use :
><p><xsl:text>Total Amount: </xsl:text></p>
>
>Instead of :
><p>Total Amount: </p>
>
>I've red the doc but I'm still not confident on when to use xsl:text.
>  
>

for me the biggest thing of using xsl:text is whenever you want to
engage d-o-e (disable-output-encoding).

I am certain that there are certain assumptions with whitespace when
wrapped in xsl:text, which is probably the 'reason' why we have such an
element in the first place.

hth, Jim Fuller

>Thanks for any highlights.
>
>- Sylvain
>
>----------------------------------------------------------------
>This message was sent using IMP, the Internet Messaging Program.

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.