[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Grouping in the FAQ (was Re: Conflicting Node Values)
I wrote > Don't you want > > count(.|key('tid',.)[1])=1 > > which is equivalent to the generate-id tests. Of course, it's only equivalent in the case that you know that the key returns something, otherwise if the key returns the empty set then the above will always be true as .|key('tid',.)[1] will be . In general the test "is the current node the first node in the node set x" is either "generate-id(.) = generate-id($x[1])" (the [1] is optional here) or "count(.|$x[1])=count($x[1])" or "$x and count(.|$x[1])= 1" David 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
|