simple-xspec-wrapper 0.1.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,32 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
|
3
|
+
<sch:pattern id="pattern1">
|
|
4
|
+
<sch:rule context="para" id="rule1">
|
|
5
|
+
<sch:assert test="false()" id="assert1"/>
|
|
6
|
+
</sch:rule>
|
|
7
|
+
</sch:pattern>
|
|
8
|
+
<sch:pattern id="pattern2">
|
|
9
|
+
<sch:rule context="para" id="rule2">
|
|
10
|
+
<sch:assert test="false()"/>
|
|
11
|
+
</sch:rule>
|
|
12
|
+
</sch:pattern>
|
|
13
|
+
<sch:pattern id="pattern3">
|
|
14
|
+
<sch:rule context="para">
|
|
15
|
+
<sch:assert test="false()"/>
|
|
16
|
+
</sch:rule>
|
|
17
|
+
</sch:pattern>
|
|
18
|
+
<sch:include href="schematron-020-01.sch#include1-pattern1"/>
|
|
19
|
+
<sch:include href="schematron-020-01.sch#include1-pattern2"/>
|
|
20
|
+
<sch:include href="schematron-020-01.sch#include1-pattern3"/>
|
|
21
|
+
<sch:pattern id="pattern4">
|
|
22
|
+
<sch:include href="schematron-020-01.sch#include1-rule4"/>
|
|
23
|
+
</sch:pattern>
|
|
24
|
+
<sch:pattern id="pattern5">
|
|
25
|
+
<sch:include href="schematron-020-01.sch#include1-rule5"/>
|
|
26
|
+
</sch:pattern>
|
|
27
|
+
<sch:pattern id="pattern6">
|
|
28
|
+
<sch:rule context="para">
|
|
29
|
+
<sch:include href="schematron-020-01.sch#include1-assert6"/>
|
|
30
|
+
</sch:rule>
|
|
31
|
+
</sch:pattern>
|
|
32
|
+
</sch:schema>
|
|
@@ -0,0 +1,28 @@
|
|
|
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 id="pattern1" abstract="true">
|
|
5
|
+
<sch:rule context="$element" id="rule1">
|
|
6
|
+
<sch:assert test="false()"/>
|
|
7
|
+
</sch:rule>
|
|
8
|
+
</sch:pattern>
|
|
9
|
+
|
|
10
|
+
<sch:pattern id="pattern2" is-a="pattern1">
|
|
11
|
+
<sch:param name="element" value="div"/>
|
|
12
|
+
</sch:pattern>
|
|
13
|
+
|
|
14
|
+
<sch:pattern id="pattern3" is-a="pattern1">
|
|
15
|
+
<sch:param name="element" value="para"/>
|
|
16
|
+
</sch:pattern>
|
|
17
|
+
|
|
18
|
+
<sch:pattern id="pattern4" abstract="true">
|
|
19
|
+
<sch:rule context="$element">
|
|
20
|
+
<sch:assert test="false()"/>
|
|
21
|
+
</sch:rule>
|
|
22
|
+
</sch:pattern>
|
|
23
|
+
|
|
24
|
+
<sch:pattern id="pattern5" is-a="pattern4">
|
|
25
|
+
<sch:param name="element" value="figure"/>
|
|
26
|
+
</sch:pattern>
|
|
27
|
+
|
|
28
|
+
</sch:schema>
|
|
@@ -0,0 +1,18 @@
|
|
|
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 id="pattern1">
|
|
5
|
+
<sch:rule id="rule1" abstract="true">
|
|
6
|
+
<sch:assert test="false()" id="assert1"/>
|
|
7
|
+
</sch:rule>
|
|
8
|
+
<sch:rule id="rule2" abstract="true">
|
|
9
|
+
<sch:assert test="false()"/>
|
|
10
|
+
</sch:rule>
|
|
11
|
+
<sch:rule id="rule3" context="body">
|
|
12
|
+
<sch:extends rule="rule1"/>
|
|
13
|
+
<sch:extends rule="rule2"/>
|
|
14
|
+
<sch:assert test="false()" id="assert3"/>
|
|
15
|
+
</sch:rule>
|
|
16
|
+
</sch:pattern>
|
|
17
|
+
|
|
18
|
+
</sch:schema>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
|
|
3
|
+
<xsl:template match="/">
|
|
4
|
+
<xsl:element name="test">
|
|
5
|
+
<xsl:message>Schematron XSLT compile</xsl:message>
|
|
6
|
+
</xsl:element>
|
|
7
|
+
</xsl:template>
|
|
8
|
+
</xsl:stylesheet>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
|
|
3
|
+
<xsl:template match="/">
|
|
4
|
+
<xsl:element name="test">
|
|
5
|
+
<xsl:message>Schematron XSLT expand</xsl:message>
|
|
6
|
+
</xsl:element>
|
|
7
|
+
</xsl:template>
|
|
8
|
+
</xsl:stylesheet>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
|
|
3
|
+
<xsl:template match="/">
|
|
4
|
+
<xsl:element name="test">
|
|
5
|
+
<xsl:message>Schematron XSLT include</xsl:message>
|
|
6
|
+
</xsl:element>
|
|
7
|
+
</xsl:template>
|
|
8
|
+
</xsl:stylesheet>
|
|
@@ -0,0 +1,5 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:scenario label="Schematron test scenario"/>
|
|
5
|
+
</x:description>
|
|
@@ -0,0 +1,7 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<x:scenario label="Schematron test scenario"/>
|
|
7
|
+
</x:description>
|
|
@@ -0,0 +1,5 @@
|
|
|
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-002.sch">
|
|
4
|
+
<x:scenario label="Schematron test scenario"/>
|
|
5
|
+
</x:description>
|
|
@@ -0,0 +1,7 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-002.sch""/>
|
|
6
|
+
<x:scenario label="Schematron test scenario"/>
|
|
7
|
+
</x:description>
|
|
@@ -0,0 +1,7 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:scenario label="Schematron test scenario">
|
|
5
|
+
<x:scenario label="nested"></x:scenario>
|
|
6
|
+
</x:scenario>
|
|
7
|
+
</x:description>
|
|
@@ -0,0 +1,9 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<x:scenario label="Schematron test scenario">
|
|
7
|
+
<x:scenario label="nested"></x:scenario>
|
|
8
|
+
</x:scenario>
|
|
9
|
+
</x:description>
|
|
@@ -0,0 +1,20 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:scenario label="Schematron test scenario">
|
|
5
|
+
<x:scenario label="pending via attribute" pending="test"></x:scenario>
|
|
6
|
+
</x:scenario>
|
|
7
|
+
<x:pending>
|
|
8
|
+
<x:scenario label="pending via element"></x:scenario>
|
|
9
|
+
</x:pending>
|
|
10
|
+
<x:scenario label="pending nested scenario">
|
|
11
|
+
<x:pending>
|
|
12
|
+
<x:scenario label="nested"></x:scenario>
|
|
13
|
+
</x:pending>
|
|
14
|
+
</x:scenario>
|
|
15
|
+
<x:scenario label="pending assertions">
|
|
16
|
+
<x:pending>
|
|
17
|
+
<x:expect-assert/>
|
|
18
|
+
</x:pending>
|
|
19
|
+
</x:scenario>
|
|
20
|
+
</x:description>
|
|
@@ -0,0 +1,22 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<x:scenario label="Schematron test scenario">
|
|
7
|
+
<x:scenario label="pending via attribute" pending="test"></x:scenario>
|
|
8
|
+
</x:scenario>
|
|
9
|
+
<x:pending>
|
|
10
|
+
<x:scenario label="pending via element"></x:scenario>
|
|
11
|
+
</x:pending>
|
|
12
|
+
<x:scenario label="pending nested scenario">
|
|
13
|
+
<x:pending>
|
|
14
|
+
<x:scenario label="nested"></x:scenario>
|
|
15
|
+
</x:pending>
|
|
16
|
+
</x:scenario>
|
|
17
|
+
<x:scenario label="pending assertions">
|
|
18
|
+
<x:pending>
|
|
19
|
+
<x:expect label="assert" test="exists(svrl:schematron-output/svrl:failed-assert)"/>
|
|
20
|
+
</x:pending>
|
|
21
|
+
</x:scenario>
|
|
22
|
+
</x:description>
|
|
@@ -0,0 +1,6 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:scenario label="Schematron test scenario"/>
|
|
5
|
+
<x:scenario label="focused" focus="test"/>
|
|
6
|
+
</x:description>
|
|
@@ -0,0 +1,8 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<x:scenario label="Schematron test scenario"/>
|
|
7
|
+
<x:scenario label="focused" focus="test"/>
|
|
8
|
+
</x:description>
|
|
@@ -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="schut-to-xspec-test.sch">
|
|
4
|
+
<x:scenario label="s1" shared="yes">
|
|
5
|
+
<x:context href="schut-to-xspec-test.sch"/>
|
|
6
|
+
</x:scenario>
|
|
7
|
+
<x:scenario label="s2">
|
|
8
|
+
<x:like label="s1"/>
|
|
9
|
+
<x:expect-assert/>
|
|
10
|
+
</x:scenario>
|
|
11
|
+
</x:description>
|
|
@@ -0,0 +1,13 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<x:scenario label="s1" shared="yes">
|
|
7
|
+
<x:context href="schut-to-xspec-test.sch"/>
|
|
8
|
+
</x:scenario>
|
|
9
|
+
<x:scenario label="s2">
|
|
10
|
+
<x:like label="s1"/>
|
|
11
|
+
<x:expect label="assert" test="exists(svrl:schematron-output/svrl:failed-assert)"/>
|
|
12
|
+
</x:scenario>
|
|
13
|
+
</x:description>
|
|
@@ -0,0 +1,7 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:scenario label="Schematron test scenario">
|
|
5
|
+
<x:context href="schut-to-xspec-007.xml"/>
|
|
6
|
+
</x:scenario>
|
|
7
|
+
</x:description>
|
|
@@ -0,0 +1,9 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<x:scenario label="Schematron test scenario">
|
|
7
|
+
<x:context href="schut-to-xspec-007.xml"/>
|
|
8
|
+
</x:scenario>
|
|
9
|
+
</x:description>
|
|
@@ -0,0 +1,9 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:scenario label="Schematron test scenario">
|
|
5
|
+
<x:context>
|
|
6
|
+
<snippet/>
|
|
7
|
+
</x:context>
|
|
8
|
+
</x:scenario>
|
|
9
|
+
</x:description>
|
|
@@ -0,0 +1,9 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<x:scenario label="Schematron test scenario">
|
|
7
|
+
<x:context href="xspec/context-d1e6.xml"/>
|
|
8
|
+
</x:scenario>
|
|
9
|
+
</x:description>
|
|
@@ -0,0 +1,5 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:scenario label="B"/>
|
|
5
|
+
</x:description>
|
|
@@ -0,0 +1,6 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:import href="schut-to-xspec-009-import-in.xspec"/>
|
|
5
|
+
<x:scenario label="A"/>
|
|
6
|
+
</x:description>
|
|
@@ -0,0 +1,10 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<!--BEGIN IMPORT "schut-to-xspec-009-import-in.xspec"-->
|
|
7
|
+
<x:scenario label="B"/>
|
|
8
|
+
<!--END IMPORT "schut-to-xspec-009-import-in.xspec"-->
|
|
9
|
+
<x:scenario label="A"/>
|
|
10
|
+
</x:description>
|
|
@@ -0,0 +1,6 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:import href="schut-to-xspec-010-import.xspec"/>
|
|
5
|
+
<x:scenario label="A"/>
|
|
6
|
+
</x:description>
|
|
@@ -0,0 +1,8 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch""/>
|
|
6
|
+
<x:import href="schut-to-xspec-010-import.xspec"/>
|
|
7
|
+
<x:scenario label="A"/>
|
|
8
|
+
</x:description>
|
|
@@ -0,0 +1,6 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:param name="phase">P1</x:param>
|
|
5
|
+
<x:scenario label="Schematron test scenario"/>
|
|
6
|
+
</x:description>
|
|
@@ -0,0 +1,8 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch" phase: P1"/>
|
|
6
|
+
<x:param name="phase">P1</x:param>
|
|
7
|
+
<x:scenario label="Schematron test scenario"/>
|
|
8
|
+
</x:description>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><?xml-model href="../../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?><x:description xmlns:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec" stylesheet="schut-to-xspec-test.sch.xsl"><x:scenario label="Schematron: "schut-to-xspec-012.sch""/>
|
|
2
|
+
<x:scenario label="expect-valid">
|
|
3
|
+
<x:context href="schematron/schut-to-xspec-012-01.xml"/>
|
|
4
|
+
<x:expect label="valid" test="boolean(svrl:schematron-output[svrl:fired-rule]) and not(boolean((svrl:schematron-output/svrl:failed-assert union svrl:schematron-output/svrl:successful-report)[ not(@role) or @role = ('error','fatal')]))"/>
|
|
5
|
+
</x:scenario>
|
|
6
|
+
<x:scenario label="assertions">
|
|
7
|
+
<x:scenario label="without attributes">
|
|
8
|
+
<x:scenario label="not thrown">
|
|
9
|
+
<x:context href="schematron/schut-to-xspec-012-01.xml"/>
|
|
10
|
+
<x:expect label="not assert" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:failed-assert)"/>
|
|
11
|
+
<x:expect label="not report" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:successful-report)"/>
|
|
12
|
+
</x:scenario>
|
|
13
|
+
<x:scenario label="thrown">
|
|
14
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
15
|
+
<x:expect label="assert" test="exists(svrl:schematron-output/svrl:failed-assert)"/>
|
|
16
|
+
<x:expect label="report" test="exists(svrl:schematron-output/svrl:successful-report)"/>
|
|
17
|
+
</x:scenario>
|
|
18
|
+
</x:scenario>
|
|
19
|
+
<x:scenario label="with id">
|
|
20
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
21
|
+
<x:expect label="assert a1" test="exists(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'a1'])"/>
|
|
22
|
+
<x:expect label="not assert a2" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'a2'])"/>
|
|
23
|
+
<x:expect label="report r1" test="exists(svrl:schematron-output/svrl:successful-report[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'r1'])"/>
|
|
24
|
+
<x:expect label="not report r2" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:successful-report[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'r2'])"/>
|
|
25
|
+
</x:scenario>
|
|
26
|
+
<x:scenario label="with role">
|
|
27
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
28
|
+
<x:expect label="assert warn" test="exists(svrl:schematron-output/svrl:failed-assert[(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'warn'])"/>
|
|
29
|
+
<x:expect label="not assert fatal" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:failed-assert[(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'fatal'])"/>
|
|
30
|
+
<x:expect label="report warn" test="exists(svrl:schematron-output/svrl:successful-report[(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'warn'])"/>
|
|
31
|
+
<x:expect label="not report info" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:successful-report[(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'info'])"/>
|
|
32
|
+
</x:scenario>
|
|
33
|
+
<x:scenario label="with location">
|
|
34
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
35
|
+
<x:expect label="assert /article[1]/div[1]" test="exists(svrl:schematron-output/svrl:failed-assert[x:schematron-location-compare('/article[1]/div[1]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
36
|
+
<x:expect label="not assert /article[1]/div[2]" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:failed-assert[x:schematron-location-compare('/article[1]/div[2]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
37
|
+
<x:expect label="report /article[1]/div[3]" test="exists(svrl:schematron-output/svrl:successful-report[x:schematron-location-compare('/article[1]/div[3]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
38
|
+
<x:expect label="not report /article[1]/div[4]" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:successful-report[x:schematron-location-compare('/article[1]/div[4]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
39
|
+
</x:scenario>
|
|
40
|
+
<x:scenario label="with id, location">
|
|
41
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
42
|
+
<x:expect label="assert a1 /article[1]/div[1]" test="exists(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'a1'][x:schematron-location-compare('/article[1]/div[1]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
43
|
+
<x:expect label="not assert a2 /article[1]/div[2]" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'a2'][x:schematron-location-compare('/article[1]/div[2]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
44
|
+
<x:expect label="report r1 /article[1]/div[3]" test="exists(svrl:schematron-output/svrl:successful-report[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'r1'][x:schematron-location-compare('/article[1]/div[3]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
45
|
+
<x:expect label="not report r2 /article[1]/div[4]" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:successful-report[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'r2'][x:schematron-location-compare('/article[1]/div[4]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
46
|
+
</x:scenario>
|
|
47
|
+
<x:scenario label="with id, role, location">
|
|
48
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
49
|
+
<x:expect label="assert a1 warn /article[1]/div[1]" test="exists(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'a1'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'warn'][x:schematron-location-compare('/article[1]/div[1]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
50
|
+
<x:expect label="not assert a2 error /article[1]/div[2]" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'a2'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'error'][x:schematron-location-compare('/article[1]/div[2]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
51
|
+
<x:expect label="report r1 warn /article[1]/div[3]" test="exists(svrl:schematron-output/svrl:successful-report[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'r1'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'warn'][x:schematron-location-compare('/article[1]/div[3]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
52
|
+
<x:expect label="not report r2 info /article[1]/div[4]" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:successful-report[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'r2'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'info'][x:schematron-location-compare('/article[1]/div[4]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
53
|
+
</x:scenario>
|
|
54
|
+
</x:scenario>
|
|
55
|
+
<x:scenario label="inherrit from rule">
|
|
56
|
+
<x:scenario label="id and role from rule">
|
|
57
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
58
|
+
<x:expect label="assert ru1 error" test="exists(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'ru1'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'error'])"/>
|
|
59
|
+
</x:scenario>
|
|
60
|
+
<x:scenario label="id from rule and role from assertion">
|
|
61
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
62
|
+
<x:expect label="assert ru1 warn" test="exists(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'ru1'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'warn'])"/>
|
|
63
|
+
</x:scenario>
|
|
64
|
+
<x:scenario label="role from rule and id from assertion">
|
|
65
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
66
|
+
<x:expect label="assert ru2 error" test="exists(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'ru2'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'error'])"/>
|
|
67
|
+
</x:scenario>
|
|
68
|
+
<x:scenario label="match only current rule">
|
|
69
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
70
|
+
<x:expect label="not assert ru3" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'ru3'])"/>
|
|
71
|
+
<x:expect label="not assert ru3 warn" test="boolean(svrl:schematron-output[svrl:fired-rule]) and empty(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'ru3'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'warn'])"/>
|
|
72
|
+
<x:expect label="report ru3 warn /article[1]" test="exists(svrl:schematron-output/svrl:successful-report[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'ru3'][(@role, preceding-sibling::svrl:fired-rule[1]/@role, preceding-sibling::svrl:active-pattern[1]/@role)[1] = 'warn'][x:schematron-location-compare('/article[1]', @location, preceding-sibling::svrl:ns-prefix-in-attribute-values)])"/>
|
|
73
|
+
</x:scenario>
|
|
74
|
+
</x:scenario>
|
|
75
|
+
<x:scenario label="inherrit from pattern">
|
|
76
|
+
<x:scenario label="id from pattern">
|
|
77
|
+
<x:context href="schematron/schut-to-xspec-012-02.xml"/>
|
|
78
|
+
<x:expect label="assert pattern3" test="exists(svrl:schematron-output/svrl:failed-assert[(@id, preceding-sibling::svrl:fired-rule[1]/@id, preceding-sibling::svrl:active-pattern[1]/@id)[1] = 'pattern3'])"/>
|
|
79
|
+
</x:scenario>
|
|
80
|
+
</x:scenario>
|
|
81
|
+
</x:description>
|
|
@@ -0,0 +1,6 @@
|
|
|
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-test.sch">
|
|
4
|
+
<x:param name="phase" select="concat('P','1')"/>
|
|
5
|
+
<x:scenario label="Schematron test scenario"/>
|
|
6
|
+
</x:description>
|
|
@@ -0,0 +1,8 @@
|
|
|
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:svrl="http://purl.oclc.org/dsdl/svrl" xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
|
4
|
+
stylesheet="schut-to-xspec-test.sch.xsl">
|
|
5
|
+
<x:scenario label="Schematron: "schut-to-xspec-test.sch" phase: concat('P','1')"/>
|
|
6
|
+
<x:param name="phase" select="concat('P','1')"/>
|
|
7
|
+
<x:scenario label="Schematron test scenario"/>
|
|
8
|
+
</x:description>
|
|
@@ -0,0 +1,17 @@
|
|
|
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="article">
|
|
6
|
+
<sch:assert test="title" id="a001">
|
|
7
|
+
article should have a title
|
|
8
|
+
</sch:assert>
|
|
9
|
+
</sch:rule>
|
|
10
|
+
<sch:rule context="section">
|
|
11
|
+
<sch:assert test="title" id="a002">
|
|
12
|
+
section should have a title
|
|
13
|
+
</sch:assert>
|
|
14
|
+
</sch:rule>
|
|
15
|
+
</sch:pattern>
|
|
16
|
+
|
|
17
|
+
</sch:schema>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<article>
|
|
3
|
+
<title>Example</title>
|
|
4
|
+
<section>
|
|
5
|
+
<title>Introduction</title>
|
|
6
|
+
<p>Welcome to demo 3!</p>
|
|
7
|
+
</section>
|
|
8
|
+
<section>
|
|
9
|
+
<p>This is an example.</p>
|
|
10
|
+
</section>
|
|
11
|
+
<section>
|
|
12
|
+
<p>Scenario excpect's can specify a location in the context XML that an assert or report is expected to identify.</p>
|
|
13
|
+
</section>
|
|
14
|
+
</article>
|
|
@@ -0,0 +1,14 @@
|
|
|
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-01.sch">
|
|
4
|
+
<x:scenario label="schematron-01">
|
|
5
|
+
<x:context href="schematron-01.xml"/>
|
|
6
|
+
<x:scenario label="article should have a title">
|
|
7
|
+
<x:expect-not-assert id="a001"/>
|
|
8
|
+
</x:scenario>
|
|
9
|
+
<x:scenario label="section should have a title">
|
|
10
|
+
<x:expect-assert id="a002" location="/article[1]/section[2]"/>
|
|
11
|
+
<x:expect-assert id="a002" location="/article[1]/section[3]"/>
|
|
12
|
+
</x:scenario>
|
|
13
|
+
</x:scenario>
|
|
14
|
+
</x:description>
|