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

Re: $variables with xsl:key()

Subject: Re: $variables with xsl:key()
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 25 Jul 2006 14:42:34 -0400
Re:  $variables with xsl:key()
Hi Steve,

At 12:47 PM 7/25/2006, you wrote:
What isn't matched about the sample data?

The data you offered:



And consumer.xml disabilties are like----------

<option oldID="413" type="Physical" name="Cancer"/>
<option oldID="400" type="Cognitive" name="Cerebral Palsy"/>
<option oldID="410" type="Physical" name="Chronic Fatigue Syndrome"/>
<option oldID="305" type="Cognitive" name="Cognitive-Other"/>

In the best case, we'd have a complete if reduced sample where records would appear matching oldIDs you actually represented ... this makes it much easier to run the XSLT engines we keep in our heads, or even engines we run in our computers, to test everything. (List participants have been known to test each other's code in live processors from time to time.)

What do you mean by "key declarations"?

By "key declaration" I mean the top-level element that sets up the key and assigns it a name, as in

<xsl:key name="things-by-id" match="thing" use="@id"/>

Without those it's impossible for us to determine whether you're calling the key in a way that will actually return you the nodes you want.

In your sample stylesheet you actually call two separate keys, "options" and "oldID". The declarations would help us understand what they do and whether there may be an error somewhere.


Current Thread
  • $variables with xsl:key()
    • Steve - 24 Jul 2006 17:42:09 -0000
      • Message not available
        • Wendell Piez - 25 Jul 2006 15:57:22 -0000
          • Steve - 25 Jul 2006 16:47:54 -0000
          • Message not available
          • Wendell Piez - 25 Jul 2006 18:45:50 -0000 <=
          • Steve - 25 Jul 2006 18:57:33 -0000
          • Message not available
          • Wendell Piez - 25 Jul 2006 19:57:53 -0000


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.
First Name
Last Name
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.