Re: [xsl] xsl:sort not working within xsl:choose

Subject: Re: [xsl] xsl:sort not working within xsl:choose
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 10 Dec 2004 14:35:39 +0000
>>>>> "Hardy" == Hardy Merrill <HMerrill@xxxxxxxxxxxxxxxx> writes:


    Hardy> but that's not working - I keep getting this error:

    Hardy> msxml4.dll error '80004005'

    Hardy> Keyword xsl:sort may not be used here.

    Hardy> ------------------------------------

    Hardy> What am I doing wrong?  The thing is, if I take out the
    Hardy> entire choose, and just use

    Hardy>    <xsl:sort select="code" />

    Hardy> it seems to work.

Well, you seem to have all but worked it out - you can't have xsl:sort
anywhere except as an immediate child of xsl:for-each or xsl:apply-templates
in XSLT 1.0.
-- 
Colin Paul Adams
Preston Lancashire

Current Thread