xsl-list
[Top] [All Lists]

Re: AW: Sorting and re-ordering down a hierarchy

2003-07-22 03:29:07

Hi,

>Does anybody else have a solution, and can anyone tell me why my solution
>does not work?

><xsl:template match="input">
>    <xsl:apply-templates select="node">
>            <xsl:sort select="node/rank" data-type="number"
order="ascending"/>
>    </xsl:apply-templates>
></xsl:template>

The statement select="node" defines the set which is sorted.
You have different call to the template with different sets.
Each is sorted. Where is the problem?

Regards,

Juergen


The problem is that _not_ each are sorted - not according to what I see, at least. If you look at the second level of output, you can see that they are in the original (input) order. Only the first level is sorted ascendingly.

Regards,

Ragulf Pickaxe :)

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>