cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Sitemap regeneration time slowed ?
Date Thu, 07 Feb 2002 14:29:32 GMT
> From: Christian Schmitt [mailto:cs@ffzj0ia9.bank.dresdner.net]
> 
> 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.

Cool! 8)


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

I also not so an expert in the XSLT performance tuning, so recommend you
to comment out this snippet till you get interpreted sitemap engine
working.

Vadim


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


Mime
View raw message