xsl-list
[Top] [All Lists]

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

2005-02-14 02:18:00
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--