You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by pa...@mc.duke.edu on 2001/05/21 22:58:52 UTC

[C1.8.2] Performance of at root level

All,

I'm just wondering if anyone else has encountered this, and if there is a
simple explanation.  If I include a simple template to copy stuff, such as
is found in most logicsheets:
<xsl:template match="@*|node()" priority="-1">
 <xsl:copy>
  <xsl:apply-templates select="@*|node()"/>
 </xsl:copy>
</xsl:template>

and then have something like the following:
<xsl:template match="/">
  ...
  <xsl:apply-templates/>
</xsl:template>

I get terrible performance (it takes minutes to return).  If instead, I do:
<xsl:template match="/">
  ...
  <xsl:apply-templates select="*"/>
</xsl:template>

then performance is fine (subsecond).

This only seems to happen for root template matches, and the only difference is using 'select="*"' in the apply-templates.

Is this a Xalan issue?  I tried to search the Xalan mailing list archives, but there doesn't appear to be a working link to them.

-Christopher



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


AW: [C1.8.2] Performance of at root level

Posted by Jörn Heid <he...@fh-heilbronn.de>.
Last night I testet it with my stylesheets (nearly the same) - well, I did
not recognize a difference...

-----Ursprüngliche Nachricht-----
Von: paint007@mc.duke.edu [mailto:paint007@mc.duke.edu]
Gesendet: Montag, 21. Mai 2001 22:59
An: cocoon-users@xml.apache.org
Betreff: [C1.8.2] Performance of <xsl:apply-templates/> at root level



All,

I'm just wondering if anyone else has encountered this, and if there is a
simple explanation.  If I include a simple template to copy stuff, such as
is found in most logicsheets:
<xsl:template match="@*|node()" priority="-1">
 <xsl:copy>
  <xsl:apply-templates select="@*|node()"/>
 </xsl:copy>
</xsl:template>

and then have something like the following:
<xsl:template match="/">
  ...
  <xsl:apply-templates/>
</xsl:template>

I get terrible performance (it takes minutes to return).  If instead, I do:
<xsl:template match="/">
  ...
  <xsl:apply-templates select="*"/>
</xsl:template>

then performance is fine (subsecond).

This only seems to happen for root template matches, and the only difference
is using 'select="*"' in the apply-templates.

Is this a Xalan issue?  I tried to search the Xalan mailing list archives,
but there doesn't appear to be a working link to them.

-Christopher



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>