Subject: Re: [xsl] How to disable escaping of '<' characters From: Mike Brown <mike@xxxxxxxx> Date: Sun, 11 Mar 2001 11:53:34 -0700 (MST) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to disable escaping o, Uche Ogbuji | Thread | Re: [xsl] Need example of PARAM in , Scott_Boag |
RE: [xsl] How to disable escaping o, Michael Kay | Date | Re: [xsl] How to disable escaping o, Uche Ogbuji |
Month |