cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: AW: That ole "org.apache.xml.dtm.DTMException: No more DTM IDs are available" again...
Date Thu, 22 May 2003 12:20:00 GMT
Stoeckel, Matthias wrote:
> Hi Lee,
> the two template parts below are called very often. Try to change the parts
> in your stylesheet. I didn't try it myself, but this could be a workaround.
> Cheers
>   Matthias
>    <xsl:template match="ROW">
>      <xsl:for-each select="COL">
>        <xsl:apply-templates select=".">
>          <xsl:with-param name="rownumber"><xsl:number level="any"
> from="CONTENT" count="ROW"/></xsl:with-param>
>        </xsl:apply-templates>
>      </xsl:for-each>
>    </xsl:template>

Maybe it's because of your <xsl:number level="any"/>. Is it really any 
hierarchy level? This forces Xalan to search for ROWs in the whole document. 
Were the ROWs not simply a sequence?

At least you can change the template to

<xsl:template match="ROW">
   <xsl:apply-templates select="COL">
     <xsl:with-param name="rownumber">
       <xsl:number level="any" from="CONTENT" count="ROW"/>

or so my guess to:
<xsl:template match="ROW">
   <xsl:apply-templates select="COL">
     <xsl:with-param name="rownumber" select="position()"/>

>    <xsl:template match="COL">
>      <xsl:param name="rownumber">0</xsl:param>
>          <gmr:Cell ValueType="60">
>            <xsl:attribute name="Col">
>              <xsl:number level="any" from="ROW" count="COL"/>
>            </xsl:attribute>
>            <xsl:attribute name="Row">
>              <xsl:value-of select="$rownumber"/>
>            </xsl:attribute>
>            <gmr:Content>
>              <xsl:value-of select="."/>
>            </gmr:Content>
>          </gmr:Cell>
>    </xsl:template>

Same here.

<xsl:template match="COL">
   <!-- avoids Result Tree Fragments -->
   <xsl:param name="rownumber" select="0"/>
   <gmr:Cell ValueType="60" Col="{position()}" Row="{$rownumber}">
     <xsl:value-of select="."/>




System Development
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message