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

Re: Problem with Oracle Parser Classes vs. Command-line

Subject: Re: Problem with Oracle Parser Classes vs. Command-line
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Thu, 21 Sep 2000 15:04:01 -0400
oracle.xml.parser.v2.oraxsl
This likely occurs because you are using the ./sample/XSLSample.java
sample program to accomplish the command-line transformation
instead of the correct "oraxsl" command line tool that's
provided.

Run the command-line transformation with:

  $ java oracle.xml.parser.v2.oraxsl xmldoc.xml style.xsl out.html

or use the supplied ./bin/oraxsl.bat script to run the same.

Under the covers, the explanation for this is that
the XSLSample.java program uses the processXSL() method
whose signature is:

   DocumentFragment processXSL(XSLStylesheet, XMLDocument)

whereas the oraxsl utility uses the processXSL() method
whose signature is:

   void processXSL(XSLStylesheet, XMLDocument, PrintWriter)

The former just returns a DocumentFragment and serialization
is done by calling the print() method on the DOM object.
This case is not aware of the <xsl:output> serialization
hints.

The latter case lets the XSLT processor serialize the
result tree, using all of the <xsl:output> hints in the process.

______________________________________________________________
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/

----- Original Message ----- 
From: "Paul Terray" <terray@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Thursday, September 21, 2000 3:18 PM
Subject: Problem with Oracle Parser Classes vs. Command-line


| Hello everyone,
| 
| I am using for a project pretty complex XSL stylesheets. I am using Oracle 
| parser, because I want the Database to do the work.However, the command 
| line does not give the same output as the classes used in Java servlet on 
| Oracle :
| 
| - The command line does not obey AT ALL at the <xsl:output> command (it 
| produce XML where I ask HTML, and does not take into account my encoding).
| 
| - My other problem is it does not even take into account the 
| disable-escaping-output attribute of <xsl:text>.
| 
| Therefore, everything goes sploing (approximately). Does anybody have seen 
| this behavior and know either :
| - how to solve the problem ?
| - use another processor with Oracle ?
| 
| Thanks in advance.
| --
| Paul Terray - terray@xxxxxxxxxxxx
| tel : 01 34 58 70 76
| 
| 
| 
|  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.