xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shane Curcuru <shane_curc...@yahoo.com>
Subject Re: prettyprinters for xml?
Date Thu, 20 Feb 2003 15:21:05 GMT
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.
for a copy of the identity.xsl stylesheet.

- Shane

In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message