xsl-list
[Top] [All Lists]

Re: No more DTM IDs are available using xalan 2.6.0?

2004-05-08 15:35:51
i was also getting similar error till i placed xalan in the lib/endorsed
folder.other options are available at

http://wiki.cocoondev.org/Wiki.jsp?page=NoMoreDtmIdError

----- Original Message ----- 
From: "Huggins, Scott" <ScottHuggins(_at_)quickenloans(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Thursday, May 06, 2004 8:27 AM
Subject: [xsl] No more DTM IDs are available using xalan 2.6.0?


Hi,

I am getting the "No more DTM IDs are available" error during
transformation:

javax.xml.transform.TransformerException: org.apache.xml.dtm.DTMException:
No more DTM IDs are available
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1226)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
638)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1088)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1066)

when using this code:

         TransformerFactory tFactory = TransformerFactory.newInstance();

         // Set the stylesheet stuff
         StringReader srStylesheet = new StringReader(stylesheet);
         StreamSource ssStylesheet = new StreamSource(srStylesheet);
         Transformer transformer = tFactory.newTransformer(ssStylesheet);

         // Set the xml stuff
         StringReader srXmlToConvert = new StringReader(xmlToConvert);
         StreamSource ssXmlToConvert = new StreamSource(srXmlToConvert);

         // Set the resulting HTML
         StringWriter caw = new StringWriter();
         StreamResult dest = new StreamResult(caw);

         // Finally, do the real work
         transformer.transform(ssXmlToConvert, dest);
         html = caw.toString();

      return html;
************

I am using xalan 2.6.0 (At least I am trying to). So when I run this in my
servlet:

out.println("Xalan Version: " + org.apache.xalan.Version.getVersion());

I get:

"Xalan Version: Xalan Java 2.6.0"

This is on windows 2000 server using bea web logic 8.1 and Java 1.4.1.  I
know the 1.4.1 java version had old xalan so I (think I) upgraded.  Is my
code still pointing to the old stuff?  Any help is appreciated.

Thanks,
Scott

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--