RE: [xsl] keys and idrefs - XSLT2 request?

Subject: RE: [xsl] keys and idrefs - XSLT2 request?
From: DPawson@xxxxxxxxxxx
Date: Tue, 9 Oct 2001 13:05:35 +0100
David C wrote:
> but to find all process elements that contain XAG in their control
> attribute you could do
> select="key('control', 'XAG')"
> so long as you key was defined something like
> <xsl:key match="process" use="@control"/>
> <xsl:key match="process" use="substring-before(@control,' ')"/>
> <xsl:key match="process" use="substring-after(@control,' ')"/>
> <xsl:key match="process" 
> use="substring-before(substring-after(@control,' '),' ')"/>
> ....

Which as you point out, indicates that XSLT has no means of 
using keys (simply) on idrefs, to find 'reverse' links.

I don't particularly like the use of string routines in attributes
to achieve this, I wonder if this drives an XSLT 2 request?

Either to extend the key function in some way to handle idrefs,
or to permit a key definition to take in all attributes of type idrefs?
(I could see the problem where I have a CDATA attribute with spaces,
but surely idrefs are a bit special?)

Regards daveP

************* Snip here ***************


NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227


 XSL-List info and archive:

Current Thread