|
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] checking if an element st, David Carlisle | Thread | [xsl] XSL Sheet for Varying Node Na, jeb501 |
| RE: [xsl] checking if an element st, Jarno.Elovirta | Date | [xsl] XSL Sheet for Varying Node Na, jeb501 |
| Month |