Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdom XSLTransformer

 
Donald Winston
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It appears to use jdom stylesheet transformations the result of the transform must also be a Document. What if I want to generate plain text? Or non xml conforming html?
 
Paul Clapham
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right about how it appears. As the API documentation says:
A convenience class to handle simple transformations. The JAXP TrAX classes have more bells and whistles and can be used with JDOMSource and JDOMResult for advanced uses. This class handles the common case and presents a simple interface.

(In case you didn't know, "JAXP" refers to the classes which are now standard in Java, in this case javax.xml.transform.Transformer.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic