On Thu, 2003-06-19 at 17:31, Piers Haken wrote:
> > From: Ben Maurer [mailto:[EMAIL PROTECTED] 
> > > There are no (zero) instances, in corcompare.xsl where all the 
> > > children have to be checked before an element can be produced.
> >     <xsl:template name="toggle">
> >             <xsl:choose>
> >                     <xsl:when test="not(@presence) and 
> > .//[EMAIL PROTECTED] or @todo_total or @extra_total or 
> > @warning_total or @error or @presence] and
> > local-name() != 'assembly'">
> >                             <img src="cm/tp.gif" class="t"/>
> >                     </xsl:when>
> >                     <xsl:when test="not(@presence) and 
> > .//[EMAIL PROTECTED] or @todo_total or @extra_total or 
> > @warning_total or @error or @presence]">
> >                             <img src="cm/tm.gif" class="t"/>
> >                     </xsl:when>
> >                     <xsl:otherwise>
> >                             <img src="cm/tb.gif"/>
> >                     </xsl:otherwise>
> >             </xsl:choose>
> >     </xsl:template>
> > 
> > That is called for every + or - box.
> 
> That's true, but in reality the transform never has to check more than a
> few items before it short-circuits out.
Yes, but what if the element that allows a short circuit is at the
bottom? Also, if the element is actually complete, that takes a long
time. As time goes on, this method will get much slower ;-).
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to