This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Retaining '&' after transforming XML to HTML via XSL
- To: XSL-List at mulberrytech dot com
- Subject: Retaining '&' after transforming XML to HTML via XSL
- From: Dweed at pumatech dot com
- Date: Mon, 26 Jun 2000 13:06:59 -0400
- Reply-To: xsl-list at mulberrytech dot com
I would like to retain an ampersand ('&') in an HTML stream after a XSL
transformation is performed on an XML file. The MSXML dll is used to
transform the XML. The ampersand is contained in the xsl source file. When
using the & or & entities, the result is & in the HTML stream,
not the '&'. The & is unacceptable as the microbrowser interpreting the
resultant HTML will not recognize the entity. Use of an inline DTD to define
an entity doesn't seem to work in the MSXML parser. The version of the
parser in use also does not support <xsl:text> or <xsl:copy-of>.
Several months ago someone posted a clever scheme to "escape" the '&'
construct, which did indeed preserve the desired character. However, I have
unfortunately deleted the message and cannot locate it in the archive.
Thanks for any assistance.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list