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

Re: disabling output escaping

Subject: Re: disabling output escaping
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Tue, 14 Mar 2000 15:11:24 -0800
processor.processxsl
The problem is that you are using:

xmlResult = processor.processXSL( xsl, xml );

instead of:

processor.processXSL(xsl, xml, YourPrintWriter );

The latter gives the processor a chance to do its
<xsl:output> serialization behavior. The former
returns a pure DOM DocumentFragment where the XSLT
processor is not involved in the serialization
since you are just printing the Document Fragment
to your printwriter.

_________________________________________________________
Steve Muench, Consulting Product Manager & XML Evangelist
Business Components for Java Development Team

----- Original Message ----- 
From: "Bob White" <milkchaser@xxxxxxxxx>
To: "XSL XSL" <XSL-List@xxxxxxxxxxxxxxxx>
Cc: <smuench@xxxxxxxxxxxxx>
Sent: Tuesday, March 14, 2000 12:49 PM
Subject: Re: disabling output escaping


| Steve,
| 
|  -------------------
|    Your stylesheet
|  -------------------
| <xsl:stylesheet version="1.0"
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
| 
|   <xsl:template match="/" >
|     <xsl:text
| disable-output-escaping="yes"><![CDATA[<tr>]]></xsl:text>
|   </xsl:template>
| 
| </xsl:stylesheet>
| 
| I used this very same stylesheet using 
|   xmlparserv2.jar  1,096KB  03/01/2000 8:35 PM
| 
| It inserts escaped output (ie. &#60;TR>).
| 
| Since various XML/HTML translations occur as this e-mail makes its
| way to the list, let me separate what I'm seeing with dashes...
| What I am seeing in my output is &-#-6-0-;   not '<'.
| 
| IE 5.0 interprets this as the string "<TR>" not the tag <TR>.
| 
| The (abbreviated) java code I use to invoke the XSLT processor is
| 
| DocumentFragment xmlResult;
| XSLProcessor processor = new XSLProcessor();
| XSLStylesheet xsl ...;
| XMLDocument   xml ...;
| xmlResult = processor.processXSL( xsl, xml );
| if ( out != null )
|   ( (XMLNode)xmlResult ).print( new PrintWriter(out) );
| 
| Is there a way to determine the version number of the Oracle XML
| parser/ XSLT processor?
| 
| ..Bob.
| 
| 
| =====
| -- Bob White --
| See photos of Oxana, my beautiful bride-to-be!
| http://milkchaser.tripod.com
| 203-926-1888 x3287
| "Make it legal" -- www.norml.org
| __________________________________________________
| Do You Yahoo!?
| Talk to your friends online with Yahoo! Messenger.
| http://im.yahoo.com
| 


 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.