[xsl] document and key functions in xslt

Subject: [xsl] document and key functions in xslt
From: "Cornelia Stratulat" <cornelia.stratulat@xxxxxxxxxx>
Date: Mon, 20 Aug 2001 15:43:01 +0200
Hi,

I would like to know why these examples don't work:

1. <xsl:for-each select="document('annuaire.xml')/key('mykey',$myname)">
...
</xsl:for-each>

where the result of the key function gives as result a node set of the
annuaire.xml file

2. <xsl:template match="document('foo.xml')">
...

document(...) gives as result the root node of the document so is equivalent
with match="/"


thanks


Cornelia


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread