diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0484573f..77b774e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,7 +44,7 @@ jobs: - name: Run tests run: | ./xp3.sh testing/HARDFAIL-XPROC3-HOUSE-RULES.xpl - ./xp3.sh testing/BATCH-XSPEC-JUNIT.xpl + ./xp3.sh testing/RUN_XSPEC-JUNIT_BATCH.xpl id: exec_tests - name: Upload test results if: always() diff --git a/smoketest/SMOKETEST-SCHEMATRON.xpl b/smoketest/SMOKETEST-SCHEMATRON.xpl index 9ec19e52..a0cf3da1 100644 --- a/smoketest/SMOKETEST-SCHEMATRON.xpl +++ b/smoketest/SMOKETEST-SCHEMATRON.xpl @@ -9,7 +9,7 @@ see https://spec.xproc.org/master/head/validation/#c.validate-with-schematron --> - + Schematron runs under XProc 3.0. diff --git a/smoketest/SMOKETEST-XSLT.xpl b/smoketest/SMOKETEST-XSLT.xpl index a3882004..cfe32d31 100644 --- a/smoketest/SMOKETEST-XSLT.xpl +++ b/smoketest/SMOKETEST-XSLT.xpl @@ -12,7 +12,7 @@ - + diff --git a/smoketest/SMOKETEST-XSPEC.xpl b/smoketest/SMOKETEST-XSPEC.xpl index 0132d962..cf0e47b8 100644 --- a/smoketest/SMOKETEST-XSPEC.xpl +++ b/smoketest/SMOKETEST-XSPEC.xpl @@ -6,7 +6,7 @@ - + diff --git a/smoketest/congratulations-xslt.xspec b/smoketest/src/congratulations-xslt.xspec similarity index 100% rename from smoketest/congratulations-xslt.xspec rename to smoketest/src/congratulations-xslt.xspec diff --git a/smoketest/congratulations.xsl b/smoketest/src/congratulations.xsl similarity index 100% rename from smoketest/congratulations.xsl rename to smoketest/src/congratulations.xsl diff --git a/smoketest/doing-well-schematron.xspec b/smoketest/src/doing-well-schematron.xspec similarity index 100% rename from smoketest/doing-well-schematron.xspec rename to smoketest/src/doing-well-schematron.xspec diff --git a/smoketest/doing-well.sch b/smoketest/src/doing-well.sch similarity index 100% rename from smoketest/doing-well.sch rename to smoketest/src/doing-well.sch diff --git a/smoketest/src/shout-function.xqm b/smoketest/src/shout-function.xqm new file mode 100644 index 00000000..9a8bfe71 --- /dev/null +++ b/smoketest/src/shout-function.xqm @@ -0,0 +1,6 @@ +module namespace ox = "http://csrc.nist.gov/ns/oscal-xproc3"; + +(: Simple function providing string manipulation :) +declare function ox:SHOUT ($s as xs:string?) as xs:string? { upper-case($s) || '!!!' }; + +(: ox:SHOUT('Hey world') :) \ No newline at end of file diff --git a/smoketest/src/shout-xquery.xspec b/smoketest/src/shout-xquery.xspec new file mode 100644 index 00000000..dd265176 --- /dev/null +++ b/smoketest/src/shout-xquery.xspec @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + diff --git a/testing/BATCH-SCH-XSPEC.xpl b/testing/BATCH-SCH-XSPEC.xpl deleted file mode 100644 index 7f85cb11..00000000 --- a/testing/BATCH-SCH-XSPEC.xpl +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/testing/FILESET_XPROC3_HOUSE-RULES.xpl b/testing/FILESET_XPROC3_HOUSE-RULES.xpl index e9ebd904..a3dc8bc1 100644 --- a/testing/FILESET_XPROC3_HOUSE-RULES.xpl +++ b/testing/FILESET_XPROC3_HOUSE-RULES.xpl @@ -13,14 +13,13 @@ - - - - + + + - + diff --git a/testing/FILESET_XSLT-XSPEC.xpl b/testing/FILESET_XSPEC.xpl similarity index 66% rename from testing/FILESET_XSLT-XSPEC.xpl rename to testing/FILESET_XSPEC.xpl index 5e4fcfd3..1094aa88 100644 --- a/testing/FILESET_XSLT-XSPEC.xpl +++ b/testing/FILESET_XSPEC.xpl @@ -2,8 +2,8 @@ + type="ox:FILESET_XSPEC" + name="FILESET_XSPEC"> @@ -12,7 +12,9 @@ - + + + diff --git a/testing/BATCH-XPROC3-HOUSE-RULES.xpl b/testing/RUN_XPROC3-HOUSE-RULES_BATCH.xpl similarity index 84% rename from testing/BATCH-XPROC3-HOUSE-RULES.xpl rename to testing/RUN_XPROC3-HOUSE-RULES_BATCH.xpl index 73a306c5..ce0c136a 100644 --- a/testing/BATCH-XPROC3-HOUSE-RULES.xpl +++ b/testing/RUN_XPROC3-HOUSE-RULES_BATCH.xpl @@ -2,8 +2,8 @@ - + @@ -41,11 +41,11 @@ - + - + diff --git a/testing/BATCH-XSPEC-JUNIT.xpl b/testing/RUN_XSPEC-JUNIT_BATCH.xpl similarity index 78% rename from testing/BATCH-XSPEC-JUNIT.xpl rename to testing/RUN_XSPEC-JUNIT_BATCH.xpl index b7d183db..dff4e79e 100644 --- a/testing/BATCH-XSPEC-JUNIT.xpl +++ b/testing/RUN_XSPEC-JUNIT_BATCH.xpl @@ -2,12 +2,12 @@ + type="ox:RUN_XSPEC-JUNIT_BATCH" + name="RUN_XSPEC-JUNIT_BATCH"> - + @@ -15,7 +15,7 @@ - + @@ -25,9 +25,9 @@ - + - + diff --git a/testing/BATCH-XSLT-XSPEC.xpl b/testing/RUN_XSPEC_BATCH.xpl similarity index 77% rename from testing/BATCH-XSLT-XSPEC.xpl rename to testing/RUN_XSPEC_BATCH.xpl index da74a49b..14707834 100644 --- a/testing/BATCH-XSLT-XSPEC.xpl +++ b/testing/RUN_XSPEC_BATCH.xpl @@ -2,13 +2,13 @@ - + @@ -16,7 +16,7 @@ - + @@ -28,10 +28,10 @@ - + - + diff --git a/testing/xproc3-house-rules.sch b/testing/xproc3-house-rules.sch index 944e6963..1af1059c 100644 --- a/testing/xproc3-house-rules.sch +++ b/testing/xproc3-house-rules.sch @@ -102,9 +102,9 @@ - Unexpected declared type for the file named + Unexpected declared type for the file named XProc step @type is not given in namespace 'http://csrc.nist.gov/ns/oscal-xproc3' - XProc step @name does not match the file name '' + XProc step @name does not match the file name '' diff --git a/xspec/xspec-execute.xpl b/xspec/xspec-execute.xpl index ca094f8c..41dfd656 100644 --- a/xspec/xspec-execute.xpl +++ b/xspec/xspec-execute.xpl @@ -22,20 +22,18 @@ - - - + - + - + @@ -44,31 +42,68 @@ - + + - + - - - - - - - - + + + - - + + - + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + - + @@ -78,8 +113,8 @@ - - + + @@ -133,24 +168,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + - -