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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How can I reindent an XML, Rene de Vries | Thread | RE: [xsl] How can I reindent an XML, Ronald |
[xsl] URL Encoding, Serdar Kilic | Date | RE: [xsl] XSL Processors supporting, Michael Kay |
Month |