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

Stylesheet in a Xerces DOM tree?

Subject: Stylesheet in a Xerces DOM tree?
From: Steve Dussinger <sdussing@xxxxxxxxx>
Date: Wed, 26 May 2004 18:09:11 -0700
xerces stylesheet
I've got a XSL stylesheet which was preparsed by Xerces as part of the
initialization of my application. I need to be able to pass that DOM
tree to the transformer to run the transformation.
 
So far I've been unable to figure out how to get it to work.  What I
want is something like this:
 
    Xercesc_2_5::DOMElement *stylesheet;  // This was parsed earlier by
Xerces duing my program initialization
    Xercesc_2_5::DOMDocument *sourceDoc;  // The DOM document I want to
transform
    Xercesc_2_5::DOMDocument *outputDoc;  // The DOM document I want the
results placed in.
 
    XalanTransformer transformer;
 
    // transform the sourceDoc. In reality if I can only get a string
back as the output of the transform, 
    // I'm not as concerned but I really need to pass the DOMDocument
(or element) as the stylesheet.
    Transformer.transform (sourceDoc, stylesheet, outputDoc);
 
Is anything like this possible? Or do I have to convert my xerces-parsed
DOM tree back to a string and let Xalan re-parse it?
 
Any pointers would be appreciated.
 
Thanx,
   Steve Dussinger

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.