This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: cross-ref
- To: "'Jeni Tennison'" <mail at jenitennison dot com>
- Subject: RE: [xsl] cross-ref
- From: Bas Alberts <bas dot alberts at group2000 dot nl>
- Date: Thu, 9 Aug 2001 17:23:04 +0200
- Cc: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Jeni,
Thank you very much for explaining the "key issue" of xsl keys to me.
You were right, I had to compare the value of elementName (in the source
document) with elementName/@refAttr (in the other document); not the source
attribute refAttr.
It miraculously works now. I had some trouble understanding the mechanism
behind the "use" attribute.
Your help is greatly appreciated!
Greetings,
bas.alberts@group2000.nl
-----Original Message-----
From: Jeni Tennison [mailto:mail@jenitennison.com]
Sent: Wednesday, August 08, 2001 19:04
Subject: Re: [xsl] cross-ref
[ -snip- ]
<xsl:key name="elements-by-ref" match="elementName" use="@refAttr" />
<xsl:variable name="crossRef">
<xsl:for-each select="$otherDoc">
<xsl:value-of name="key('elements-by-ref', $matchValue)/@desiredAttr"
/>
</xsl:for-each>
</xsl:variable>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list