[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: disable-output-escaping="yes" and crimson JDK1.4.1

Subject: Re: disable-output-escaping="yes" and crimson JDK1.4.1 parserdoes not work (or is disabled)
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 6 Jan 2003 15:44:58 -0700 (MST)
disable output escaping yes xsl
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.