[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] For-each and keys()
Subject: Re: [xsl] For-each and keys()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 2 Aug 2006 18:06:19 +0100
|
> We are talking about a capitalized D here!
No there are other errors as well, and they may be the cause of the
problem, which is why I highlighted them, but you seemed to take offence
to that.
> My current XSL has the problem of not using key in a meaningful way
> (always returns 0) and also produces a row for each Record, although
> it does order them by type.
>
> XSL goes something like:
>
> <xsl:key name="options" match="option" use="@type" />
> <xsl:key name="oldID" match="Record" use="disabPrimary" />
> <xsl:variable name="$Definitions" select="Document(Disabilities.xml)"
> />
There are three errors in that last line, two are syntax errors that
would be reported by the xslt system (so I assume they are not in your
real code) so perhaps you had
<xsl:variable name="Definitions" select="document(Disabilities.xml)"/>
If so then the argument of document() is the node set of elements with
name Disabilities.xml which is empty so $Definitions will be empty which
may well cause you to not get the result you expect
or perhaps you had
<xsl:variable name="Definitions" select="document('Disabilities.xml')"/>
how are we to know?
David
| Current Thread |
- Re: [xsl] For-each and keys(), (continued)
- Steve - Wed, 2 Aug 2006 12:06:48 -0400
- David Carlisle - Wed, 2 Aug 2006 17:21:38 +0100
- Message not available
- G. Ken Holman - Wed, 02 Aug 2006 12:47:49 -0400
- Steve - Wed, 2 Aug 2006 12:54:26 -0400
- David Carlisle - Wed, 2 Aug 2006 18:06:19 +0100 <=
- Steve - Wed, 2 Aug 2006 13:22:02 -0400
- meenakshi n - Wed, 2 Aug 2006 11:40:26 -0700 (PDT)
- Dimitre Novatchev - Wed, 2 Aug 2006 11:03:03 -0700
- Steve - Wed, 2 Aug 2006 14:13:46 -0400
|
|