You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Stefan Geelen <st...@xentri.com> on 2002/09/06 23:22:30 UTC

java.net.MalformedURLException: no protocol: test.dtd

Hi,

I changed from version Xalan 2.2 to Xalan 2.4.0.

When transforming a xml file that gave no problems in previous version, I now get this error:

javax.xml.transform.TransformerException: java.net.MalformedURLException: no protocol: test.dtd
 void org.apache.xalan.transformer.TransformerIdentityImpl.transform(javax.xml.transform.Source, javax.xml.transform.Result)
...

The xml file is defined like this:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE documents SYSTEM "test.dtd">
<documents>
  <document file="output\saved_as_ansi_with_encoding_iso-8859-1.pdf">
    <content>
      <p font-type="type1" font-name="helvetica" font-style="italic" font-size="36pt"> Bonjour le monde, comment ça va
      </p>
      <p font-type="type1" font-name="helvetica" font-style="italic" font-size="36pt"> Plutôt cool, non ?
      </p>
    </content>
  </document>
</documents>

Other xml files using the same test.dtd give no problems.  The test.dtd is in the same directory as the xml files.

Regards,

Stefan





Re: java.net.MalformedURLException: no protocol: test.dtd

Posted by Joseph Kesselman <ke...@us.ibm.com>.
Make sure your base URI is set -- and make sure that what it's set to 
really is an absolute URI, with a protocol scheme prefix, not a relative 
URI reference or filename.

______________________________________
Joe Kesselman  / IBM Research