-----Original Message-----
From: Corin Moss [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 20 January 2004 5:01 p.m.
To: [EMAIL PROTECTED]
Subject: Calling an XSP generated class from XSLTHi All,
I have an interesting request for everyone to consider: I need invoke an XSP class from within an XSLT document (via use of the Xalan java extension functionality.) I'd ideally like to invoke this as a generator, so I can make use of the pooling / caching capability of the XSP (which has been turned into a generator.) Does anyone have any ideas about how to do it? I've often called Java classes from within XSP, but making a direct reference to this class is not working. The class appears to be instantiated, but I'm not sure how to go about getting the output of the generator.
I guess I need to serialise it internally somehow…..
Any suggestions would be greatly appreciated.
Thanks,
Corin
Corin Moss
Lead Developer
TVNZ Interactive+64 9 916 7367
+64 21 403 054
[EMAIL PROTECTED]
Title: Calling an XSP generated class from XSLT
Hi
Corin
I've
never done this, but I think you may find it a bit tricky. Best of luck though!
What does the XSP do?
If you
still have problems you might be better to use standard Cocoon-pipeline
techniques to integrate rather than XSLT-extensions. For instance, your XSLT
could output cinclude or xinclude elements referring to your generator, and then
the next stage in the pipeline could perform the inclusion, thereby calling your
generator.
Cheers
Con
PS
good to see another NZer on the list!
- Calling an XSP generated class from XSLT Corin Moss
- Conal Tuohy
