Joe, My fault!! Somebody on the cocoon users group pointed out that my xsl should be corrected to :
<xsl:template match="CONTENT"> <xsl:for-each select="ROW"> <xsl:apply-templates select="."> <xsl:with-param name="rownumber" select="position()"/> </xsl:apply-templates> </xsl:for-each> <!--xsl:apply-templates/--> </xsl:template> <xsl:template match="ROW"> <xsl:param name="rownumber" select="0"/> <xsl:for-each select="COL"> <xsl:apply-templates select="."> <xsl:with-param name="rownumber" select="$rownumber"/> <xsl:with-param name="colnumber" select="position()"/> </xsl:apply-templates> </xsl:for-each> </xsl:template> <xsl:template match="COL"> <!-- avoids Result Tree Fragments --> <xsl:param name="rownumber" select="0"/> <xsl:param name="colnumber" select="0"/> <gmr:Cell ValueType="60" Col="{$colnumber}" Row="{$rownumber}"> <!--xsl:value-of select="."/--> <xsl:value-of select="."/> </gmr:Cell> </xsl:template> This works fine. Their comment was :- "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?" And they where correct.. Thanks, Lee. -----Original Message----- From: Joseph Kesselman [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2003 5:48 PM To: '[EMAIL PROTECTED]' Subject: Re: That ole "org.apache.xml.dtm.DTMException: No more DTM IDs are av ailable" again... That really shouldn't be happening with current code, unless your document is Gawdawful Obscenely Huge. Are you running Xalan in interpretive mode, or compiled? XSLTC has its own implementation of DTMManager (a stopgap solution for introducing the stopgap DTM to xsltc.DOM bridge layer, pending rewrite of the code generators), and I'm not sure we've ever tested this interaction using that code. It may not be handshaking properly. ______________________________________ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. "The world changed profoundly and unpredictably the day Tim Berners Lee got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk