|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sorting & Grouping
> I appreciate your help. I read in documentation that AXIS refers to > document order and not sorted order. > > I used following xsl and it did't work. > <xsl:when > test="self::node()[name(preceding-sibling::*)!= name()]"> That predicate is true if the first preceding sibling has a different name. This means, first in document order. To test whether the last preceding sibling (ie. the immediately preceding sibling) has a different name, write test="self::node()[name(preceding-sibling::*[1])!= name()]"> or equivalently: test="name(preceding-sibling::*[1])!= name()"> Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








