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

How to use xsl:key for another document()

Subject: How to use xsl:key for another document()
From: Janning Vygen <vygen@xxxxxxxxxxxx>
Date: Tue, 31 Jul 2001 08:52:21 +0200
xslt document to another document
Hi,

I can use xsl:key only in my source tree, but how can i create a key 
for another document?

what i would like to do is:

<xsl:variable name="doc1" select="document('doc1.xml'"/>
<xsl:key name="more-chapters" match="$doc1//chapter" use="@id"/>

But it doesnt work, of course, because its a match and not a select 
attribute. But i could not either change the context document with

<xsl:for-each select="$document">
  <xsl:key name="more-chapters" match="chapter" use="@id"/>
<xsl:for-each>

because xsl:key is a top-level element.

Is there another way to achieve this?

janning

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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.