|
Subject: Re: [xsl] [XSLT] Put element in new-line From: Florent Georges <lists@xxxxxxxxxxxx> Date: Thu, 6 Mar 2008 13:56:27 +0100 (CET) |
Michael Ludwig wrote:
Hi
> <xsl:output indent="yes"/>
> <xsl:template match="/">
> <xsl:apply-templates select="node() | @*"/>
> </xsl:template>
> <xsl:template match="node() | @*">
> <xsl:copy>
> <xsl:apply-templates select="node() | @*"/>
> </xsl:copy>
> </xsl:template>
The usual Identity Transform Pattern is:
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
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.)
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] [XSLT] Put element in new, Michael Ludwig | Thread | Re: [xsl] [XSLT] Put element in new, Michael Ludwig |
| Re: [xsl] [XSLT] Put element in new, Michael Ludwig | Date | Re: [xsl] [XSLT] Put element in new, Michael Ludwig |
| Month |