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

Re: multiple values for the key

Subject: Re: multiple values for the key
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sat, 2 Aug 2008 20:30:08 +0530
Re:  multiple values for the key
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

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-2007 All Rights Reserved.