RE: [xsl] checking if an element starts-with a certain string using keys

Subject: RE: [xsl] checking if an element starts-with a certain string using keys
From: tom.kirkpatrick@xxxxxxxxxxxx
Date: Mon, 14 Feb 2005 09:18:00 +0000
Here use
<xsl:for-each select="key('field', substring($code, 0, 9))">
or
<xsl:for-each select="key('field', concat(substring-before($code, '/'), 
'/', substring-before(substring-after($code, '/'), '/')))">
I.e. you can't use starts-with, you use the equality operator for key 
lookups.



What do you mean by this? ("you use the equality operator for key 
lookups.")

-- 
Tom David Kirkpatrick
Virus Bulletin Web Developer, Virus Bulletin

Tel: +44 1235 555139
Web: www.virusbtn.com

Current Thread