Re: [xsl] flattening and re-ordering nested notes

Subject: Re: [xsl] flattening and re-ordering nested notes
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 18 Aug 2008 21:45:57 +0100
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>.



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread