Hi Jim,
It makes sens to me. It was what I ended up thinking as well actually but it's
always nice to have feedback from people having more knwoledge in an are.
Thanks
- Sylvain
Selon James Fuller <jim(_dot_)fuller(_at_)ruminate(_dot_)co(_dot_)uk>:
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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--