This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: keys: repeated nodes from same key value
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: keys: repeated nodes from same key value
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Thu, 10 Aug 2000 17:14:57 +0100
- Reply-To: xsl-list at mulberrytech dot com
> saxon says I can't have document() in the match of xsl:key()
> <xsl:key name="fl"
> match="document('b.xml')/path//element" use="."/>
> Any particular reason for this?
The document() function isn't allowed in a pattern (only in expressions).
You don't need it here: key definitions apply to every source document. The
key index is actually built for a particular document the first time it is
used on that document.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list