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

Re: For-each and keys()

Subject: Re: For-each and keys()
From: Steve <subsume@xxxxxxxxx>
Date: Mon, 31 Jul 2006 12:57:46 -0400
foreach 2 keys
On 7/31/06, andrew welch <andrew.j.welch@xxxxxxxxx> wrote:
Change this key to
<xsl:key name="oldID" match="option" use="@oldID" />

Ok, did that. I can see why that happens.


<xsl:for-each select="$Definitions">
  <xsl:value-of select="count(key('oldID',$current))" />
</xsl:for-each>

I really don't understand this. I should mention there are many other branches within $Definitions besides /disabilities.

You have a few other typo's to fix (if you code matches your example)
but that should be it.

Making the changes you suggested gives me something like


Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	1
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	1
Cognitive 	1
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	1
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	2
Cognitive 	1
Cognitive 	2
Cognitive 	2
Cognitive 	2

*and so on and so forth for dozens of lines*

Perhaps one of the typos you noticed may be causing this?

Thanks so much for your help,

-Steve

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.