This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to use xsl:key for another document()
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] How to use xsl:key for another document()
- From: Jarno dot Elovirta at nokia dot com
- Date: Tue, 31 Jul 2001 10:05:19 +0300
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:variable name="doc1" select="document('doc1.xml')"/>
<xsl:key name="more-chapters" match="chapter" use="@id"/>
<xsl:template match="...">
<xsl:for-each select="$document">
<xsl:apply-templates select="key('more-chapters', ...)"/>
<xsl:for-each>
</xsl:template>
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list