You can simply use a JAXP Transformer to do it *without* a stylesheet by using the identity transform (in JAXP, you simply get a newTransformer() without a source document); or you can copy a stylesheet that does the identity transform and then set the indent-amount yourself (since Xalan's default indent is 0 chars for performance reasons).

See http://xml.apache.org/xalan-j/getstarted.html#commandline
And http://xml.apache.org/xalan-j/usagepatterns.html#outputprops
for Xalan details of indent-amount.
See http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-xalan/test/tests/bugzilla/identity.xsl?rev=HEAD
for a copy of the identity.xsl stylesheet.

- Shane


---------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to