[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] sorting (again)


Subject: Re: [xsl] sorting (again)
From: "Davis Ford" <davisford@xxxxxxxxx>
Date: Thu, 29 Nov 2007 12:18:52 -0500

Hi Andrew,

Thanks for the response.  I tried that, and it still sorts the
DictionaryModelDescriptor element --> puts it in canonical order...not
at the top.

On Nov 29, 2007 12:13 PM, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
> On 29/11/2007, Davis Ford <davisford@xxxxxxxxx> wrote:
> > This one puts it at the top, but now I have a duplicate in the middle
> >
> >         <xsl:template match="@*|node()">
> >                 <xsl:copy>
> >                         <xsl:apply-templates
> > select="DictionaryModelDescriptor"/>
> >                         <xsl:apply-templates select="@*|node()">
>
> Just change:
>
> <xsl:apply-templates select="@*|node()">
>
> to
>
> <xsl:apply-templates select="@*|node()[not(self::DictionaryModelDescriptor)]">
>
>
> cheers
> --
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/
>
>



-- 
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax


Current Thread