Subject: RE: [xsl] multiple values for the key From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Sat, 2 Aug 2008 18:52:50 +0100 |
> 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). If the set of key values is constant (which seems a bit unlikely), then to my mind the best solution is to put it in a separate document all on its own, reading it using document('keys.xml'). This seems to me better than putting it in the stylesheet and reading it using document(''). If the set of keys is constructed by the stylesheet, the creating an RTF and reading it using xx:node-set() seems the only option. Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] multiple values for the k, Mukul Gandhi | Thread | Re: [xsl] multiple values for the k, G. Ken Holman |
Re: [xsl] multiple values for the k, Mukul Gandhi | Date | Re: [xsl] multiple values for the k, G. Ken Holman |
Month |