• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml.transform and stylesheets?

 
Tarrant Costelloe
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No matter, I figured it out! I needed to change the XSL file to include the following code:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic