Subject: Re: [xsl] flattening and re-ordering nested notes From: Walter Lee Davis <waltd@xxxxxxxxxxxx> Date: Mon, 18 Aug 2008 17:42:58 -0400 |
I wrote:
<xsl:template match="document"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> <xsl:apply-templates select="//note" mode="notes"/> </xsl:template>
you have:
<xsl:template match="document">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
<xsl:apply-templates select="//note[not (@type='margin' or
@type='sourcenote')]" mode="notes"/>
</xsl:copy>
</xsl:template>
The apply-templates for notes has moved back inside xsl:copy - it needs to be outside for the <note>'s to be output after <document>.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] flattening and re-orderin, Andrew Welch | Thread | [xsl] XPath (regex?) question about, Mark Wilson |
Re: [xsl] XTTE0510 ISSUE., G. Ken Holman | Date | Re: [xsl] XTTE0510 ISSUE., chun ji |
Month |