[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re[2]: Problem with key()

Subject: Re[2]: Problem with key()
From: Kevin Burges <xmldude@xxxxxxxxxxxxxxxx>
Date: Fri, 25 May 2001 17:00:04 +0100
problem of key 2
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.