W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2010

p:load can't find missing DTD when not validating against it...

From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
Date: Thu, 21 Oct 2010 16:57:53 +0200
Message-ID: <AANLkTimZ+Jxw70SM1moV45=e4AxuH=qn=pR7Vonxw=2O@mail.gmail.com>
To: xproc-dev@w3.org
I'm trying to load an XML-file that declares a DTD in its doctype, but the
DTD isn't available. I don't need to validate against it anyway, but the
declaration is there. This doesn't work:

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="
    <p:input port="source">
    <p:output port="result"/>

    <p:store href="test.xml" doctype-public="-//TEST//DTD TEST Test//EN"
    <p:load href="test.xml" dtd-validate="false"/>


Shortened down, this is the error I get:

com.xmlcalabash.core.XProcException: XProc error err:XD0011
at com.xmlcalabash.core.XProcException.dynamicError(XProcException.java:176)
Caused by: net.sf.saxon.s9api.SaxonApiException:
java.io.FileNotFoundException: /home/jostein/Skrivebord/test.dtd (No such
file or directory)
at net.sf.saxon.s9api.DocumentBuilder.build(DocumentBuilder.java:338)
Caused by: net.sf.saxon.trans.XPathException: java.io.FileNotFoundException:
/home/jostein/Skrivebord/test.dtd (No such file or directory)
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:423)
Caused by: java.io.FileNotFoundException: /home/jostein/Skrivebord/test.dtd
(No such file or directory)

So it looks for the DTD, even though I specifically ask it not to validate
against it. Is this correct behavior?
As you can see from the output, I'm using Calabash (CLI reports version
0.9.22 although I think I've installed 0.9.23).

Best regards
Jostein Austvik Jacobsen
Received on Thursday, 21 October 2010 15:07:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:07 UTC