It's not a secret anymore!*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT transformer formatting" Watch "XSLT transformer formatting" New topic

XSLT transformer formatting

lajos kamocsay
Ranch Hand

Joined: Aug 12, 2006
Posts: 37

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)?


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