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

Re: xsl: help (urgent)

Subject: Re: xsl: help (urgent)
From: "Steve Muench" <Steve.Muench@xxxxxxxxxx>
Date: Tue, 10 Apr 2001 06:14:46 -0700
Re:  xsl: help (urgent)
|  <xsl:output method="html" disable-output-escaping="yes"
| media-type="text/html" indent="no"/>

disable-output-escaping doesn't go here.

| <xsl:value-of disable-output-escaping="yes"

Whenever it appears that disable-output-escaping="yes" is
not working, 99% of the time it is because you are:

  (1) Using your own Java program to produce the results
      of the XSLT transformation, and

  (2) Using the wrong API to effect the transformation.

      The Oracle processor has two similar API's:

      (a) DocumentFragment processXSL(xsl,xml)
      (b) void processXSL(xsl,xml,PrintWriter)

      If you use (a), you get an in-memory tree
      of XML. If you then use the DOM's print() method
      to serialize it, then that's what you get. A DOM
      serialization. It's not smart to all the XSLT
      output serialization options.

      If you use (b), then the XSLT engine gets the
      chance to perform all of the appropriate XSLT
      output "magic", including disable-output-escaping.

So, make sure you're using (b).
      
______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG
Author "Building Oracle XML Applications", O'Reilly
http://www.oreilly.com/catalog/orxmlapp/



 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.