Hej,

> I just installed Cocoon 2.1.4 under Windows 2000 
> and am trying to do a trivial sort, but regardless 
> of what I do, the output appears in the same 
> (apparently random) order.  Why?!

> <xsl:template match="items">
>  <xsl:apply-templates>
>   <xsl:sort select="item/color">
>  </xsl:apply-templates>
> </xsl:template>

The apply-templates matches all nodes that are children of the "items" node.
In your case those nodes matched are "item" nodes. Because you have to
specify your sort criteria relative to the current node you have to skip the
"item/". It works fine if you write:

>   <xsl:sort select="color">

Best regards
PHILIPP BURKERT


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to