Subject: Re: XSLT Saxon Transformation in JSP pages ?
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Mon, 4 Sep 2006 17:16:14 +0530
|
You have written your code quite nicely to invoke XSLT transformation from JSP.
You can further modularize it by creating a Java bean, or perhaps by
creating your custom JSP tags (as you have mentioned).
Please see my answers below.
On 9/4/06, Vincent Blondel <vincent@xxxxxxxxxxxx> wrote:
* How can this work without any jar file ( saxon.jar ) in my web
application, is this comimng from jdk ( 1.5.0_06 ) himself ?
No, Saxon jar file is not bundled with JDK 1.5.0_06. JDK comes bundled
with Xalan-J. If you want to use Saxon, you have to use it explicitly.
You have to place the Saxon jar in system classpath, and use it.
* How can I integrate my XSLT transformation with saxon exngine ?
To invoke Saxon via JAXP, you have to set the JAXP property
javax.xml.transform.TransformerFactory to
net.sf.saxon.TransformerFactoryImpl (for Saxon-b 8.7.3J)
* Is there a way to make this easier , with special Jsp Saxon tags ?
I am not quite sure. This is a Java application design issue. Perhaps
you can create your own JSP custom tags for invoking XSLT.
--
Regards,
Mukul Gandhi
http://gandhimukul.tripod.com
|