- From: Costello, Roger L. <costello@mitre.org>
- Date: Sat, 15 Nov 2008 10:02:55 -0500
- To: <xproc-dev@w3.org>, "Costello, Roger L." <costello@mitre.org>
Hi Folks, I am using validate-with-xml-schema to validate BookStore.xml against BookStore.xsd: <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:pipe step="myValidate" port="result"/> </p:output> <p:validate-with-xml-schema assert-valid="true" mode="strict" name="myValidate"> <p:input port="schema"> <p:document href="BookStore.xsd"/> </p:input> </p:validate-with-xml-schema> </p:declare-step> Can someone tell me what I'm doing wrong please? When I run it using Calabash 0.8.6 I get an error message that I must use SAXON-SA. I am using the latest version of SAXON-SA, and the saxon-license.lic file is in my classpath. Error : Pipeline failed: com.xmlcalabash.core.XProcException: Validate with XSD requires SaxonSA. com.xmlcalabash.core.XProcException: Validate with XSD requires SaxonSA. at com.xmlcalabash.library.ValidateWithXSD.run(ValidateWithXSD.java:85) at com.xmlcalabash.runtime.XAtomicStep.run(XAtomicStep.java:301) at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:186) at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:93) at com.xmlcalabash.drivers.Main.run(Main.java:169) at com.xmlcalabash.drivers.Main.main(Main.java:66) When I run it using Calabash 0.6.2 I get a null pointer error message: 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:517) at com.xmlcalabash.Main.run(Main.java:175) at com.xmlcalabash.Main.main(Main.java:54) Caused by: java.lang.NullPointerException at org.xproc.library.ValidateWithXSD.run(ValidateWithXSD.java:94) at org.xproc.extensions.AtomicProxy.run(AtomicProxy.java:171) at org.xproc.components.CompoundComponent.runSubpipeline(CompoundComponent .java:106) at org.xproc.components.CompoundComponent.run(CompoundComponent.java:95) at org.xproc.XProcRuntime.run(XProcRuntime.java:509) Any insights into what I am doing wrong would be much appreciated. /Roger
Received on Saturday, 15 November 2008 15:03:35 UTC