I'm looking for any configuration that Saxon may be able solve this. I haven't found any but want to find out for sure. It sounds like there is nothing I can do in Saxon for this. Thanks for the response.
On Dec 4, 2007 3:05 PM, Michael Kay <mike@saxonica.com> wrote:
I think you will have to ask this question in a different place: it's something to do with the way that the catalog is working. It's certainly nothing to do with Saxon - Saxon doesn't get involved with dereferencing external entity references.
 
(Sorry if that sounds unhelpful. I'm happy to help with questions that fall outside the strict boundaries of Saxon if I happen to know the answer. But in this case I don't.)
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-bounces@lists.sourceforge.net [mailto: saxon-help-bounces@lists.sourceforge.net] On Behalf Of Panthera 5000
Sent: 04 December 2007 22:17
To: saxon-help@lists.sourceforge.net
Subject: [saxon] net.sf.saxon.trans.DynamicError:java.net.MalformedURLException: no protocol: file_01.xml

My apology for the format error in my previous email. I didn't realize I cut & paste the html link as well. The clean version is below.
 
I have a Java program that transform XML files to another format using Saxon 8.7. It works fine for a single full XML file. When I try to transform a XML with entity file references, I got the no protocol error.
 
The XML looks like this:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "-//My Document DTD v1.1 20030520//EN" "mydtd/project.dtd" [
      <!ENTITY file_01 SYSTEM "file_01.xml">
      <!ENTITY file_02 SYSTEM "file_02.xml">
      <!ENTITY file_03 SYSTEM "file_03.xml">
      <!ENTITY file_04 SYSTEM "file_04.xml">
]>
<document xmlns:xlink=" http://www.w3.org/1999/xlink">
      <title>Title here</title>
&file_01;
&file_02;
&file_03;
&file_04;
</document>

The error is:
net.sf.saxon.trans.DynamicError: java.net.MalformedURLException: no protocol: file_01.xml

I have catalog file to map my DTD so those are working fine. But as for the entity files, each project has different file so I don't think I map each of them.

Is there any solution in transforming this without getting the protocol error? Thank you for any help.

Owon. S.


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
saxon-help mailing list
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help