DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23695>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23695 Cannot use <xsl:element name="param"> [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From [EMAIL PROTECTED] 2003-10-27 15:40 ------- Jason sent me this e-mail: -------------------------- Spot on - I changed it to "xml" and it works fine. FYI I was only really using "html" because it maintains indentation/whitespace, making the output much more readable. Is there some flag I can set somewhere to make this happen where xsl:output method="xml"? Many thanks for looking into it for me. Cheers! Jason ----------------------------------- The default for method="xml" is no indentation. You can change this with: <xsl:output method="xml" indent="yes" /> But how much indentation per indentation level and whether the indentation is done done with spaces or tabs (or both) is not specified in the XSLT 1.0 recommendation. The default for Xalan is 0. So you get things on a new line but all flush on the left. To specify the amount of indentation is outside the recommendation so you can either build a custom xalan.jar by editing output_xml.properties and changing the indentation amount (e.g. to 2), or you can make a non standard stylesheet to set the same Xalan specific property: <xsl:output method="xml" indent="yes" xalan:indent-amount="2" /> There is an example on this page: http://xml.apache.org/xalan-j/usagepatterns.html Regards, Brian Minchau
