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: Sibling sort order



> Sadly, for my puposes this does not help

Join the club:-)

so you have to use xt: (or saxon:) node-set() extension function

then you can use xt:node-set($y) to be a node set into which you can
query. (you can do grouping without recourse to extensions, and you'll
find examples in the archives, but given an extension it's so much
easier (its even easier if you use saxon's grouping extension but that
just takes away all the fun.)

 <xsl:value-of select="parent::*/*[position()=$pos]/attribute::f1"/> 

If I read this right it would be simpler to do

<xsl:value-of select="previous-sibling::*[1]/@f1"/>

David


 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]