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

Catching an XD0029

From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
Date: Thu, 9 Dec 2010 10:49:35 +0100
Message-ID: <AANLkTims5PeXou-i5XePwFEDC43hC5DLSFsWiDSmzK2Y@mail.gmail.com>
To: xproc-dev@w3.org

I'm having a problem catching the XD0029 dynamic error thrown from a p:data
where the referenced file does not exist. I'm using oXygen 12.0 with the
bundled Calabash. Here's the pipeline:

<?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:output port="result"/>

                <p:input port="source">
                    <p:data href="doesNotExist"/>
                <p:input port="source">


"err:XD0029 : XProc error err:XD0029 It is a dynamic error if the document
referenced by a p:data element does not exist, cannot be accessed, or cannot
be encoded as specified. /my/local/filesystem/path/doesNotExist (No such
file or directory)"

How come the p:try doesn't catch this error?

Received on Thursday, 9 December 2010 09:50:28 UTC

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