cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schmitt ...@ffzj0ia9.bank.dresdner.net>
Subject Re: Sitemap regeneration time slowed ?
Date Thu, 07 Feb 2002 09:15:27 GMT
On Wed, Feb 06, 2002 at 03:26:54PM -0500, Vadim Gritsenko wrote:
> > From: Christian Schmitt [mailto:cs@ffzj0ia9.bank.dresdner.net]
> > 
> > Hi all,
> > after further checking into our "challenge" here,
> > that's what we've found out:
> > 
> > The changes to sitemap.xsl checked in recently checking the
> > pipeline rules, is what brings sitemap generation to a crawl.
> 
> That's exactly what I was thinking after this email :)
> 

:)

Vadim,
what seems to be the real killer is this construct:

      <xsl:for-each select=".//*[namespace-uri()=$ns
          and (local-name()='generate' or local-name()='aggregate' or local-name()='transform')
          and not(ancestor::map:handle-errors)]">
        <xsl:if test="not(following::*[namespace-uri()=$ns
            and (local-name()='serialize' or local-name()='call')
            and not(ancestor::map:handle-errors)]/ancestor::map:pipeline[. = $pipeline])">
          <xsl:call-template name="error">
            <xsl:with-param name="message">Sitemap pipeline with map:generate|aggregate|transform
must have map:serialize.</xsl:with-param>
          </xsl:call-template>
        </xsl:if>
      </xsl:for-each>

The <xsl:if test ......> </xsl:if> takes about one second for each
element found.

Now, not being the XSL guru, I have no idea how to make this faster
(besides commenting it out ;-) ).

Cheers,
Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message