[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] [XSLT] Put element in new-line


Subject: Re: [xsl] [XSLT] Put element in new-line
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Thu, 06 Mar 2008 15:25:26 +0100

Florent Georges schrieb:
Michael Ludwig wrote:
   <xsl:template match="/">
     <xsl:apply-templates select="node() | @*"/>
   </xsl:template>

The usual Identity Transform Pattern [...] Adding the rule for the document node won't change anything (well, except if your serializer behaves differently whether it gets a document or an element node, what is unlikely, especially if you use xsl:output.)

That's true - the rule for the document node is not needed here.


Thanks,

Michael


Current Thread