Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] multiple values for the key

From: "Mukul Gandhi" <gandhi.mukul@--------->
To:
Date: 8/2/2008 3:01:00 PM
Hi Ken,
   I appreciate your ideas. Your solution below is certainly very
portable, and should be preferred when portability of stylesheet is
the concern.

But I am only concerned, that if stylesheet is quite large, then to
access the contents of a variable (i.e., this one, <xsl:variable
name="x-values">), we are asking processor to build a large tree (an,
additional one) in memory, which might cause some performance
concerns.

Using node-set function I feel is more memory efficient than, using
document('') (which you wrote).

But certainly, even if node-set function is provided by multiple XSLT
processors, it's likely that it's not portable between processors (as,
it's namespace URI may be different).

The namespace URI I used for node-set, is what is suggested by EXSLT
set of extensions, and it's likely that it will be portable between
processors supporting EXSLT.


On Sat, Aug 2, 2008 at 3:13 PM, G. Ken Holman
<gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
> The above can be replaced with standard XSLT 1.0 to read the stylesheet file
> as a source node tree ...
>
>    <xsl:for-each
>      select="key('x',document('')/*/xsl:variable[@name='x-values']/v)">


-- 
Regards,
Mukul Gandhi


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