|
Subject: Re: [xsl] Copying parent nodes with different selection of their content From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 25 Apr 2007 17:48:25 +0200 |
<xsl:template match="Body">
<xsl:variable name="x" select="Document/*[starts-with(name(),'Make-Toute-Seul-')]"/>
<xsl:copy>
<xsl:for-each select="$x">
<Document>
<xsl:copy-of select="(../* except $x)|."/>
</Document>
</xsl:for-each>
</xsl:copy>
<xsl:template match="/"> <xsl:apply-templates select="$copy-me/*"/> </xsl:template>
<xsl:template match="Body">
<xsl:copy>
<xsl:apply-templates select="key('t', '')" />
</xsl:copy>
</xsl:template><xsl:template match="key('t', '')">
<Document>
<xsl:copy-of select="(../* except key('t', ''))|."/>
</Document>
</xsl:template><xsl:template match="* | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*" />
</xsl:copy>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Copying parent nodes with, David Carlisle | Thread | RE: [xsl] Copying parent nodes with, Michael Kay |
| Re: [xsl] (newbie) Need DOCTYPE com, Martin Honnen | Date | Re: [xsl] Copying parent nodes with, Abel Braaksma |
| Month |