aspose 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


Win a copy of Spring in Action this week in the Spring 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:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml.transform and stylesheets?