[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: limiting preceding axis by ancestor
Hi Michael,
I would use the same approach as Joerg Pietschmann, but it has a little bug: The first generate-id() must be done on the ancestor::foo too. Try preceding::bar[generate-id()=generate-id(current()/ancestor::foo)] The [1] is implicit and not needed, because generate-id() on a nodeset returns the id of the first element in this nodeset. I wrote it for maybe better understanding. <xsl:if test=". = preceding::bar[generate-id(ancestor::foo[1]) = generate-id(current()/ancestor::foo[1])]"> Regards, Joerg 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
|