Re: [xsl] Re: How many passes through the document

Subject: Re: [xsl] Re: How many passes through the document
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 22 Sep 2012 14:20:44 +0100
On 22/09/2012 12:24, Ihe Onwuka wrote:
Please ignore the match on the root template I meant to edit it out.

perhaps you should ask the question again with a working stylesheet. If by the above you mean ignore

   <xsl:template match="/">
      <xsl:value-of select="sum(key('counts',max($all))/count(@*))"/>
   </xsl:template>


then the styleheet won't make any passes at all. The variable all will not be referenced so (in most systems) will not be evaluated, so the only thing that happens would be that the document element is processed to produce "stuff" and no further processing will happen.


David


-- google plus: https:/profiles.google.com/d.p.carlisle

Current Thread