This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes jdom XSLTransformer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "jdom XSLTransformer" Watch "jdom XSLTransformer" New topic

jdom XSLTransformer

Donald Winston

Joined: Jul 16, 2010
Posts: 16
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

Joined: Oct 14, 2005
Posts: 18541

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.)
I agree. Here's the link:
subject: jdom XSLTransformer
Similar Threads
Looking for correct data type to take in stream of xml
writing and reading simple data in XML
Confusion in JAXP DOM parser