[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: cross-ref

Subject: RE: cross-ref
From: Bas Alberts <bas.alberts@xxxxxxxxxxxx>
Date: Thu, 9 Aug 2001 17:23:04 +0200
xsl cross ref
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@xxxxxxxxxxxx



-----Original Message-----
From: Jeni Tennison [mailto:mail@xxxxxxxxxxxxxxxx]
Sent: Wednesday, August 08, 2001 19:04
Subject: Re:  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


Current Thread
  • cross-ref
    • Bas Alberts - Wed, 8 Aug 2001 09:22:27 -0400 (EDT)
      • <Possible follow-ups>
      • Bas Alberts - Thu, 9 Aug 2001 11:28:10 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.