Subject:Display format of stylesheet output Author:Ian Logan Date:17 May 2005 04:26 AM
I have created a stylesheet that produces the xml that I want. However the elements are all lumped together which makes it difficult to read. For example:
<invoices><document_no>1</document><doc_date>16/05/2005</doc_date></invoices>
Rather than:
<invoices>
<document_no>1</document>
<doc_date>16/05/2005</doc_date>
</invoices>
I reckon that I need to add CR/LF but do not know how to do this.
Subject:Display format of stylesheet output Author:(Deleted User) Date:17 May 2005 05:19 AM
Hi Ian,
if you are not interested in a specific indentation format, you can just add the <xsl:output method="xml" indent="yes"/> statement to your stylesheet.