- From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
- Date: Fri, 20 Dec 2013 12:47:40 +0100
- To: David Cramer <david@thingbag.net>
- Cc: XProc Dev <xproc-dev@w3.org>
- Message-ID: <CAOCxfQepivnrEMkkDwSZH+6NsW8-c1nDb2W4WZ8s=wKCzAR=Aw@mail.gmail.com>
Which version of calabash are you using? Is it related to https://github.com/ndw/xmlcalabash1/issues/97 ? Jostein On 19 December 2013 22:35, David Cramer <david@thingbag.net> wrote: > Hi there, > I have a validation step in a pipeline with the following in the p:catch: > > <p:error code="psch:Invalid"> > <p:input port="source"> > <p:pipe port="error" step="catch"/> > </p:input> > </p:error> > > When errors occur, they're reported like so: > > Dec 19, 2013 3:26:26 PM com.xmlcalabash.util.DefaultXProcMessageListener > error > SEVERE: > > product_schema_def/xpl/productSchema.xpl:0:psch:Invalid:net.sf.saxon.trans.XPathException: > Cannot compare MinOccurs to xs:string > Dec 19, 2013 3:26:26 PM com.xmlcalabash.drivers.Main error > SEVERE: Unknown error > > If I set up a secondary report port and passing it through an xslt, I > can get it to spit out the full error: > > <c:errors xmlns:c="http://www.w3.org/ns/xproc-step"> > <error xmlns="http://www.w3.org/ns/xproc-step" > xmlns:err="http://www.w3.org/2005/xqt-errors" > code="err:XPTY0004" > type="fatal-error" > > > href="file:/home/dcramer/Documents/rax/standard-usage-schemas-myfork/product_schema_def/xsl/productSchema-standalone.xsl" > line="300">net.sf.saxon.trans.XPathException: Cannot compare > MinOccurs to xs:string</error> > </c:errors> > > I'm puzzled though as to why p:error suppresses critical information > like the file and line in which the error occurred to begin with. Is > there some easy way to tell p:error to provide all the details? > > Regards, > David > >
Received on Friday, 20 December 2013 11:48:29 UTC