Re: [xsl] disable-output-escaping="yes" and crimson JDK1.4.1 parser does not work (or is disabled)

Subject: Re: [xsl] disable-output-escaping="yes" and crimson JDK1.4.1 parser does not work (or is disabled)
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 6 Jan 2003 15:44:58 -0700 (MST)
disable-output-esacping only works on text nodes in the result tree.
It's just a flag that says "if you serialize this text node, don't
do any escaping of the markup characters". It doesn't change the
text in the node at all (the text isn't escaped until it's serialized).

Although you're creating an attribute node from a text node that has
d-o-e, the attribute won't inherit the flag.

Some XSLT processors provide an extension attribute to provide a d-o-e
flag for attribute nodes. If you don't have that option, you'll have to
output what you can, and post-process the result.


Andrew Milkowski wrote:
> short correction,
> 
> setting disable-output-escaping="yes" or setting
> disable-output-escaping="no" does not seem to have ANY effect
> on the output..
> 
> cheers
> 
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Andrew
> Milkowski
> Sent: Monday, January 06, 2003 5:02 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] disable-output-escaping="yes" and crimson JDK1.4.1 parser
> does not work (or is disabled)
> 
> 
> my desired output is to produce unescaped html output in form of
> &lt;html&gt;test&lt;
> 
> instead <xsl:text
> disable-output-escaping="yes">&lt;html&gt;test&lt;/html&gt;</xsl:text>
> (after appropriate SAX transform give following output:
> <header text="<html>test</html>">
> 
> 
> is disable-output-escaping disabled in the crimson JDK1.4.1, and if so, how
> do I turn it on
> 
> thanks
> 
> <?xml version="1.0" ?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> <xsl:output method="html"/>
> 	<xsl:template match="test">
> 		<chart name="MFChart" width="900" height="580">
> 	    		<header>
> 				<xsl:attribute name="text">
> 					<xsl:text
> disable-output-escaping="yes">&lt;html&gt;test&lt;/html&gt;</xsl:text>
>     				</xsl:attribute>
> 				<component visible="true" font="Arial-plain-22" foreground="#0066FF"/>
> 	    		</header>
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread