xsl-list
[Top] [All Lists]

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

2012-09-22 08:21:03
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--