simple-xspec-wrapper 0.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/.travis.yml +11 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/xspec +16 -0
- data/lib/xspec/version.rb +3 -0
- data/lib/xspec.rb +256 -0
- data/simple-xspec-wrapper.gemspec +28 -0
- data/spec-test.xml +1125 -0
- data/vendor/xspec-1.0.0/.gitignore +7 -0
- data/vendor/xspec-1.0.0/.travis.yml +57 -0
- data/vendor/xspec-1.0.0/LICENSE +21 -0
- data/vendor/xspec-1.0.0/README.md +26 -0
- data/vendor/xspec-1.0.0/appveyor.yml +77 -0
- data/vendor/xspec-1.0.0/bin/xspec.bat +620 -0
- data/vendor/xspec-1.0.0/bin/xspec.sh +403 -0
- data/vendor/xspec-1.0.0/build.xml +369 -0
- data/vendor/xspec-1.0.0/editors/emacs/README +31 -0
- data/vendor/xspec-1.0.0/editors/emacs/schemas.xml +6 -0
- data/vendor/xspec-1.0.0/editors/oxygen/.cvsignore +2 -0
- data/vendor/xspec-1.0.0/editors/oxygen/README +11 -0
- data/vendor/xspec-1.0.0/editors/oxygen/build.xml +38 -0
- data/vendor/xspec-1.0.0/editors/oxygen/templates/xspec.xml +17 -0
- data/vendor/xspec-1.0.0/editors/oxygen/xspec.framework +175 -0
- data/vendor/xspec-1.0.0/find-examples.xml +37 -0
- data/vendor/xspec-1.0.0/find-examples.xsl +615 -0
- data/vendor/xspec-1.0.0/graphics/3angle-down.gif +0 -0
- data/vendor/xspec-1.0.0/graphics/3angle-right.gif +0 -0
- data/vendor/xspec-1.0.0/java/com/jenitennison/xslt/tests/XSLTCoverageTraceListener.class +0 -0
- data/vendor/xspec-1.0.0/java/com/jenitennison/xslt/tests/XSLTCoverageTraceListener.java +209 -0
- data/vendor/xspec-1.0.0/src/ant/find-test-failure.xsl +17 -0
- data/vendor/xspec-1.0.0/src/ant/get-schematron-phase.xsl +17 -0
- data/vendor/xspec-1.0.0/src/ant/locate-schematron.xsl +28 -0
- data/vendor/xspec-1.0.0/src/ant/make-path.js +4 -0
- data/vendor/xspec-1.0.0/src/compiler/generate-common-tests.xsl +604 -0
- data/vendor/xspec-1.0.0/src/compiler/generate-query-helper.xsl +152 -0
- data/vendor/xspec-1.0.0/src/compiler/generate-query-tests.xsl +473 -0
- data/vendor/xspec-1.0.0/src/compiler/generate-query-utils.xql +263 -0
- data/vendor/xspec-1.0.0/src/compiler/generate-tests-helper.xsl +169 -0
- data/vendor/xspec-1.0.0/src/compiler/generate-tests-utils.xsl +479 -0
- data/vendor/xspec-1.0.0/src/compiler/generate-xspec-tests.xsl +503 -0
- data/vendor/xspec-1.0.0/src/harnesses/basex/basex-standalone-xquery-harness.xproc +135 -0
- data/vendor/xspec-1.0.0/src/harnesses/basex/basex-xquery-harness.xproc +133 -0
- data/vendor/xspec-1.0.0/src/harnesses/exist/exist-xquery-harness.xproc +161 -0
- data/vendor/xspec-1.0.0/src/harnesses/harness-lib.xpl +327 -0
- data/vendor/xspec-1.0.0/src/harnesses/marklogic/ml-xquery-harness.xproc +143 -0
- data/vendor/xspec-1.0.0/src/harnesses/saxon/saxon-xquery-harness.xproc +108 -0
- data/vendor/xspec-1.0.0/src/harnesses/saxon/saxon-xslt-harness.xproc +85 -0
- data/vendor/xspec-1.0.0/src/harnesses/zorba/zorba-xquery-harness.xproc +134 -0
- data/vendor/xspec-1.0.0/src/reporter/coverage-report.xsl +378 -0
- data/vendor/xspec-1.0.0/src/reporter/format-utils.xsl +220 -0
- data/vendor/xspec-1.0.0/src/reporter/format-xspec-report-folding.xsl +164 -0
- data/vendor/xspec-1.0.0/src/reporter/format-xspec-report.xsl +410 -0
- data/vendor/xspec-1.0.0/src/reporter/junit-report.xsl +93 -0
- data/vendor/xspec-1.0.0/src/reporter/test-report.css +469 -0
- data/vendor/xspec-1.0.0/src/schemas/find-examples.rnc +90 -0
- data/vendor/xspec-1.0.0/src/schemas/xspec.rnc +304 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_abstract_expand.xsl +313 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_dsdl_include.xsl +1519 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_schematron_message.xsl +64 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_schematron_message_xslt2.xsl +64 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_schematron_skeleton_for_saxon.xsl +2306 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_schematron_skeleton_for_xslt1.xsl +1851 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_svrl_for_xslt1.xsl +614 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_svrl_for_xslt2.xsl +692 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/readme.txt +101 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-cs.xhtml +56 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-de.xhtml +55 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-en.xhtml +57 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-fr.xhtml +54 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-ja.xhtml +53 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-nl.xhtml +58 -0
- data/vendor/xspec-1.0.0/src/schematron/iso-schematron/schematron-skeleton-api.htm +723 -0
- data/vendor/xspec-1.0.0/src/schematron/sch-location-compare.xsl +139 -0
- data/vendor/xspec-1.0.0/src/schematron/schut-to-xspec.xsl +179 -0
- data/vendor/xspec-1.0.0/test/Makefile +117 -0
- data/vendor/xspec-1.0.0/test/README +5 -0
- data/vendor/xspec-1.0.0/test/catalog/xspec-160_catalog.xml +4 -0
- data/vendor/xspec-1.0.0/test/catalog/xspec-160_schematron.xspec +6 -0
- data/vendor/xspec-1.0.0/test/catalog/xspec-160_xslt.xspec +5 -0
- data/vendor/xspec-1.0.0/test/end-to-end/README.md +42 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/.gitignore +1 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/.gitignore +3 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-50-result-norm.html +74 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-55-result-norm.html +112 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-focus-1-result-norm.html +109 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-function-result-norm.html +118 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-import-result-norm.html +163 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-imported-result-norm.html +95 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-pending-result-norm.html +123 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-rule-result-norm.html +109 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-three-dots-result-norm.html +1237 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-50.xsl +7 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-50.xspec +10 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-55.xsl +2 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-55.xspec +18 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-focus-1.xspec +71 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-function.xspec +50 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-import.xspec +50 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-imported.xspec +48 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-pending.xspec +89 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-rule.xspec +76 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-three-dots.xsl +49 -0
- data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-three-dots.xspec +527 -0
- data/vendor/xspec-1.0.0/test/end-to-end/generate-expected.cmd +51 -0
- data/vendor/xspec-1.0.0/test/end-to-end/generate-expected.sh +25 -0
- data/vendor/xspec-1.0.0/test/end-to-end/processor/_deserializer.xsl +53 -0
- data/vendor/xspec-1.0.0/test/end-to-end/processor/_normalizer.xsl +192 -0
- data/vendor/xspec-1.0.0/test/end-to-end/processor/_serializer.xsl +15 -0
- data/vendor/xspec-1.0.0/test/end-to-end/processor/_util.xsl +35 -0
- data/vendor/xspec-1.0.0/test/end-to-end/processor/compare.xsl +88 -0
- data/vendor/xspec-1.0.0/test/end-to-end/processor/normalize.xsl +28 -0
- data/vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.cmd +61 -0
- data/vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.sh +28 -0
- data/vendor/xspec-1.0.0/test/generate-tests-utils.xspec +636 -0
- data/vendor/xspec-1.0.0/test/generate-x-utils.xspec +173 -0
- data/vendor/xspec-1.0.0/test/generate-xspec-tests.xspec +64 -0
- data/vendor/xspec-1.0.0/test/run-xspec-tests.cmd +83 -0
- data/vendor/xspec-1.0.0/test/run-xspec-tests.sh +42 -0
- data/vendor/xspec-1.0.0/test/sch-location-compare.xspec +179 -0
- data/vendor/xspec-1.0.0/test/schematron/data/standards.xml +7 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-017.sch +9 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-018.sch +17 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-019.sch +13 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-020-01.sch +35 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-020.sch +32 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-021.sch +28 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-022.sch +18 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-xslt-compile.xsl +8 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-xslt-expand.xsl +8 -0
- data/vendor/xspec-1.0.0/test/schematron/schematron-xslt-include.xsl +8 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-001-in.xspec +5 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-001-out.xspec +7 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-002-in.xspec +5 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-002-out.xspec +7 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-002.sch +4 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-003-in.xspec +7 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-003-out.xspec +9 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-004-in.xspec +20 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-004-out.xspec +22 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-005-in.xspec +6 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-005-out.xspec +8 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-006-in.xspec +11 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-006-out.xspec +13 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-007-in.xspec +7 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-007-out.xspec +9 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-007.xml +2 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-008-in.xspec +9 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-008-out.xspec +9 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-009-import-in.xspec +5 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-009-in.xspec +6 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-009-out.xspec +10 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-010-import.xspec +5 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-010-in.xspec +6 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-010-out.xspec +8 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-011-in.xspec +6 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-011-out.xspec +8 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-012-01.xml +4 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-012-02.xml +13 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-012-out.xspec +81 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-013-in.xspec +6 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-013-out.xspec +8 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-test.sch +4 -0
- data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-test.sch.xsl +4 -0
- data/vendor/xspec-1.0.0/test/schematron-01.sch +17 -0
- data/vendor/xspec-1.0.0/test/schematron-01.xml +14 -0
- data/vendor/xspec-1.0.0/test/schematron-01.xspec +14 -0
- data/vendor/xspec-1.0.0/test/schematron-012.xspec +83 -0
- data/vendor/xspec-1.0.0/test/schematron-014-01.xml +10 -0
- data/vendor/xspec-1.0.0/test/schematron-014.sch +16 -0
- data/vendor/xspec-1.0.0/test/schematron-014.xspec +11 -0
- data/vendor/xspec-1.0.0/test/schematron-015.sch +16 -0
- data/vendor/xspec-1.0.0/test/schematron-015.xspec +11 -0
- data/vendor/xspec-1.0.0/test/schematron-016.sch +19 -0
- data/vendor/xspec-1.0.0/test/schematron-016.xspec +171 -0
- data/vendor/xspec-1.0.0/test/schematron-017.xspec +26 -0
- data/vendor/xspec-1.0.0/test/schematron-018.xspec +120 -0
- data/vendor/xspec-1.0.0/test/schematron-019.xspec +16 -0
- data/vendor/xspec-1.0.0/test/schematron-020.xspec +53 -0
- data/vendor/xspec-1.0.0/test/schematron-021.xspec +27 -0
- data/vendor/xspec-1.0.0/test/schematron-022.xspec +15 -0
- data/vendor/xspec-1.0.0/test/schematron-param-001.xspec +50 -0
- data/vendor/xspec-1.0.0/test/schut-to-xspec-012.sch +27 -0
- data/vendor/xspec-1.0.0/test/schut-to-xspec.xspec +85 -0
- data/vendor/xspec-1.0.0/test/unit-expect-xsl.xspec +28 -0
- data/vendor/xspec-1.0.0/test/xspec-26.xsl +19 -0
- data/vendor/xspec-1.0.0/test/xspec-26.xspec +17 -0
- data/vendor/xspec-1.0.0/test/xspec-30.xml +2 -0
- data/vendor/xspec-1.0.0/test/xspec-30.xsl +6 -0
- data/vendor/xspec-1.0.0/test/xspec-30.xspec +8 -0
- data/vendor/xspec-1.0.0/test/xspec-33.xsl +7 -0
- data/vendor/xspec-1.0.0/test/xspec-33.xspec +15 -0
- data/vendor/xspec-1.0.0/test/xspec-46.xsl +7 -0
- data/vendor/xspec-1.0.0/test/xspec-46.xspec +9 -0
- data/vendor/xspec-1.0.0/test/xspec-72.xsl +13 -0
- data/vendor/xspec-1.0.0/test/xspec-72.xspec +19 -0
- data/vendor/xspec-1.0.0/test/xspec-bat.cmd +757 -0
- data/vendor/xspec-1.0.0/test/xspec-focus-2.xspec +91 -0
- data/vendor/xspec-1.0.0/test/xspec-junit.xspec +78 -0
- data/vendor/xspec-1.0.0/test/xspec-result-naming-collision.xml +1003 -0
- data/vendor/xspec-1.0.0/test/xspec-result-naming-collision.xslt +10 -0
- data/vendor/xspec-1.0.0/test/xspec-result-naming-collision.xspec +13 -0
- data/vendor/xspec-1.0.0/test/xspec-tested.xql +44 -0
- data/vendor/xspec-1.0.0/test/xspec-tested.xsl +64 -0
- data/vendor/xspec-1.0.0/test/xspec-variable.xml +3 -0
- data/vendor/xspec-1.0.0/test/xspec-variable.xspec +58 -0
- data/vendor/xspec-1.0.0/test/xspec-xslt3.xsl +13 -0
- data/vendor/xspec-1.0.0/test/xspec-xslt3.xspec +12 -0
- data/vendor/xspec-1.0.0/test/xspec.bats +420 -0
- data/vendor/xspec-1.0.0/tutorial/escape-for-regex.xslt +40 -0
- data/vendor/xspec-1.0.0/tutorial/escape-for-regex.xspec +75 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-01.sch +17 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-01.xml +11 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-01.xspec +14 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-PhaseA.xspec +11 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-PhaseB.xspec +12 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-import1.xspec +10 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-import2.xspec +8 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-import3.xspec +10 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-02.sch +58 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-02.xml +19 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-03-doc1.xml +6 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-03-doc2.xml +7 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-03.sch +29 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-03.xspec +63 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-04.sch +20 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/demo-04.xspec +33 -0
- data/vendor/xspec-1.0.0/tutorial/schematron/quickfix.sch +81 -0
- data/vendor/xspec-1.0.0/tutorial/xquery-tutorial.xq +8 -0
- data/vendor/xspec-1.0.0/tutorial/xquery-tutorial.xspec +16 -0
- data/vendor/xspec-1.0.0/xproject/project.xml +8 -0
- data/vendor/xspec-1.0.0/xproject/release-project.xsl +41 -0
- metadata +341 -0
@@ -0,0 +1,83 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" schematron="schut-to-xspec-012.sch">
|
4
|
+
<x:scenario label="expect-valid">
|
5
|
+
<x:context href="schematron/schut-to-xspec-012-01.xml"/>
|
6
|
+
<x:expect-valid/>
|
7
|
+
</x:scenario>
|
8
|
+
<x:scenario label="assertions">
|
9
|
+
<x:scenario label="without attributes">
|
10
|
+
<x:scenario label="not thrown">
|
11
|
+
<x:context href="schematron/schut-to-xspec-012-01.xml"/>
|
12
|
+
<x:expect-not-assert/>
|
13
|
+
<x:expect-not-report/>
|
14
|
+
</x:scenario>
|
15
|
+
<x:scenario label="thrown">
|
16
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
17
|
+
<x:expect-assert/>
|
18
|
+
<x:expect-report/>
|
19
|
+
</x:scenario>
|
20
|
+
</x:scenario>
|
21
|
+
<x:scenario label="with id">
|
22
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
23
|
+
<x:expect-assert id="a1"/>
|
24
|
+
<x:expect-not-assert id="a2"/>
|
25
|
+
<x:expect-report id="r1"/>
|
26
|
+
<x:expect-not-report id="r2"/>
|
27
|
+
</x:scenario>
|
28
|
+
<x:scenario label="with role">
|
29
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
30
|
+
<x:expect-assert role="warn"/>
|
31
|
+
<x:expect-not-assert role="fatal"/>
|
32
|
+
<x:expect-report role="warn"/>
|
33
|
+
<x:expect-not-report role="info"/>
|
34
|
+
</x:scenario>
|
35
|
+
<x:scenario label="with location">
|
36
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
37
|
+
<x:expect-assert location="/article[1]/div[1]"/>
|
38
|
+
<x:expect-not-assert location="/article[1]/div[2]"/>
|
39
|
+
<x:expect-report location="/article[1]/div[3]"/>
|
40
|
+
<x:expect-not-report location="/article[1]/div[4]"/>
|
41
|
+
</x:scenario>
|
42
|
+
<x:scenario label="with id, location">
|
43
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
44
|
+
<x:expect-assert id="a1" location="/article[1]/div[1]"/>
|
45
|
+
<x:expect-not-assert id="a2" location="/article[1]/div[2]"/>
|
46
|
+
<x:expect-report id="r1" location="/article[1]/div[3]"/>
|
47
|
+
<x:expect-not-report id="r2" location="/article[1]/div[4]"/>
|
48
|
+
</x:scenario>
|
49
|
+
<x:scenario label="with id, role, location">
|
50
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
51
|
+
<x:expect-assert id="a1" role="warn" location="/article[1]/div[1]"/>
|
52
|
+
<x:expect-not-assert id="a2" role="error" location="/article[1]/div[2]"/>
|
53
|
+
<x:expect-report id="r1" role="warn" location="/article[1]/div[3]"/>
|
54
|
+
<x:expect-not-report id="r2" role="info" location="/article[1]/div[4]"/>
|
55
|
+
</x:scenario>
|
56
|
+
</x:scenario>
|
57
|
+
<x:scenario label="inherrit from rule">
|
58
|
+
<x:scenario label="id and role from rule">
|
59
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
60
|
+
<x:expect-assert id="ru1" role="error"/>
|
61
|
+
</x:scenario>
|
62
|
+
<x:scenario label="id from rule and role from assertion">
|
63
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
64
|
+
<x:expect-assert id="ru1" role="warn"/>
|
65
|
+
</x:scenario>
|
66
|
+
<x:scenario label="role from rule and id from assertion">
|
67
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
68
|
+
<x:expect-assert id="ru2" role="error"/>
|
69
|
+
</x:scenario>
|
70
|
+
<x:scenario label="match only current rule">
|
71
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
72
|
+
<x:expect-not-assert id="ru3"/>
|
73
|
+
<x:expect-not-assert id="ru3" role="warn"/>
|
74
|
+
<x:expect-report id="ru3" role="warn" location="/article[1]"/>
|
75
|
+
</x:scenario>
|
76
|
+
</x:scenario>
|
77
|
+
<x:scenario label="inherrit from pattern">
|
78
|
+
<x:scenario label="id from pattern">
|
79
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
80
|
+
<x:expect-assert id="pattern3"/>
|
81
|
+
</x:scenario>
|
82
|
+
</x:scenario>
|
83
|
+
</x:description>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
3
|
+
|
4
|
+
<sch:ns uri="http://example.com/ns1" prefix="ex1"/>
|
5
|
+
<sch:ns uri="http://example.com/ns2" prefix="ex2"/>
|
6
|
+
|
7
|
+
<sch:pattern>
|
8
|
+
<sch:rule context="ex1:sec">
|
9
|
+
<sch:assert test="ex2:para" id="e001">sec should contain para</sch:assert>
|
10
|
+
</sch:rule>
|
11
|
+
<sch:rule context="ex2:para">
|
12
|
+
<sch:report test="ex2:para" id="e002">para should not contain another para</sch:report>
|
13
|
+
</sch:rule>
|
14
|
+
</sch:pattern>
|
15
|
+
|
16
|
+
</sch:schema>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" schematron="schematron-014.sch">
|
4
|
+
|
5
|
+
<x:scenario label="01">
|
6
|
+
<x:context href="schematron-014-01.xml"/>
|
7
|
+
<x:expect-assert id="e001" location="/root[1]/ex1:sec[1]"/>
|
8
|
+
<x:expect-report id="e002" location="/root[1]/ex1:sec[2]/ex2:para[2]"/>
|
9
|
+
</x:scenario>
|
10
|
+
|
11
|
+
</x:description>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt">
|
3
|
+
|
4
|
+
<sch:ns uri="http://example.com/ns1" prefix="ex1"/>
|
5
|
+
<sch:ns uri="http://example.com/ns2" prefix="ex2"/>
|
6
|
+
|
7
|
+
<sch:pattern>
|
8
|
+
<sch:rule context="ex1:sec">
|
9
|
+
<sch:assert test="ex2:para" id="e001">sec should contain para</sch:assert>
|
10
|
+
</sch:rule>
|
11
|
+
<sch:rule context="ex2:para">
|
12
|
+
<sch:report test="ex2:para" id="e002">para should not contain another para</sch:report>
|
13
|
+
</sch:rule>
|
14
|
+
</sch:pattern>
|
15
|
+
|
16
|
+
</sch:schema>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" schematron="schematron-015.sch">
|
4
|
+
|
5
|
+
<x:scenario label="01">
|
6
|
+
<x:context href="schematron-014-01.xml"/>
|
7
|
+
<x:expect-assert id="e001" location="/root[1]/ex1:sec[1]"/>
|
8
|
+
<x:expect-report id="e002" location="/root[1]/ex1:sec[2]/ex2:para[2]"/>
|
9
|
+
</x:scenario>
|
10
|
+
|
11
|
+
</x:description>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
3
|
+
|
4
|
+
<sch:pattern>
|
5
|
+
<sch:rule context="do-assert">
|
6
|
+
<sch:assert test="false()" id="t1"><sch:name/></sch:assert>
|
7
|
+
</sch:rule>
|
8
|
+
<sch:rule context="do-report">
|
9
|
+
<sch:report test="true()" id="t2"><sch:name/></sch:report>
|
10
|
+
</sch:rule>
|
11
|
+
<sch:rule context="do-assert-warn">
|
12
|
+
<sch:assert test="false()" id="t3" role="warn"><sch:name/></sch:assert>
|
13
|
+
</sch:rule>
|
14
|
+
<sch:rule context="do-report-warn">
|
15
|
+
<sch:report test="true()" id="t4" role="warn"><sch:name/></sch:report>
|
16
|
+
</sch:rule>
|
17
|
+
</sch:pattern>
|
18
|
+
|
19
|
+
</sch:schema>
|
@@ -0,0 +1,171 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" schematron="schematron-016.sch">
|
4
|
+
|
5
|
+
<x:scenario label="count">
|
6
|
+
<x:scenario label="0">
|
7
|
+
<x:scenario label="assert">
|
8
|
+
<x:context>
|
9
|
+
<root/>
|
10
|
+
</x:context>
|
11
|
+
<x:expect-assert count="0"/>
|
12
|
+
</x:scenario>
|
13
|
+
<x:scenario label="report">
|
14
|
+
<x:context>
|
15
|
+
<root/>
|
16
|
+
</x:context>
|
17
|
+
<x:expect-report count="0"/>
|
18
|
+
</x:scenario>
|
19
|
+
</x:scenario>
|
20
|
+
<x:scenario label="1">
|
21
|
+
<x:scenario label="assert">
|
22
|
+
<x:context>
|
23
|
+
<root>
|
24
|
+
<do-assert/>
|
25
|
+
</root>
|
26
|
+
</x:context>
|
27
|
+
<x:expect-assert count="1"/>
|
28
|
+
</x:scenario>
|
29
|
+
<x:scenario label="report">
|
30
|
+
<x:context>
|
31
|
+
<root>
|
32
|
+
<do-report/>
|
33
|
+
</root>
|
34
|
+
</x:context>
|
35
|
+
<x:expect-report count="1"/>
|
36
|
+
</x:scenario>
|
37
|
+
</x:scenario>
|
38
|
+
<x:scenario label="2">
|
39
|
+
<x:scenario label="assert">
|
40
|
+
<x:context>
|
41
|
+
<root>
|
42
|
+
<do-assert/>
|
43
|
+
<do-assert/>
|
44
|
+
</root>
|
45
|
+
</x:context>
|
46
|
+
<x:expect-assert count="2"/>
|
47
|
+
</x:scenario>
|
48
|
+
<x:scenario label="report">
|
49
|
+
<x:context>
|
50
|
+
<root>
|
51
|
+
<do-report/>
|
52
|
+
<do-report/>
|
53
|
+
</root>
|
54
|
+
</x:context>
|
55
|
+
<x:expect-report count="2"/>
|
56
|
+
</x:scenario>
|
57
|
+
</x:scenario>
|
58
|
+
<x:scenario label="15">
|
59
|
+
<x:scenario label="assert">
|
60
|
+
<x:context>
|
61
|
+
<root>
|
62
|
+
<do-assert/>
|
63
|
+
<do-assert/>
|
64
|
+
<do-assert/>
|
65
|
+
<do-assert/>
|
66
|
+
<do-assert/>
|
67
|
+
<do-assert/>
|
68
|
+
<do-assert/>
|
69
|
+
<do-assert/>
|
70
|
+
<do-assert/>
|
71
|
+
<do-assert/>
|
72
|
+
<do-assert/>
|
73
|
+
<do-assert/>
|
74
|
+
<do-assert/>
|
75
|
+
<do-assert/>
|
76
|
+
<do-assert/>
|
77
|
+
</root>
|
78
|
+
</x:context>
|
79
|
+
<x:expect-assert count="15"/>
|
80
|
+
</x:scenario>
|
81
|
+
<x:scenario label="report">
|
82
|
+
<x:context>
|
83
|
+
<root>
|
84
|
+
<do-report/>
|
85
|
+
<do-report/>
|
86
|
+
<do-report/>
|
87
|
+
<do-report/>
|
88
|
+
<do-report/>
|
89
|
+
<do-report/>
|
90
|
+
<do-report/>
|
91
|
+
<do-report/>
|
92
|
+
<do-report/>
|
93
|
+
<do-report/>
|
94
|
+
<do-report/>
|
95
|
+
<do-report/>
|
96
|
+
<do-report/>
|
97
|
+
<do-report/>
|
98
|
+
<do-report/>
|
99
|
+
</root>
|
100
|
+
</x:context>
|
101
|
+
<x:expect-report count="15"/>
|
102
|
+
</x:scenario>
|
103
|
+
</x:scenario>
|
104
|
+
</x:scenario>
|
105
|
+
|
106
|
+
<x:scenario label="check specific and count totals">
|
107
|
+
<x:scenario label="location and totals">
|
108
|
+
<x:scenario label="assert">
|
109
|
+
<x:context>
|
110
|
+
<root>
|
111
|
+
<do-assert/>
|
112
|
+
<do-report/>
|
113
|
+
<do-assert/>
|
114
|
+
</root>
|
115
|
+
</x:context>
|
116
|
+
<x:expect-assert location="/root/do-assert[2]"/>
|
117
|
+
<x:expect-assert count="2"/>
|
118
|
+
<x:expect-report count="1"/>
|
119
|
+
</x:scenario>
|
120
|
+
</x:scenario>
|
121
|
+
<x:scenario label="id and totals">
|
122
|
+
<x:scenario label="assert">
|
123
|
+
<x:context>
|
124
|
+
<root>
|
125
|
+
<do-assert/>
|
126
|
+
<do-report/>
|
127
|
+
<do-assert/>
|
128
|
+
<do-report/>
|
129
|
+
</root>
|
130
|
+
</x:context>
|
131
|
+
<x:expect-assert id="t1" count="2"/>
|
132
|
+
<x:expect-report id="t2" count="2"/>
|
133
|
+
</x:scenario>
|
134
|
+
</x:scenario>
|
135
|
+
<x:scenario label="role and totals">
|
136
|
+
<x:context>
|
137
|
+
<root>
|
138
|
+
<do-assert/>
|
139
|
+
<do-report/>
|
140
|
+
<do-assert-warn/>
|
141
|
+
<do-assert-warn/>
|
142
|
+
<do-report-warn/>
|
143
|
+
<do-report-warn/>
|
144
|
+
</root>
|
145
|
+
</x:context>
|
146
|
+
<x:expect-assert role="warn" count="2"/>
|
147
|
+
<x:expect-assert count="3"/>
|
148
|
+
<x:expect-report role="warn" count="2"/>
|
149
|
+
<x:expect-report count="3"/>
|
150
|
+
</x:scenario>
|
151
|
+
<x:scenario label="id, role, location, count">
|
152
|
+
<x:context>
|
153
|
+
<root>
|
154
|
+
<do-assert/>
|
155
|
+
<do-assert-warn/>
|
156
|
+
<do-assert-warn/>
|
157
|
+
<do-report/>
|
158
|
+
<do-report-warn/>
|
159
|
+
<do-report-warn/>
|
160
|
+
</root>
|
161
|
+
</x:context>
|
162
|
+
<x:expect-assert location="/root/do-assert-warn[1]" role="warn" id="t3" count="1" />
|
163
|
+
<x:expect-assert location="/root/do-assert-warn[2]" role="warn" id="t3" count="1" />
|
164
|
+
<x:expect-report location="/root/do-report-warn[1]" role="warn" id="t4" count="1"/>
|
165
|
+
<x:expect-report location="/root/do-report-warn[2]" role="warn" id="t4" count="1"/>
|
166
|
+
<x:expect-assert count="3"/>
|
167
|
+
<x:expect-report count="3"/>
|
168
|
+
</x:scenario>
|
169
|
+
</x:scenario>
|
170
|
+
|
171
|
+
</x:description>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
4
|
+
schematron="schematron/schematron-017.sch">
|
5
|
+
|
6
|
+
<x:scenario label="Schematron with dependency using relative path">
|
7
|
+
<x:scenario label="item in list">
|
8
|
+
<x:context>
|
9
|
+
<example>
|
10
|
+
<standard>XML</standard>
|
11
|
+
</example>
|
12
|
+
</x:context>
|
13
|
+
<x:expect-not-assert id="t1"/>
|
14
|
+
</x:scenario>
|
15
|
+
<x:scenario label="item not in list">
|
16
|
+
<x:context>
|
17
|
+
<example>
|
18
|
+
<standard>Markdown</standard>
|
19
|
+
</example>
|
20
|
+
</x:context>
|
21
|
+
<x:expect-assert id="t1"/>
|
22
|
+
</x:scenario>
|
23
|
+
</x:scenario>
|
24
|
+
|
25
|
+
|
26
|
+
</x:description>
|
@@ -0,0 +1,120 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
4
|
+
schematron="schematron/schematron-018.sch">
|
5
|
+
|
6
|
+
<x:scenario label="expect-rule">
|
7
|
+
<x:scenario label="no attributes">
|
8
|
+
<x:scenario label="fired-rule">
|
9
|
+
<x:context>
|
10
|
+
<para/>
|
11
|
+
</x:context>
|
12
|
+
<x:expect-rule/>
|
13
|
+
</x:scenario>
|
14
|
+
</x:scenario>
|
15
|
+
<x:scenario label="id">
|
16
|
+
<x:scenario label="r1">
|
17
|
+
<x:context>
|
18
|
+
<para/>
|
19
|
+
</x:context>
|
20
|
+
<x:expect-rule id="r1"/>
|
21
|
+
</x:scenario>
|
22
|
+
<x:scenario label="r2">
|
23
|
+
<x:context>
|
24
|
+
<section/>
|
25
|
+
</x:context>
|
26
|
+
<x:expect-rule id="r2"/>
|
27
|
+
</x:scenario>
|
28
|
+
</x:scenario>
|
29
|
+
<x:scenario label="context">
|
30
|
+
<x:scenario label="element">
|
31
|
+
<x:context>
|
32
|
+
<para/>
|
33
|
+
</x:context>
|
34
|
+
<x:expect-rule context="para"/>
|
35
|
+
</x:scenario>
|
36
|
+
<x:scenario label="element with predicate">
|
37
|
+
<x:context>
|
38
|
+
<section>
|
39
|
+
<title/>
|
40
|
+
<para/>
|
41
|
+
<title/>
|
42
|
+
</section>
|
43
|
+
</x:context>
|
44
|
+
<x:expect-rule context="title[position() gt 1]"/>
|
45
|
+
</x:scenario>
|
46
|
+
</x:scenario>
|
47
|
+
<x:scenario label="count">
|
48
|
+
<x:scenario label="0">
|
49
|
+
<x:context>
|
50
|
+
<article/>
|
51
|
+
</x:context>
|
52
|
+
<x:expect-rule label="verify that a rule does not fire" count="0"/>
|
53
|
+
</x:scenario>
|
54
|
+
<x:scenario label="1">
|
55
|
+
<x:context>
|
56
|
+
<section/>
|
57
|
+
</x:context>
|
58
|
+
<x:expect-rule count="1"/>
|
59
|
+
</x:scenario>
|
60
|
+
<x:scenario label="2">
|
61
|
+
<x:context>
|
62
|
+
<article>
|
63
|
+
<section/>
|
64
|
+
<section/>
|
65
|
+
</article>
|
66
|
+
</x:context>
|
67
|
+
<x:expect-rule count="2"/>
|
68
|
+
</x:scenario>
|
69
|
+
</x:scenario>
|
70
|
+
<x:scenario label="id and context">
|
71
|
+
<x:context>
|
72
|
+
<article>
|
73
|
+
<title/>
|
74
|
+
</article>
|
75
|
+
</x:context>
|
76
|
+
<x:expect-rule context="title[position() eq 1]" id="r3"/>
|
77
|
+
</x:scenario>
|
78
|
+
<x:scenario label="id and count">
|
79
|
+
<x:context>
|
80
|
+
<article>
|
81
|
+
<para/>
|
82
|
+
<para/>
|
83
|
+
<para/>
|
84
|
+
</article>
|
85
|
+
</x:context>
|
86
|
+
<x:expect-rule id="r1" count="3"/>
|
87
|
+
</x:scenario>
|
88
|
+
<x:scenario label="context and count">
|
89
|
+
<x:context>
|
90
|
+
<article>
|
91
|
+
<para/>
|
92
|
+
<para/>
|
93
|
+
<para/>
|
94
|
+
<para/>
|
95
|
+
</article>
|
96
|
+
</x:context>
|
97
|
+
<x:expect-rule context="para" count="4"/>
|
98
|
+
</x:scenario>
|
99
|
+
<x:scenario label="id, context, and count">
|
100
|
+
<x:context>
|
101
|
+
<article>
|
102
|
+
<para/>
|
103
|
+
<para/>
|
104
|
+
<para/>
|
105
|
+
<para/>
|
106
|
+
<para/>
|
107
|
+
</article>
|
108
|
+
</x:context>
|
109
|
+
<x:expect-rule id="r1" context="para" count="5"/>
|
110
|
+
</x:scenario>
|
111
|
+
<x:scenario label="specific rules fire or do not fire">
|
112
|
+
<x:context>
|
113
|
+
<section/>
|
114
|
+
</x:context>
|
115
|
+
<x:expect-rule label="verify that a specific rule does not fire" id="r1" count="0"/>
|
116
|
+
<x:expect-rule label="verify that a specific rule does fire" id="r2" count="1"/>
|
117
|
+
</x:scenario>
|
118
|
+
</x:scenario>
|
119
|
+
|
120
|
+
</x:description>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
4
|
+
schematron="schematron/schematron-019.sch">
|
5
|
+
|
6
|
+
<x:scenario label="XSLT Function in Schematrion">
|
7
|
+
<x:scenario label="XSLT function test">
|
8
|
+
<x:call function="e:add" xmlns:e="example">
|
9
|
+
<x:param name="a" select="5" as="xs:integer"/>
|
10
|
+
<x:param name="b" select="2" as="xs:integer"/>
|
11
|
+
</x:call>
|
12
|
+
<x:expect label="add 5 + 2" select="xs:integer(7)"/>
|
13
|
+
</x:scenario>
|
14
|
+
</x:scenario>
|
15
|
+
|
16
|
+
</x:description>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
4
|
+
schematron="schematron/schematron-020.sch">
|
5
|
+
|
6
|
+
<x:scenario label="match id attribute">
|
7
|
+
<x:context>
|
8
|
+
<para/>
|
9
|
+
</x:context>
|
10
|
+
|
11
|
+
<x:scenario label="in schema">
|
12
|
+
<x:scenario label="on assertion">
|
13
|
+
<x:expect-assert id="assert1"/>
|
14
|
+
</x:scenario>
|
15
|
+
<x:scenario label="on rule">
|
16
|
+
<x:expect-assert id="rule2"/>
|
17
|
+
</x:scenario>
|
18
|
+
<x:scenario label="on pattern">
|
19
|
+
<x:expect-assert id="pattern3"/>
|
20
|
+
</x:scenario>
|
21
|
+
</x:scenario>
|
22
|
+
|
23
|
+
<x:scenario label="in imported pattern">
|
24
|
+
<x:scenario label="on assertion">
|
25
|
+
<x:expect-assert id="include1-assert1"/>
|
26
|
+
</x:scenario>
|
27
|
+
<x:scenario label="on rule">
|
28
|
+
<x:expect-assert id="include1-rule2"/>
|
29
|
+
</x:scenario>
|
30
|
+
<x:scenario label="on pattern">
|
31
|
+
<x:expect-assert id="include1-pattern3"/>
|
32
|
+
</x:scenario>
|
33
|
+
</x:scenario>
|
34
|
+
|
35
|
+
<x:scenario label="in imported rule">
|
36
|
+
<x:scenario label="on assertion">
|
37
|
+
<x:expect-assert id="include1-assert4"/>
|
38
|
+
</x:scenario>
|
39
|
+
<x:scenario label="on rule">
|
40
|
+
<x:expect-assert id="include1-rule5"/>
|
41
|
+
</x:scenario>
|
42
|
+
</x:scenario>
|
43
|
+
|
44
|
+
<x:scenario label="in imported assertion">
|
45
|
+
<x:scenario label="on assertion">
|
46
|
+
<x:expect-assert id="include1-assert6"/>
|
47
|
+
</x:scenario>
|
48
|
+
</x:scenario>
|
49
|
+
|
50
|
+
</x:scenario>
|
51
|
+
|
52
|
+
|
53
|
+
</x:description>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
4
|
+
schematron="schematron/schematron-021.sch">
|
5
|
+
|
6
|
+
<x:scenario label="abstract pattern">
|
7
|
+
<x:scenario label="implementation 1">
|
8
|
+
<x:context>
|
9
|
+
<div/>
|
10
|
+
</x:context>
|
11
|
+
<x:expect-assert id="rule1"/>
|
12
|
+
</x:scenario>
|
13
|
+
<x:scenario label="implementation 2">
|
14
|
+
<x:context>
|
15
|
+
<para/>
|
16
|
+
</x:context>
|
17
|
+
<x:expect-assert id="rule1"/>
|
18
|
+
</x:scenario>
|
19
|
+
<x:scenario label="id on pattern">
|
20
|
+
<x:context>
|
21
|
+
<figure/>
|
22
|
+
</x:context>
|
23
|
+
<x:expect-assert id="pattern5"/>
|
24
|
+
</x:scenario>
|
25
|
+
</x:scenario>
|
26
|
+
|
27
|
+
</x:description>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
4
|
+
schematron="schematron/schematron-022.sch">
|
5
|
+
|
6
|
+
<x:scenario label="abstract rule">
|
7
|
+
<x:context>
|
8
|
+
<body/>
|
9
|
+
</x:context>
|
10
|
+
<x:expect-assert id="assert1"/>
|
11
|
+
<x:expect-assert id="rule3"/>
|
12
|
+
<x:expect-assert id="assert3"/>
|
13
|
+
</x:scenario>
|
14
|
+
|
15
|
+
</x:description>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<?xml-model href="../../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
|
3
|
+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" schematron="schematron/schut-to-xspec-test.sch">
|
4
|
+
<x:param name="phase">P1</x:param>
|
5
|
+
<x:param name="selected" select="codepoints-to-string((80,49))"/>
|
6
|
+
<!--x:param name="escape1">AAA BBB CCC</x:param-->
|
7
|
+
<!--x:param name="escape2">a"b</x:param-->
|
8
|
+
<!--x:param name="escape3">a'b</x:param-->
|
9
|
+
<!--x:param name="escape4">A ' " B</x:param-->
|
10
|
+
<x:scenario label="Schematron phase/parameters are passed to Schematron compile"/>
|
11
|
+
<!--
|
12
|
+
With xspec.bat:
|
13
|
+
All of the above examples work properly with xspec.bat.
|
14
|
+
Have not been able to make them all work in xspec-bat.cmd test.
|
15
|
+
|
16
|
+
With xspec.sh:
|
17
|
+
With xspec.sh escaping spaces (escape1, escape4) is not working.
|
18
|
+
Have not been able to make them all work in xspec.bats test.
|
19
|
+
|
20
|
+
Tested manually by modifying iso_svrl_for_xslt2.xsl to add inside xsl:stylesheet:
|
21
|
+
|
22
|
+
<xsl:param name="selected"/>
|
23
|
+
<xsl:param name="escape1"/>
|
24
|
+
<xsl:param name="escape2"/>
|
25
|
+
<xsl:param name="escape3"/>
|
26
|
+
<xsl:param name="escape4"/>
|
27
|
+
|
28
|
+
And inside <xsl:template name="process-root">
|
29
|
+
|
30
|
+
<xsl:message>
|
31
|
+
Phase
|
32
|
+
<xsl:value-of select="$phase"/>
|
33
|
+
Selected
|
34
|
+
<xsl:value-of select="$selected"/>
|
35
|
+
Escape1
|
36
|
+
<xsl:value-of select="$escape1"/>
|
37
|
+
Escape2
|
38
|
+
<xsl:value-of select="$escape2"/>
|
39
|
+
Escape3
|
40
|
+
<xsl:value-of select="$escape3"/>
|
41
|
+
Escape4
|
42
|
+
<xsl:value-of select="$escape4"/>
|
43
|
+
</xsl:message>
|
44
|
+
|
45
|
+
Then running:
|
46
|
+
bin\xspec.bat -s test\schematron\param-001.xspec
|
47
|
+
bin\xspec.sh -s test\schematron\param-001.xspec
|
48
|
+
|
49
|
+
-->
|
50
|
+
</x:description>
|