XPROC how get validation errors

Questions about XML that are not covered by the other forums should go here.
Posts: 1
Joined: Sat Nov 20, 2010 7:48 pm

XPROC how get validation errors

Post by tazo » Sat Nov 20, 2010 8:07 pm

How retrieve validation errors from <p:validate-with-XXXX> ?
The example bellow from http://www.xfront.com/xproc/
just output INVALID, we want the errors instead!.

Code: Select all

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step" version="10.0">
<p:input port="source">
<p:document href="BookStore.xml"/>
<p:output port="result" />
<p:validate-with-xml-schema assert-valid="true" mode="strict" name="myValidate">
<p:input port="schema">
<p:document href="BookStore.xsd"/>
<p:input port="source">

Site Admin
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

Re: XPROC how get validation errors

Post by george » Mon Nov 22, 2010 5:54 pm


AFAIK it is not possible to get the validation errors, the result port will contain the source document with some enhancements, see
You will probably get them if you register an error listener on the XProc engine.
Try also posting a message on the xproc-dev@w3.org mailing list, you should get the final answer or a workaround there.

Best Regards,
George Cristian Bina

Post Reply