It's not actually clear from the information you have given why the parser
is trying to find the host dtd.ln.de. Where does this string appear in your
source?
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Madlik Monika [mailto:monika(_dot_)madlik(_at_)lexisnexis(_dot_)at]
Sent: 30 May 2005 07:24
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Saxon -> UnknownHostException
Hello!
I told you about the problem I have with my external DTD last
Wednesday. Here is a short summary of my problem again: I
tried to create an HTML-File with Saxon and I gave Saxon an
XML-File and an XSLT-File. But I got the Error-Message:
"Warning: java.net.UnknownHostException: dtd.ln.de".
You told me, that Saxon isn't interrested in the DTD. Which
XML-Parser is a good one for this problem and how can I
include it in my batchfile? I tried to perform DTD-based
validation with the command line option "-v" but it failed every time!
I'm still a beginner in learning XML, so please can you help me?
Kind regards,
Monika
-----Ursprüngliche Nachricht-----
Von: xsl-list-digest-help(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:xsl-list-digest-help(_at_)lists(_dot_)mulberrytech(_dot_)com]
Gesendet: Donnerstag, 26. Mai 2005 07:10
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: xsl-list Digest 26 May 2005 05:10:00 -0000 Issue 428
xsl-list Digest 26 May 2005 05:10:00 -0000 Issue 428
Saxon -> UnknownHostException
16743 by: Madlik Monika
16753 by: Michael Kay
------------------------------
Date: Wed, 25 May 2005 15:25:36 +0200
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
From: "Madlik Monika" <monika(_dot_)madlik(_at_)lexisnexis(_dot_)at>
Subject: Saxon -> UnknownHostException
Message-ID:
<AA7BAD89B2B0C746A26452F44939F1E3B38C5B(_at_)LNGVIEEX1(_dot_)orac(_dot_)local>
Hello,
I'm working with XSLT 2.0 and Saxon 8.0.=20
I created a file named 'xmlAbgbDir.lst' where I put in all
names of my =
existing xml-files. Then I wrote an xml-file (see example
below) and an =
xslt-file.=20
I wrote a batchfile (see example below), with which I wanted
to create =
an errorlist-html-file. But everytime I start the batchfile I
get the =
message "Warning: java.net.UnknownHostException: dtd.ln.de". My =
xml-files include a dtd - but I had to insert this in the
catalog-file =
of XML-Spy.
How can I tell Saxon to use a dtd generally for all my
xml-file (though =
they even have a dtd)?
This is my xml-file:
---------------------------
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!DOCTYPE xmlCommDir [
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <!ENTITY xmlDirList SYSTEM =
"xmlAbgbDir.lst">
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <!ELEMENT xmlCommDir (#PCDATA)>
]>
<xmlCommDir>&xmlDirList;</xmlCommDir>
My batchfile looks like this:
---------------------------------------
SET CLASSPATH=3D.;G:\xsl\Saxon\saxon8.jar;
java -Xmx512m net.sf.saxon.Transform -o errors_meta.html
xmlCommDir.xml =
commMetaErrors.xsl=20
Kind regards,
Monika
------------------------------
Date: Wed, 25 May 2005 16:40:23 +0100
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
Subject: RE: [xsl] Saxon -> UnknownHostException
How can I tell Saxon to use a dtd generally for all my
xml-file (though they even have a dtd)?
Saxon isn't interested in the DTD - it's the XML parser whose
behaviour you
need to influence, not Saxon's behaviour. For example, you may want to
supply your own EntityResolver. You can check whether your
chosen XML parser
allows you to set the relevant options using Java system
properties; if not,
you have to write a bit of Java code that supplies Saxon with
a StreamSource
containing an XML parser that has already been configured with the
appropriate options. Alternatively, edit your source files to
include/exclude a reference to the DTD as appropriate.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--