Skip to content

Commit 9546175

Browse files
committed
Fix rel path from XSLT transform source issue, fix #1603. (#1604)
1 parent a5cfabd commit 9546175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/ci-cd/validate-content.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ if [ -z "${SCRATCH_DIR+x}" ]; then
108108
fi
109109
fi
110110

111-
profile_schematron="oscal/src/utils/schematron/oscal-profile.sch"
111+
profile_schematron="${OSCAL_DIR}/src/utils/schematron/oscal-profile.sch"
112112
compiled_profile_schematron="${SCRATCH_DIR}/oscal-profile.xsl"
113113
build_schematron "${profile_schematron}" "${compiled_profile_schematron}"
114114

@@ -154,7 +154,7 @@ while IFS="|" read path format model converttoformats || [ -n "$path" ]; do
154154
echo -e "${P_INFO}Validating profile with Schematron for project's requirements and recommendations.${P_INFO}${P_END}"
155155
target_file=$(basename -- "${file_relative}")
156156
svrl_result="/tmp/${target_file}.svrl"
157-
result=$(validate_with_schematron "${SCRATCH_DIR}/oscal-profile.xsl" "${file_relative}" "$svrl_result" 2>&1)
157+
result=$(validate_with_schematron "${SCRATCH_DIR}/oscal-profile.xsl" "${file}" "$svrl_result" 2>&1)
158158
cmd_exitcode=$?
159159
if [ $cmd_exitcode -ne 0 ]; then
160160
echo -e "${P_ERROR}Profile validation execution for '${P_END}${file_relative}${P_ERROR}' with Schematron '${P_END}${profile_schematron}${P_ERROR}' did not complete.${P_END}"

0 commit comments

Comments
 (0)