Subject: Re: [xsl] Q on incremental processing and count() From: Tobias Kiesling <kiesling@xxxxxxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 19 Feb 2002 16:59:25 +0100 |
Independant of the way xalan-j is working, it is not possible for an incremental processor to output the result of a call to the count function before the expression inside the count() is completely evaluated. E.g.:
However, from the symptoms that you describe (I'm guessing here - I don't know how Xalan works internally), as soon as you do include a count() function, Xalan thinks that the stylesheet involves using information that is not yet accessible to it, and so reverts to the more common processing model where it constructs the whole source tree prior to transformation.
<xsl:template match="table"> <xsl:value-of select="count(thead/th-c)"/> </xsl:template>
From a processing point of view the second xpath that Michael proposed (count(thead[1]/th-c)) should do the right job, as the processor does not have to wait until the end of the table element, but just until the end of the first thead element (which should be the only one).It seems that xalan does not output as soon as would be possible in this case.
Regards, Tobias
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Q on incremental processi, Jeni Tennison | Thread | [xsl] SOLVED! was: Q on incremental, Enke Michael |
[xsl] Can I take only parts from no, jp | Date | Re: [xsl] Can I take only parts fro, Robert Koberg |
Month |