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

Mixing XSL stylesheet and Java handlers in Saxon

Subject: Mixing XSL stylesheet and Java handlers in Saxon
From: "Yannick Nicolas" <yannick@xxxxxxxxxxxxxxxx>
Date: Wed, 15 Dec 1999 15:00:43 +0000
mixing xsl and xml
Hello,
I'm trying to use Saxon for my project and as I've tried to understand
for a while, things are getting much and much more obscure.

I have an XSL stylesheet, and I want my program add some particular
handlers for some particular nodes, depending on external parameters.
Is it possible to load the StyleSheet, "prepare" it and add
additional node handlers, and then render the XML document?
Or must I get off my XSL Stylesheet and write in the program all the
node handlers corresponding to my initial Stylesheet plus the
additional ones ?

To sum up, I'm trying to initialize something like:

public void prepare() throws SAXException {
 InputSource mySheet = new InputSource("C:\\Transfo-sax.XSL");
 mainSheet = new StyleSheet();
 mainSheet.prepareStyleSheet(mySheet);
 mainSheet.compileStyleSheet
 mainSheet.renderSource(new InputSource("C:\\colombia.xml"));

 setHandler( "html", new htmlHandler());
 setHandler( "body", new bodyHandler() );
}

Where am I wrong ?

Thanks!

Y.Nicolas

Adresses gratuites et illimitées sur http://bretagne.zzn.com
__________________________________________________________________________________
Constituez votre propre service d'e-mail sur le Web à l'adresse http://www.zzn.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.