Re: Calabash and p:validate-with-xml-schema

> I believe you need SaxonSA to support the validate step.

Ok.  I have SA and a valid license.  I've been doing all my Calabash testing
on my iMac (10.5.4).  I have all the jar files (for Calabash and Saxon) in:

  Macintosh HD/Library/Java/Extensions

I wrote a little script to execute the Java that runs Calabash.  Good stuff.
So I put saxon-license.lic in there, too.  I still get the
NullPointerException.  Ideas?

here's the output from Calabash:

Running p:validate-with-xml-schema
Pipeline failed: org.xproc.XProcException: java.lang.NullPointerException
org.xproc.XProcException: java.lang.NullPointerException
    at org.xproc.XProcRuntime.run(XProcRuntime.java:516)
    at com.xmlcalabash.Main.run(Main.java:163)
    at com.xmlcalabash.Main.main(Main.java:49)
Caused by: java.lang.NullPointerException
    at org.xproc.library.ValidateWithXSD.run(ValidateWithXSD.java:94)
    at org.xproc.extensions.AtomicProxy.run(AtomicProxy.java:166)
    at 
org.xproc.components.CompoundComponent.runSubpipeline(CompoundComponent.java
:103)
    at org.xproc.components.CompoundComponent.run(CompoundComponent.java:92)
    at org.xproc.XProcRuntime.run(XProcRuntime.java:508)
    ... 2 more

TIA,

James Garriss
http://garriss.blogspot.com




From: Norman Walsh <ndw@nwalsh.com>
Date: Mon, 22 Sep 2008 12:33:40 -0400
To: James Garriss <james@garriss.org>
Cc: XProc Dev <xproc-dev@w3.org>
Subject: Re: Calabash and p:validate-with-xml-schema
Resent-From: XProc Dev <xproc-dev@w3.org>
Resent-Date: Mon, 22 Sep 2008 16:34:25 +0000

James Garriss <james@garriss.org> writes:

> Has Calabash implemented this step yet?  I know it's optional, so maybe it's
> not high on the priority list.
>
> I ask, because this XPL:
>
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
>     <p:input port="source">
>         <p:document href="BookStore.xml"/>
>     </p:input>
>     <p:output port="result"/>
>     <p:validate-with-xml-schema mode="lax">
>         <p:input port="schema">
>             <p:document href="BookStore.xsd"/>
>         </p:input>
>     </p:validate-with-xml-schema>
> </p:declare-step>
>
> gives a java.lang.NullPointerException with Calabash 0.6.0.  Maybe there's
> an error in my pipeline?
>
> Appreciate any help!

I believe you need SaxonSA to support the validate step.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Truth lies within a little uncertain
http://nwalsh.com/            | compass, but error is immense.

Received on Monday, 22 September 2008 18:25:56 UTC