This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: document() and keys
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] document() and keys
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 13 Nov 2001 18:59:43 GMT
- References: <200111131837.fADIbgT79993@shelob.julianhaight.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
[Get raw message]
> But I can't see how to make keys work in this
> multi-document situation.
> xsl:for-each select="$src-root">
that's the way.
<xsl:variable name="here" select="."/>
<xsl:for-each select="$src-root">
<xsl:variable name="tmp" select="key(keyname,...)"/>
<xsl:for-each select="$here"/>
<xsl:call-template.....>
<xsl:with-param select="$tmp"/>
</xsl:call-template>
</xsl:for-each>
</xsl:for-each>
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list