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: Using position() with sorted node


> position() does return the position of the current node in
> the current node
> list (which is created using an <xsl:apply-templates> or
> <xsl:for-each> with
> or without any <xsl:sort> elements.) Unfortunately, sorting
> the node list
> makes accessing the preceding nodes rather tricky since the
> preceding and
> preceding-sibling axes work on the document and not the
> sorted node list.

I think the only way of accessing the preceding node in sorted order is to
create a sorted copy of the original data and then process this using the
node-set() extension function. Either that, or find a different solution to
the requirement.

Mike Kay
Software AG


 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]