- From: Norman Walsh <ndw@nwalsh.com>
- Date: Fri, 16 Apr 2010 06:56:34 -0400
- To: XProc Dev <xproc-dev@w3.org>
- Message-ID: <m2aat3d5st.fsf@nwalsh.com>
Dave Pawson <dave.pawson@gmail.com> writes: > How to you debug your xproc .. files? With some difficulty. Like Vojtech, I sometimes bring out the java debugger, but of course that's not an option for most folks :-) The p:log step is sometimes useful. Giving steps names is often useful. The cx:message and cx:tee steps are often useful. The cx:message step is an XML Calabash extension, <p:declare-step type="cx:message"> <p:input port="source"/> <p:output port="result"/> <p:option name="message" required="true"/> </p:declare-step> but cx:tee is an ordinary pipeline. <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:cx="http://xmlcalabash.com/ns/extensions" type="cx:tee" name="main" version="1.0"> <p:input port="source" sequence="true" primary="true"/> <p:output port="result" sequence="true" primary="true"/> <p:option name="href" required="true"/> <p:option name="debug" select="0"/> <p:choose> <p:when test="$debug != 0"> <p:store name="saving-debugging-output" method="xml" indent="true"> <p:with-option name="href" select="$href"/> </p:store> </p:when> <p:otherwise> <p:sink name="discarding-debugging-output"/> </p:otherwise> </p:choose> <p:identity name="identity"> <p:input port="source"> <p:pipe step="main" port="source"/> </p:input> </p:identity> </p:declare-step> Working on improving the error messages in XML Calabash is about medium high on my list. Be seeing you, norm -- Norman Walsh <ndw@nwalsh.com> | Pleasure is seldom found where it is http://nwalsh.com/ | sought; our brightest blazes of | gladness are commonly kindled by | unexpected sparks.--Dr. Johnson
Received on Friday, 16 April 2010 10:57:08 UTC