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 11:06:49 +0100
>
> I've tried that already, but then I get a blank screen ))-:

Then try it again, with Saxon.

The following stylesheet:

<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method=
"xml" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/"><xsl:copy-of
select="."/></xsl:template>
</xsl:stylesheet>

when applied to itself, produces

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
   <xsl:output method="xml" indent="yes"/>
   <xsl:strip-space elements="*"/>
   <xsl:template match="/">
      <xsl:copy-of select="."/>
   </xsl:template>
</xsl:stylesheet>

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread