Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
intentionally allow globbing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Stern committed Nov 12, 2020
1 parent 2ae6aec commit 1ab3e8d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/validations/bin/validate_with_schematron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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

0 comments on commit 1ab3e8d

Please sign in to comment.