有很多关于 Schematront 的资源...但是我找不到任何相关内容或有关如何根据 Schematront .sch 文件验证 xml 的示例。
Anyone?
我已经发现 1 或 2 个非常旧的类会返回错误...所以如果有人知道如何做到这一点,请提供帮助。
我使用“ANT”选项..
构建.xml
<project name="myName" default="all" basedir=".">
<taskdef name="schematron"
classname="com.schematron.ant.SchematronTask"
classpath="lib/ant-schematron-2010-04-14.jar;lib/saxon9he.jar"/>
<target name="all" description="test it">
<schematron schema="sch/test.sch" failonerror="false" debugMode="true">
<fileset dir="./xml" includes="*.xml"/>
</schematron>
</target>
</project>
debugMode=true 显示中间 XSLT 文件
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)