W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2000

RE: feature request; id idref pairs

From: Kay Michael <Michael.Kay@icl.com>
Date: Wed, 9 Feb 2000 15:14:17 -0000
Message-ID: <93CB64052F94D211BC5D0010A800133101FDEA0F@wwmess3.bra01.icl.co.uk>
To: "'xsl-list@mulberrytech.com'" <xsl-list@mulberrytech.com>
Cc: xsl-editors@w3.org
> > Today I can't find the nodelist which calls any particular box.
you can do something like
> select="//*[@idref=current()/@id]"

If you know that the id references are in an attribute called @idref, you
can make this a key

<xsl:key name="idref" match="@idref" use="."/>
and then:  select="key(idref, current())"

which will probably be faster than the above on most implementations.

Mike Kay
Received on Wednesday, 9 February 2000 10:15:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:17 UTC