File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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:

 
Don't get me started about those stupid light bulbs.
 
subject: xml.transform and stylesheets?