Subject: Re: [xsl] a weird bug today, tree seems to change mid transform From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Sat, 08 Sep 2007 16:33:34 +0200 |
bryan rasmussen wrote:I don't have access to the code that is doing it, but it
seems evident that somehow it is tampering with the DOM during the
transform.
<xsl:template match="/"> <xsl:variable name="copy"> <xsl:apply-templates mode="copy" /> </xsl:variable> <xsl:apply-templates select="msxml:nodeset($copy)" /> </xsl:template>
<xsl:template match="node() | @*" mode="copy"> <xsl:copy> <xsl:apply-templates select="node() | @*" mode="copy" /> </xsl:copy> </xsl:template>
<xsl:template match="node() | @*" > <xsl:copy> <xsl:apply-templates select="node() | @*" mode="copy" /> </xsl:copy> </xsl:template>
<xsl:apply-templates select="node() | @*" mode="copy" /> </xsl:copy> </xsl:template>
<xsl:template match="*"> <xsl:for-each select="@*"> <xsl:copy /> <xsl:attribute name="{concat('id-of-attr-', name())}" /> </xsl:for-each> </xsl:template>
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] a weird bug today, tree s, Abel Braaksma | Thread | Re: [xsl] a weird bug today, tree s, Abel Braaksma |
Re: [xsl] In Search of People Who K, M. David Peterson | Date | Re: [xsl] a weird bug today, tree s, Abel Braaksma |
Month |