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: webmaster@xml.apache.org To unsubscribe, e-mail: general-unsubscribe@xml.apache.org For additional commands, e-mail: general-help@xml.apache.org