Subject: Re: [xsl] multiple values for the key From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Sat, 2 Aug 2008 20:30:08 +0530 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] multiple values for the k, G. Ken Holman | Thread | RE: [xsl] multiple values for the k, Michael Kay |
Re: [xsl] multiple values for the k, G. Ken Holman | Date | RE: [xsl] multiple values for the k, Michael Kay |
Month |