Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] For-each and keys()

From: David Carlisle <davidc@--------->
To:
Date: 8/2/2006 5:07:00 PM
> 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


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent