This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to disable escaping of '<' characters
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How to disable escaping of '<' characters
- From: Mike Brown <mike at skew dot org>
- Date: Sun, 11 Mar 2001 11:53:34 -0700 (MST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Satish Patil wrote:
> I want to disable the escaping of '<' ,'>' characters in XML.
FAQ. Those are markup characters. If you put them in a document as
character data (such as in text nodes or attribute nodes, in XPath
terminology), and you don't escape them, then you can't distinguish them
from markup when the document is serialized. While this may be your intent,
you're really abusing XML by trying to use it as a vehicle for more markup.
XSLT allows a disable-output-escaping="yes" attribute to be added to an
xsl:text or xsl:value-of instruction, but be warned that XSLT processors
don't have to support it.
Besides, the point of using the DOM, and XPath in XSLT, is so you don't
have to mess around with the serialized markup-and-character-data; the idea
is to work with the abstract node structures that are represented by that
string of characters.
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list