DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12305>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12305

Relative DTD URI's fail with "no protocol" message.





------- Additional Comments From [EMAIL PROTECTED]  2002-10-30 21:40 -------
Hi,

I sometimes did get following error:
javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: java.net.MalformedURLException: 
unknown protocol: c

After investigating a little bit I found the 'error'.

I was using following piece of code:

InputSource xmlsource = null ;
(...)

// Set xml system-id
if (xmlsystemid != null) 
  xmlsource.setSystemId(xmlsystemid);         
(...)

The problem was that the xmlsystemid String was not a real URI: It was just a 
file reference like: c:\test\test.xml.

After changing it to a real uri: file:c:\test\test.xml the problem disappeared.

The difficulty is though that the error is not consistently reproduced.  For 
some xml/xsl files I did get this error, for others not.

It took me a while to find out but since this modification all xml/xsl files 
run fine.

I suppose the 'c' after the no protocol message is represenring the c: drive ?

Regards,

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to