[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: For-each and keys()
On 8/2/06, David Carlisle <davidc@xxxxxxxxx> wrote:
> 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)" > /> <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
--Steve
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|