|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Q on incremental processing and count()
Jeni Tennison wrote: 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.: <xsl:template match="table"> <xsl:value-of select="count(thead/th-c)"/> </xsl:template> Here, the result of the call to count() is only available at the end of the table, as it is not known before how much th-c elements will be contained inside thead elements in the table element. 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








