|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






