Subject: RE: [xsl] keys and idrefs From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 09 Oct 2001 11:43:09 -0400 |
> So you'd have > <xsl:for-each select="key('processes-by-control', @id)"> ...
Which only appears to return a single value, where
<xsl:for-each select="//process "> <xsl:if test="contains(@control, $thisDoc)"> <a href="{@id}.html"> <xsl:value-of select="name"/> </a> 
returns 5 process element whose control attribute contains the id value of the current node.
Unsure, but the symptoms are that it finds an idref which is alone, but not those which are second or further in the list of idrefs. E.g. <process id="metadataDesign" control="XAG" > <name>Metadata Design</name> </process> is found, for XAG
<process id="deliver" control="DIGL WCAG XAG UANegotiation" > <name>Deliver Content</name> </process>
but this is not found for XAG. Hence the use of my solution for treating the idrefs as a string, rather than an attribute value.
> > Since you want <process> elements back and @control on each > process is an > IDREF, not an ID, I think you have to use keys; the id() > function only goes > the other way.
No, its an idrefs (plural) not an idref, which I think is the heart of the matter.
<process id="deliver" control="DIGL WCAG XAG UANegotiation" > <name>Deliver Content</name> </process>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] keys and idrefs, David Carlisle | Thread | [xsl] There must be a better way, Nicholas Waltham |
Re: [xsl] keys and idrefs - XSLT2 r, Jeni Tennison | Date | Re: [xsl] Re: Overlapping structure, David Carlisle |
Month |