- From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
- Date: Thu, 21 Oct 2010 16:57:53 +0200
- To: xproc-dev@w3.org
- Message-ID: <AANLkTimZ+Jxw70SM1moV45=e4AxuH=qn=pR7Vonxw=2O@mail.gmail.com>
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=" http://www.w3.org/ns/xproc-step" version="1.0"> <p:input port="source"> <p:inline> <test/> </p:inline> </p:input> <p:output port="result"/> <p:store href="test.xml" doctype-public="-//TEST//DTD TEST Test//EN" doctype-system="test.dtd"/> <p:load href="test.xml" dtd-validate="false"/> </p:declare-step> 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