You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/08/12 18:40:24 UTC

DO NOT REPLY [Bug 30622] - xsl:output method="xml" indent="yes" not working as expected.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30622>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30622

xsl:output method="xml" indent="yes" not working as expected.





------- Additional Comments From keshlam@us.ibm.com  2004-08-12 16:40 -------
Probably working as designed.

Copied stuff is undoubtedly including whitespace from the source document rather
than being indented by Xalan.

Xalan-generated indentation defaults to line-break only. To actually indent, you
need to specify how much indentation should occur per level, by adding the
attribute xalan:indent-amount="5" (or however much) to your <xsl:output> directive.

(Yes, there have been extensive arguments about whether 0 is the best default.
No, I don't think it is. We can bring it up on the mailing list again and see if
anyone has changed their minds...)

This really should be added to our FAQ page!

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org