wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XSLT transformer formatting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT transformer formatting" Watch "XSLT transformer formatting" New topic
Author

XSLT transformer formatting

lajos kamocsay
Ranch Hand

Joined: Aug 12, 2006
Posts: 37
Hello,

I'm using an XSLT transformer to output my XML data on System.out.
Everything is printed on one line, no new lines.

Is it possible to configure the transformer to print pretty (new lines, maybe even indented)?

Thanks,
Lajos

Here's what I have now:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XSLT transformer formatting
 
Similar Threads
Writing XML File via Java Program
Special Characters in XML
redirect XML/DOM output to file??
xml output formatting
Convert SOAP response to SOAP XmL string using JAX WS