[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

No more DTM IDs are available using xalan 2.6.0?

Subject: No more DTM IDs are available using xalan 2.6.0?
From: "Huggins, Scott" <ScottHuggins@xxxxxxxxxxxxxxxx>
Date: Thu, 6 May 2004 09:27:50 -0400
no more dtm ids
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.java: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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.