XSL-stylesheet URI using JAX-WS and Glassfish v3.
Posted
by Tony
on Stack Overflow
See other posts from Stack Overflow
or by Tony
Published on 2010-04-10T13:56:33Z
Indexed on
2010/04/10
14:23 UTC
Read the original article
Hit count: 337
Hi there. I'm trying to use XSL-stylesheets in order to transform some generated XML-data to HTML-output. The architecture that I'm using is as follows: [Client Side] Web-Browser => [Server Side: Glassfish v3] JSP-pages -> Web-Services. My web service generates some XML-data, then I want to format it with XSL-stylesheet, pass the result to JSP-page and show to user. I'm using JAXP for XSL-transformations and I want to create a javax.xml.transform.stream.StreamSource
object with XSL-file stream for the javax.xml.transform.Transformer
object, but I'm having a difficulty with specifying the path/URL for the XSL-file.
So the question is: where should I put my XSL-stylesheets in a project and how should I access them from code? I'm using Glassfish v3 and NetBeans 6.8.
Thanks.
© Stack Overflow or respective owner