|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Mixing XSL stylesheet and Java handlers in Saxon
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
|
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








