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>
没有合适的资源?快使用搜索试试~ 我知道了~
解方程应用程序-Python编写
共2000个文件
pyi:1788个
msg:143个
pyd:141个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 66 浏览量
2022-06-22
12:00:30
上传
评论
收藏 60.47MB RAR 举报
温馨提示
解方程的一个Python编写的小型计算器。这里是打包后的应用程序。想要源代码的可以查看我其他的资源。 1)本计算器支持以下功能。 1-1 普通方程。例:3x+100=103(直接输入即可获得解,打在界面外的黑色执行框中) 1-2 N元N次方程。 例1: x+y=3 x-y=1 (不同方程用空格分隔) 例2: x^2(表示x的平方)+y=9 x^2-y=1 1-3 解比例。 1:2=x:1 2)符号问题 乘号:×,*,省略皆可(但不要用字母x代替) 除号:/,÷,:,皆可。 加号:+ 减号:- 开方:^或**
资源推荐
资源详情
资源评论
收起资源包目录
解方程应用程序-Python编写 (2000个子文件)
.load-order-pyzmq-22.3.0 73B
Abidjan 141B
Accra 1KB
Acre 189B
ACT 185B
Adak 8KB
Addis_Ababa 184B
Adelaide 8KB
Aden 166B
Helvetica-Oblique.afm 76KB
Helvetica.afm 76KB
Helvetica-BoldOblique.afm 71KB
Helvetica-Bold.afm 70KB
Times-Italic.afm 67KB
Times-Bold.afm 65KB
Times-Roman.afm 61KB
Times-BoldItalic.afm 61KB
putr8a.afm 23KB
putbi8a.afm 22KB
putri8a.afm 22KB
putb8a.afm 22KB
ptmbi8a.afm 18KB
ptmri8a.afm 18KB
ptmb8a.afm 18KB
ptmr8a.afm 18KB
phvro8a.afm 18KB
phvro8an.afm 18KB
phvr8a.afm 18KB
phvr8an.afm 18KB
pncbi8a.afm 18KB
pagko8a.afm 17KB
pagdo8a.afm 17KB
pagk8a.afm 17KB
phvbo8a.afm 17KB
phvbo8an.afm 17KB
pagd8a.afm 17KB
phvb8a.afm 17KB
phvb8an.afm 17KB
pncri8a.afm 17KB
pncr8a.afm 17KB
pzcmi8a.afm 16KB
pncb8a.afm 16KB
pplbi8a.afm 16KB
pplr8a.afm 16KB
phvlo8a.afm 16KB
pplri8a.afm 16KB
pplb8a.afm 16KB
phvl8a.afm 16KB
pcrro8a.afm 15KB
Courier-Oblique.afm 15KB
pcrbo8a.afm 15KB
Courier-BoldOblique.afm 15KB
pcrb8a.afm 15KB
pbkdi8a.afm 15KB
pcrr8a.afm 15KB
Courier.afm 15KB
Courier-Bold.afm 15KB
pbkli8a.afm 15KB
pbkd8a.afm 15KB
pbkl8a.afm 15KB
cmex10.afm 12KB
cmmi10.afm 10KB
cmr10.afm 10KB
Symbol.afm 10KB
psyr.afm 10KB
ZapfDingbats.afm 10KB
pzdr.afm 9KB
cmsy10.afm 8KB
cmtt10.afm 7KB
Alaska 184B
Aleutian 171B
Algiers 1KB
Almaty 2KB
Amman 7KB
Amsterdam 9KB
Anadyr 2KB
Anchorage 8KB
Andorra 7KB
Anguilla 203B
Antananarivo 185B
Antigua 202B
LICENSE.APACHE 11KB
Apia 5KB
Aqtau 2KB
Aqtobe 2KB
Araguaina 2KB
Arizona 179B
Aruba 182B
Ashgabat 847B
Ashkhabad 177B
Asmara 179B
Asmera 179B
AST4 196B
AST4ADT 187B
Astrakhan 2KB
Asuncion 8KB
Athens 8KB
Atikokan 332B
Atka 172B
Atlantic 184B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
Unconquerablep
- 粉丝: 81
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功