This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: keys: repeated nodes from same key value


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]