[jdom-interest] DTD location problem

Jason Long jason at supernovasoftware.com
Fri Feb 20 01:27:31 PST 2004


I solved my problem, but I am not sure what happened.  I may have
upgraded a jar or something else.  
 
In several places I had added the following:
   doc.setDocType(new DocType("inventory", "inventory.dtd"));
 
I believe that is was necessary to make the application function before.
Commenting this out fixed the problem.  After I got that fixed one of
the stylesheets was throwing the following error:
[Fatal Error] inventoryOrder.xsl:82:60: The prefix "html" for element
"html:input" is not bound.
org.jdom.JDOMException: XSLT Transformation failed:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
The prefix "html" for element "html:input" is not bound.
 
I fixed this by adding xmlns:html="/WEB-INF/struts-html.tld" to the
stylesheet.
 
This application has been in production for a year and I am doing
upgrades.  I would like to understand what changed to make the code stop
function in case other problems were created.  I was not working on
anything related to this part of the site.  Does anyone have any ideas?
 
Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS Chemical Engineering 
 
 
-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
On Behalf Of Jason Long
Sent: Friday, February 20, 2004 3:25 AM
To: JDOM
Subject: RE: [jdom-interest] DTD location problem
 
 
 
-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
On Behalf Of Jason Long
Sent: Thursday, February 19, 2004 11:38 PM
To: JDOM
Subject: [jdom-interest] DTD location problem
 
I am getting the following error:
org.jdom.JDOMException: XSLT Transformation failed:
org.jdom.JDOMException: DTD parsing error:
C:\WINNT\system32\inventory.dtd (The system cannot find the file
specified)
 
I am using beta9 and have been for some time, but this is a new problem
and I have not been working on this part of the application.  For some
reason my application assumed the dtd was located in the same directory,
but not it wants to look in the WINNT\system32.
 
I the dtd is listed as follows:
<!DOCTYPE inventory SYSTEM "inventory.dtd">
 
The xml, xsl, and dtd file are all in the same directory.  This was
working before, and I cannot see what has broken it.  
Any advice would be greatly appreciated.
 
Thank you for your time,
 
Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS Chemical Engineering 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20040220/45518b47/attachment.htm


More information about the jdom-interest mailing list