RE: [xsl] How can I reindent an XML-file for readability?

Subject: RE: [xsl] How can I reindent an XML-file for readability?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 9 May 2001 10:38:21 +0100
> 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


Current Thread