This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: using xsl:key to generate list of back references
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: using xsl:key to generate list of back references
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 22 May 2000 09:41:49 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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