From 1ab3e8da59c2d5d067419242bf3ef6dfde4c0cf3 Mon Sep 17 00:00:00 2001 From: Mike Stern Date: Thu, 12 Nov 2020 12:48:10 -0600 Subject: [PATCH] intentionally allow globbing --- resources/validations/bin/validate_with_schematron.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/validations/bin/validate_with_schematron.sh b/resources/validations/bin/validate_with_schematron.sh index d634ef8cf..9c83cbb95 100755 --- a/resources/validations/bin/validate_with_schematron.sh +++ b/resources/validations/bin/validate_with_schematron.sh @@ -112,12 +112,12 @@ for qualifiedSchematronName in "${SCHEMA_LOCATION_DIR}"/*.sch; do schematronRoot=${schematronName%.*} # Use Saxon XSL transform to convert our Schematron to pure XSL 2.0 stylesheet - + # shellcheck disable=2086 java -cp "${SAXON_CP}" net.sf.saxon.Transform \ -o:target/"${schematronRoot}".xsl \ -s:"${qualifiedSchematronName}" \ lib/schematron/trunk/schematron/code/iso_svrl_for_xslt2.xsl \ - "$SAXON_OPTS" + $SAXON_OPTS echo "compiling: ${qualifiedSchematronName} to: target/${schematronRoot}.xsl" @@ -130,16 +130,18 @@ for qualifiedSchematronName in "${SCHEMA_LOCATION_DIR}"/*.sch; do echo "validating doc: ${DOC_TO_VALIDATE} with ${qualifiedSchematronName} output found in ${reportName}" + # shellcheck disable=2086 java -cp "${SAXON_CP}" net.sf.saxon.Transform \ -o:"${reportName}" \ -s:"${DOC_TO_VALIDATE}" \ target/"${schematronRoot}".xsl \ - "$SAXON_OPTS" + $SAXON_OPTS + # shellcheck disable=2086 java -cp "${SAXON_CP}" net.sf.saxon.Transform \ -o:"${htmlReportName}" \ -s:"${reportName}" \ lib/svrl2html.xsl \ - "$SAXON_OPTS" + $SAXON_OPTS done