|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








