This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re[2]: Problem with key()
- To: Jeni Tennison <mail at jenitennison dot com>
- Subject: Re[2]: [xsl] Problem with key()
- From: Kevin Burges <xmldude at burieddreams dot com>
- Date: Fri, 25 May 2001 17:00:04 +0100
- CC: xsl-list <xsl-list at lists dot mulberrytech dot com>
- Organization: Formedix Ltd.
- References: <9615403447.20010525125636@burieddreams.com><364439549.20010525142831@jenitennison.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Jeni,
>> <xsl:key name="fieldlength"
>> match="/file/group/field/@length[@length]"
>> use="@name"/>
JT> anything from the key. I think you meant:
JT> <xsl:key name="fieldlength" match="field[@length]" use="@name" />
kind of, I've changed it to something similar now and it's working.
JT> The problem that's causing the error you're getting, though, is:
JT> The first argument to the key function should be a string. You're
JT> missing quotes:
Ah! That's it. I was thinking that fieldlength would actually be an
object itself, rather than just a string identifier.
I've got it all working now, thanks for the help!!
--
groovy baby,
Kevin mailto:xmldude@burieddreams.com
+++++++++++++ Cool music - http://mp3.com/marshan
++ Attitude Rock Webzine - http://burieddreams.com/attitude
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list