Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Can you index document() nodeset with

From: "Hondros, Constantine" <Constantine.Hondros@---------------->
To:
Date: 7/1/2005 3:33:00 PM
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.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent