This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: keys and idrefs - XSLT2 request?
At 11:33 AM 10/9/01, Jeni wrote:
>Another thing I just thought of was perhaps you could use the id()
>function when setting the key value. The id() function can take a
>space-separated list of IDs and gets you all the elements with those
>IDs. Then you can go from those elements to the IDs themselves, to
>index the element holding the IDREFS attribute by the values of the
>IDs:
>
><xsl:key name="control"
> match="process"
> use="id(@control)/@id"/>
>
>I think that would work.
Cunning!
Naturally, I invoked Jeni's name, only to find she'd already appeared with
all my solutions, and then some, before I even asked....
Cheers,
Wendell
======================================================================
Wendell Piez mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list