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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "xml.transform and stylesheets?" Watch "xml.transform and stylesheets?" New topic

xml.transform and stylesheets?

Tarrant Costelloe

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

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

I agree. Here's the link: http://aspose.com/file-tools
subject: xml.transform and stylesheets?
Similar Threads
converting XML with XSLT
DocumentBuilder.parse not working for String input
Is The XSLT Transformation Platform Independent?
creating pdf,xml,doc file using servlet
No output from Servlet