Schematron 스키마를 제공 할 수있는 Schematron 용 쉘 스크립트와 XML 문서를 발견하여 Schematron 규칙을 XML 문서에 적용했습니다. 를 들어,Schematron sh 스크립트가 작동하지 않습니다.
http://www.schematron.com/implementation.html
내가 여기 쉘 스크립트를 반복합니다 : 스크립트에 의해 사용
https://code.google.com/p/schematron/wiki/RunningSchematronWithGNOMExsltproc
다양한 XSL 파일을 여기에 스키마 트론 배포에서 다운로드 : 여기 스크립트가 발견 편의.
#!/bin/bash
echo Step1 ...
xsltproc iso_dsdl_include.xsl $1 > step1.xsl
echo Step2 ...
xsltproc iso_abstract_expand.xsl step1.xsl > step2.xsl
echo Step3 ...
xsltproc iso_svrl_for_xslt1.xsl step2.xsl > step3.xsl
echo Validation ...
xsltproc step3.xsl $2 > result.svrl
나는 다음과 같은 스크립트를 실행
run_schematron.sh의 docbook1.sch의 my_xml.xml
쉘 스크립트는 중간 파일, step1.xsl, step2.xsl 및 step3.xsl를 생성 . 나에게 XSL 스타일 시트처럼 보이는 아니라고
<?xml version="1.0"?>
@linkend on footnoteref must point to a footnote.
@linkend on synopfragmentref must point to a synopfragment.
: 그것은 다음과 같습니다 이후하지만, step2.xsl에서 레일 떨어져 이미입니다. 어떤 아이디어?
'xml'에 대한 태그를 추가하십시오. 당신은 모든 하위 팔로어 수 변종을 골랐어 요. 행운을 빕니다. – shellter