- From: James Garriss <james@garriss.org>
- Date: Fri, 26 Sep 2008 21:15:38 -0400
- To: XProc Dev <xproc-dev@w3.org>
- Message-ID: <C503017A.AD3%james@garriss.org>
Heh, so I'm working with p:validate-with-xml-schema using the px:is-valid declaration you sent out this morning, and here's the ouput I got: $ cd code/xproc; java com.xmlcalabash.Main -a pipe.xpl ============================================================================ ========= Before augment: ============================================================================ pipeline is-valid input source input schema output result option mode try #ANON.51 group #ANON.52 validate-with-xml-schema #ANON.53 input source pipe name binding to source on is-valid input schema pipe name binding to schema on is-valid option assert-valid option mode choose #ANON.54 when #ANON.55 identity #ANON.56 input source inline binding otherwise #ANON.57 identity #ANON.58 input source inline binding catch #ANON.59 input errors Error binding identity #ANON.60 input source inline binding After binding pipeline inputs and outputs: ============================================================================ pipeline is-valid input source inline binding input schema inline binding output result [pipe binding #2] from null to null option mode try #ANON.51 group #ANON.52 validate-with-xml-schema #ANON.53 input source pipe name binding to source on is-valid input schema pipe name binding to schema on is-valid option assert-valid option mode choose #ANON.54 when #ANON.55 identity #ANON.56 input source inline binding otherwise #ANON.57 identity #ANON.58 input source inline binding catch #ANON.59 input errors Error binding identity #ANON.60 input source inline binding After augment: ============================================================================ pipeline is-valid input source inline binding input schema inline binding input |result output result [pipe binding #2] from null to null output source| output schema| option mode try #ANON.51 input |!result output !result group #ANON.52 input |!result output !result validate-with-xml-schema #ANON.53 input source pipe name binding to source on is-valid input schema pipe name binding to schema on is-valid output result option assert-valid option mode choose #ANON.54 input |!result output !result when #ANON.55 input #xpath-context input |!result output !result identity #ANON.56 input source inline binding output result otherwise #ANON.57 input |!result output !result identity #ANON.58 input source inline binding output result catch #ANON.59 input errors Error binding input |!result output !result identity #ANON.60 input source inline binding output result After valid: ============================================================================ pipeline is-valid input source inline binding input schema inline binding input |result pipe name binding to !result on #ANON.51 output result [pipe binding #2] from null to null output source| output schema| option mode try #ANON.51 input |!result output !result group #ANON.52 input |!result pipe name binding to !result on #ANON.54 output !result validate-with-xml-schema #ANON.53 input source pipe name binding to source on is-valid input schema pipe name binding to schema on is-valid output result option assert-valid option mode choose #ANON.54 input |!result output !result when #ANON.55 input #xpath-context pipe name binding to result on #ANON.53 input |!result pipe name binding to result on #ANON.56 output !result identity #ANON.56 input source inline binding output result otherwise #ANON.57 input |!result pipe name binding to result on #ANON.58 output !result identity #ANON.58 input source inline binding output result catch #ANON.59 input errors Error binding input |!result pipe name binding to result on #ANON.60 output !result identity #ANON.60 input source inline binding output result After splitters: ============================================================================ pipeline is-valid input source inline binding input schema inline binding input |result pipe name binding to !result on #ANON.51 output result [pipe binding #2] from null to null output source| output schema| option mode try #ANON.51 input |!result output !result group #ANON.52 input |!result pipe name binding to !result on #ANON.54 output !result validate-with-xml-schema #ANON.53 input source pipe name binding to source on is-valid input schema pipe name binding to schema on is-valid output result option assert-valid option mode choose #ANON.54 input |!result output !result when #ANON.55 input #xpath-context pipe name binding to result on #ANON.53 input |!result pipe name binding to result on #ANON.56 output !result identity #ANON.56 input source inline binding output result otherwise #ANON.57 input |!result pipe name binding to result on #ANON.58 output !result identity #ANON.58 input source inline binding output result catch #ANON.59 input errors Error binding input |!result pipe name binding to result on #ANON.60 output !result identity #ANON.60 input source inline binding output result After patching pipe bindings: ============================================================================ pipeline is-valid input source inline binding input schema inline binding input |result [pipe binding #3] from [output !result on #ANON.51] to [input |result on is-valid] output result [pipe binding #2] from null to null output source| [pipe binding #5] from [output source| on is-valid] to [input source on #ANON.53] output schema| [pipe binding #6] from [output schema| on is-valid] to [input schema on #ANON.53] option mode try #ANON.51 input |!result output !result [pipe binding #3] from [output !result on #ANON.51] to [input |result on is-valid] group #ANON.52 input |!result [pipe binding #4] from [output !result on #ANON.54] to [input |!result on #ANON.52] output !result validate-with-xml-schema #ANON.53 input source [pipe binding #5] from [output source| on is-valid] to [input source on #ANON.53] input schema [pipe binding #6] from [output schema| on is-valid] to [input schema on #ANON.53] output result [pipe binding #7] from [output result on #ANON.53] to [input #xpath-context on #ANON.55] option assert-valid option mode choose #ANON.54 input |!result output !result [pipe binding #4] from [output !result on #ANON.54] to [input |!result on #ANON.52] when #ANON.55 input #xpath-context [pipe binding #7] from [output result on #ANON.53] to [input #xpath-context on #ANON.55] input |!result [pipe binding #8] from [output result on #ANON.56] to [input |!result on #ANON.55] output !result identity #ANON.56 input source inline binding output result [pipe binding #8] from [output result on #ANON.56] to [input |!result on #ANON.55] otherwise #ANON.57 input |!result [pipe binding #9] from [output result on #ANON.58] to [input |!result on #ANON.57] output !result identity #ANON.58 input source inline binding output result [pipe binding #9] from [output result on #ANON.58] to [input |!result on #ANON.57] catch #ANON.59 input errors Error binding input |!result [pipe binding #10] from [output result on #ANON.60] to [input |!result on #ANON.59] output !result identity #ANON.60 input source inline binding output result [pipe binding #10] from [output result on #ANON.60] to [input |!result on #ANON.59] Running p:validate-with-xml-schema Running p:identity <c:result xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:p="http://www.w3.org/ns/xproc" xmlns:px="www.garriss.org">true</c:result> Wow. Did verbose mode get turned on? :-) On the positive side, it works (mostly)! James Garriss http://garriss.blogspot.com
Received on Saturday, 27 September 2008 01:16:24 UTC