xsl-list
[Top] [All Lists]

RE: [xsl] displaying strings containing ampersand entities

2006-08-21 05:50:12

<xsl:var name="s" as="xs:string" value="Tom &amp; Jerry"/>

Trying to display it with <xsl:message> gives 'Tom &amp; Jerry'
instead of 'Tom & Jerry'


The format and destination of xsl:message output are entirely
implementation-defined, so you need to ask the question in relation to a
particular product.

If you're using Saxon, for example, you can ask for xsl:message output to be
serialized using a TextEmitter rather than an XmlEmitter. (That is, using
the TEXT output method rather than the XML output method).

Michael Kay
http://www.saxonica.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>
--~--

<Prev in Thread] Current Thread [Next in Thread>