ISO SCHEMATRON 2010
XSLT implementation by Rick Jelliffe with assistance from members of Schematron-love-in maillist.
2010-04-21
Two distributions are available. One is for XSLT1 engines.
The other is for XSLT2 engines, such as SAXON 9.
This version of Schematron splits the process into a pipeline of several different XSLT stages.
1) First, preprocess your Schematron schema with iso_dsdl_include.xsl.
This is a macro processor to assemble the schema from various parts.
If your schema is not in separate parts, you can skip this stage.
This stage also generates error messages for some common XPath syntax problems.
2) Second, preprocess the output from stage 1 with iso_abstract_expand.xsl.
This is a macro processor to convert abstract patterns to real patterns.
If your schema does not use abstract patterns, you can skip this
stage.
3) Third, compile the Schematron schema into an XSLT script.
This will typically use iso_svrl_for_xslt1.xsl or iso_svrl_for_xslt2.xsl
(which in turn invoke iso_schematron_skeleton_for_xslt1.xsl or iso_schematron_skeleton_for_saxon.xsl)
However, other "meta-stylesheets" are also in common use; the principle of operation is the same.
If your schema uses Schematron phases, supply these as command line/invocation parameters
to this process.
4) Fourth, run the script generated by stage 3 against the document being validated.
If you are using the SVRL script, then the output of validation will be an XML document.
If your schema uses Schematron parameters, supply these as command line/invocation parameters
to this process.
The XSLT2 distribution also features several next generation features,
such as validating multiple documents. See the source code for details.
Schematron assertions can be written in any language, of course; the file
sch-messages-en.xhtml contains the diagnostics messages from the XSLT2 skeleton
in English, and this can be used as template to localize the skeleton's
error messages. Note that typically programming errors in Schematron are XPath
errors, which requires localized messages from the XSLT engine.
ANT
---
To give an example of how to process a document, here is a sample ANT task.
<target name="schematron-compile-test" >
<!-- expand inclusions -->
<xslt basedir="test/schematron"
style="iso_dsdl_include.xsl" in="test.sch" out="test1.sch">
<classpath>
<pathelement location="${lib.dir}/saxon9.jar"/>
</classpath>
</xslt>
<!-- expand abstract patterns -->
<xslt basedir="test/schematron"
style="iso_abstract_expand.xsl" in="test1.sch" out="test2.sch">
<classpath>
<pathelement location="${lib.dir}/saxon9.jar"/>
</classpath>
</xslt>
<!-- compile it -->
<xslt basedir="test/schematron"
style="iso_svrl_for_xslt2.xsl" in="test2.sch" out="test.xsl">
<classpath>
<pathelement location="${lib.dir}/saxon9.jar"/>
</classpath>
</xslt>
<!-- validate -->
<xslt basedir="test/schematron"
style="test.xsl" in="instance.xml" out="instance.svrlt">
<classpath>
<pathelement location="${lib.dir}/saxon9.jar"/>
</classpath>
</xslt>
</target>
没有合适的资源?快使用搜索试试~ 我知道了~
性能自动化统计工具-流量
共2000个文件
py:2322个
pyc:2221个
h:87个
需积分: 9 0 下载量 87 浏览量
2022-09-01
13:59:44
上传
评论
收藏 142.54MB ZIP 举报
温馨提示
性能自动化统计工具-流量
资源详情
资源评论
资源推荐
收起资源包目录
性能自动化统计工具-流量 (2000个子文件)
~$变2G型号设备适配性能、稳定性测试报告.docx 162B
~$性能测试报告.docx 162B
~$变2G型号设备适配性能、稳定性测试报告.docx 162B
性能测试报告.docx 2.07MB
性能测试报告.docx 2.07MB
demo.docx 579KB
超聚变2G型号设备适配性能、稳定性测试报告.docx 69KB
超聚变2G型号设备适配性能、稳定性测试报告.docx 69KB
default.docx 37KB
zlib.h 94KB
xsltInternals.h 56KB
parser.h 39KB
tree.h 37KB
xmlerror.h 36KB
schemasInternals.h 26KB
xmlwriter.h 21KB
xpathInternals.h 19KB
_embedding.h 18KB
lxml.etree_api.h 17KB
etree_api.h 17KB
parserInternals.h 17KB
xpath.h 16KB
zconf.h 16KB
etree_defs.h 15KB
_cffi_include.h 15KB
globals.h 14KB
valid.h 13KB
xmlreader.h 12KB
xmlIO.h 10KB
xmlunicode.h 10KB
HTMLparser.h 9KB
lxml.etree.h 9KB
etree.h 8KB
xmlversion.h 8KB
encoding.h 8KB
xsltutils.h 8KB
trio.h 7KB
xmlschemas.h 7KB
extensions.h 7KB
triodef.h 7KB
hash.h 6KB
transform.h 6KB
parse_c_type.h 6KB
relaxng.h 6KB
xmlmemory.h 6KB
xmlstring.h 5KB
xmlregexp.h 5KB
chvalid.h 5KB
debugXML.h 5KB
xlink.h 5KB
SAX2.h 5KB
catalog.h 5KB
xmlschemastypes.h 5KB
entities.h 5KB
schematron.h 4KB
SAX.h 4KB
_cffi_errors.h 4KB
xmlautomata.h 4KB
xsltconfig.h 4KB
nanoftp.h 4KB
HTMLtree.h 4KB
xsltexports.h 3KB
exsltexports.h 3KB
xpointer.h 3KB
list.h 3KB
variables.h 3KB
DOCBparser.h 3KB
c14n.h 3KB
exslt.h 3KB
xinclude.h 3KB
win32config.h 3KB
documents.h 3KB
uri.h 3KB
security.h 3KB
pattern.h 3KB
xmlsave.h 2KB
templates.h 2KB
numbersInternals.h 2KB
nanohttp.h 2KB
functions.h 2KB
xslt.h 2KB
threads.h 2KB
imports.h 2KB
dict.h 2KB
namespaces.h 2KB
extra.h 2KB
xsltlocale.h 2KB
xmlexports.h 1KB
exsltconfig.h 1KB
xmlmodule.h 1KB
keys.h 1KB
attributes.h 930B
preproc.h 892B
libxslt.h 861B
libexslt.h 675B
lxml-version.h 74B
xref-run_main.html 1.1MB
192.168.12.175_cpu_mem_monitor20220829093644.html 1.05MB
192.168.13.72_cpu_mem_monitor20220825024401.html 825KB
192.168.12.172_cpu_mem_monitor20220827173752.html 576KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
山顶一松柏
- 粉丝: 14
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0