Re: [xsl] keys and idrefs

Subject: Re: [xsl] keys and idrefs
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 09 Oct 2001 12:25:36 -0400
At 07:13 AM 10/9/01, David 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 implies you'll know the maximum length of the token list, doesn't it?


Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
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:

Current Thread