Stefan,

Please open a Bugzilla report and post the set of XML and dtd files you are
having problem with.

Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]



                                                                                       
                                           
                      "Stefan Geelen"                                                  
                                           
                      <stefan.geelen@xe        To:       <[EMAIL PROTECTED]>, 
<[EMAIL PROTECTED]>                
                      ntri.com>                cc:                                     
                                           
                                               Subject:  
java.net.MalformedURLException: no protocol: test.dtd                    
                      10/02/2002 05:38                                                 
                                           
                      PM                                                               
                                           
                      Please respond to                                                
                                           
                      xalan-dev                                                        
                                           
                                                                                       
                                           
                                                                                       
                                           



Hi,

A few weeks ago I posted my message concerning this error (see below).

I also looked in the bug database and found bug 12305 .

The solution is to check whether there are spaces in the base URI.

Now I checked that with me and there are no spaces in it.

In my case I have 57 xml files and a test.dtd in the same directory.

53 files run without problem.  4 xml files give above error

The difference between those 53 files and those 4 are that these 4 are non
UTF8 or UTF-16 files (they have an encoding of ISO-8859-1 or windows-1252).

The test.dtd has an encoding of UTF-8.

Since I changed from  Xalan 2.2 to Xalan 2.4.0. I am unable to use these 4
files.

I also tried to make a new xml file with Windows2000 notepad, saving in
ANSI format with encoding defined as windows-1252 or ISO-8859-1, but this
file also gives above error.

I also tried to use XMLSpy saving as ISO-8859-1 and got the same result.

Has anyone experienced the same problem or can anyone give me a hint how to
solve this problem ?

Regards,

Stefan







----- Original Message -----
From: Stefan Geelen
To: [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 11:22 PM
Subject: 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






Reply via email to