wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes xml.transform and stylesheets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "xml.transform and stylesheets?" Watch "xml.transform and stylesheets?" New topic
Author

xml.transform and stylesheets?

Tarrant Costelloe
Greenhorn

Joined: Oct 11, 2004
Posts: 2
Hello, I am using javax.xml.transform.Transformer; to transform a XML file into HTML using a given XSL stylesheet, code as below.



However I want to assign a stylesheet to the HTML file so it is formatted corretly when it is transformed. How do you do this>
Tarrant Costelloe
Greenhorn

Joined: Oct 11, 2004
Posts: 2
No matter, I figured it out! I needed to change the XSL file to include the following code:

 
 
subject: xml.transform and stylesheets?
 
Similar Threads
No output from Servlet
creating pdf,xml,doc file using servlet
Is The XSLT Transformation Platform Independent?
converting XML with XSLT
DocumentBuilder.parse not working for String input