Re: Catching an XD0029

Never mind. Found the issue tracker:
http://code.google.com/p/xmlcalabash/issues/detail?id=135

<http://code.google.com/p/xmlcalabash/issues/detail?id=135>Jostein

2010/12/9 Jostein Austvik Jacobsen <josteinaj@gmail.com>

> Ok, thanks.
>
> Should I file a formal bug report somewhere, or is Norman Walsh reading
> this?
>
> Regards
> Jostein
>
> 2010/12/9 <vojtech.toman@emc.com>
>
> This looks like a bug in the processor to me. There is no reason why you
>> shouldn't be able to catch XD0029 (or any other dynamic error) in
>> p:try/p:catch.
>>
>> Vojtech
>>
>> ________________________________________
>> Odesílatel: xproc-dev-request@w3.org [xproc-dev-request@w3.org] za
>> uživatele Jostein Austvik Jacobsen [josteinaj@gmail.com]
>> Odesláno: 9. prosince 2010 10:49
>> Komu: xproc-dev@w3.org
>> Předmět: Catching an XD0029
>>
>> Hi.
>>
>> 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:try>
>>        <p:group>
>>            <p:identity>
>>                <p:input port="source">
>>                    <p:data href="doesNotExist"/>
>>                </p:input>
>>            </p:identity>
>>        </p:group>
>>        <p:catch>
>>            <p:identity>
>>                <p:input port="source">
>>                    <p:inline>
>>                        <c:data/>
>>                    </p:inline>
>>                </p:input>
>>            </p:identity>
>>        </p:catch>
>>    </p:try>
>>
>> </p:declare-step>
>>
>>
>> "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?
>>
>> Regards
>> Jostein
>>
>>
>

Received on Thursday, 9 December 2010 15:33:12 UTC