This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Sending this again: Never was posted. Setting up some control data / "meta"?


> I have this code:
> 
>   <xsl:apply-templates>
>    <xsl:sort select="/PAGE/@sort"/>
>   </xsl:apply-templates>
> 
> It doesn't give an error, but isn't sorting by the value of 
> "/PAGE/@sort".

Since the sort key is an absolute path, its value doesn't depend on the
context node, so it will have the same value for every node in the node-set
you are trying to sort. Sort keys should normally be relative paths.

Mike Kay


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]