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

Can you index document() nodeset with <xsl:key?

Subject: Can you index document() nodeset with <xsl:key?
From: "Hondros, Constantine" <Constantine.Hondros@xxxxxxxxxxxxxxxx>
Date: Fri, 1 Jul 2005 17:31:08 +0200
ot server
Probably been asked a hundred times but ...

I'm trying to define a key on a _massive_ nodeset that is loaded through
document() into a variable in my stylesheet. I use this nodeset to perform
all sorts of useful lookups during batch transformation of thousands of
files, but it's a bit slow with lots of :

<xsl:value-of select="$mynodeset//item[@id=$something] ...

... so I'm trying to speed it up by keying it.

The key however doesn't return anything, and I can't find any examples of
keying being done quite like this.

Is the approach at least valid? Are there any caveats like the relative
position of the document() and the <xsl:key> directives? 

Thanks



-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 

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.