Subject: Re[2]: [xsl] Problem with key() From: Kevin Burges <xmldude@xxxxxxxxxxxxxxxx> Date: Fri, 25 May 2001 17:00:04 +0100 |
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@xxxxxxxxxxxxxxxx +++++++++++++ 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem with key(), Jeni Tennison | Thread | [xsl] IE 6.0 and XSLT, bharat chintapally |
RE: [xsl] position of an element, Sebastian Schirmer | Date | RE: [xsl] XSLT and #temptable, Chris Bayes |
Month |