I am trying to transform some xml using my xsl stylesheet. My java program uses the JAXP API and I'm using j2sdk 1.4.1_01 on Win2000. The xml, xsl, and dtd files are not in the same directory as the classes.
The xml file references a dtd file:
<!DOCTYPE nrs SYSTEM "my.dtd">
When trying to transform the xml I get the following error: "Relative URI "my.dtd"; can not be resolved without a base URI."
When I comment out the DOCTYPE line in the xml file, everything works.
What's the solution? How do I get it to find the dtd file?