This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How can I reindent an XML-file for readability?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] How can I reindent an XML-file for readability?
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 9 May 2001 10:38:21 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I think that there must be a simple XSL to reindent an XML
> for readability
<xsl:stylesheet ...>
<xsl:output method="xml" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list