|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: using xsl:key to generate list of back references
> select="//ptr[generate-id(.)=generate-id(key('targets',@target)[1])]">
>
> when what I really want to say is something like
>
> <xsl:for-each select="key('targets','')">
> >
> Anyone up for Yet Another Extension?
>
Saxon allows:
> select="//ptr[saxon:has-same-nodes(., key('targets',@target)[1])]">
which seems a little more elegant. Certainly using generate-id() in order to
test for node identity is pretty clumsy.
Mike Kay
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








