Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(schematron): skip step 1 and/or step 2 if #none #1371

Merged
merged 12 commits into from
Mar 16, 2021

Conversation

AirQuick
Copy link
Member

@AirQuick AirQuick commented Mar 4, 2021

Closes #1369

With this change, setting #none as a Schematron implementation file path skips its corresponding INCLUDE or EXPAND step.

A typical use case would be pipeline-for-svrl.xsl of SchXslt:

C:\xspec\xspec>set "SCHEMATRON_XSLT_INCLUDE=#none"

C:\xspec\xspec>set "SCHEMATRON_XSLT_EXPAND=#none"

C:\xspec\xspec>set "SCHEMATRON_XSLT_COMPILE=https://github.com/schxslt/schxslt/raw/v1.6.2/core/src/main/resources/xslt/2.0/pipeline-for-svrl.xsl"

C:\xspec\xspec>bin\xspec.bat -s test\issue-396_schxslt.xspec
...
passed: 1 / pending: 0 / failed: 0 / total: 1
...

#none can be specified in these places:

  • SCHEMATRON_XSLT_INCLUDE and/or SCHEMATRON_XSLT_EXPAND environment variables (in case of xspec.bat and xspec.sh)
  • xspec.schematron.preprocessor.step1 and/or xspec.schematron.preprocessor.step2 properties (in case of Ant).

You can't skip COMPILE step.

@AirQuick AirQuick added this to the v2.1 milestone Mar 4, 2021
@AirQuick AirQuick changed the title feat(schematron): skip step 1 and step 2 if #none feat(schematron): skip step 1 and/or step 2 if #none Mar 4, 2021
# Conflicts:
#	src/schematron/schut-to-xslt.xsl
# Conflicts:
#	src/schematron/generate-step3-wrapper.xsl
#	test/generate-step3-wrapper_custom.xspec
#	test/generate-step3-wrapper_default.xspec
#	test/issue-396_schxslt.xspec
#	test/schematron/schxslt/base-uri.xsl
#	test/schematron/schxslt/compile-for-svrl.xsl
#	test/schematron/schxslt/expand.xsl
#	test/schematron/schxslt/include.xsl
#	test/win-bats/collection.xml
#	test/xspec.bats
@AirQuick AirQuick merged commit ad82d2c into xspec:master Mar 16, 2021
@AirQuick AirQuick deleted the skip-sch-step-1-2 branch March 16, 2021 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: allow SchXslt compilation parameters
1 participant