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>
没有合适的资源?快使用搜索试试~ 我知道了~
数字图像处理集成器GUI可视化界面(灰度值HSV,RGB,高斯低通高通,低通滤波频域空间域一二阶算子综合)
共2000个文件
pyi:666个
msg:127个
pyd:90个
需积分: 5 1 下载量 153 浏览量
2024-01-08
15:23:44
上传
评论
收藏 190.76MB RAR 举报
温馨提示
数字图像处理集成器GUI可视化界面(灰度值HSV,RGB,高斯低通高通,低通滤波频域空间域一二阶算子综合) 文件中包含两种代码,第一种是可视化界面的直接实现与代码综合,另一个单纯的算法函数实现。 灰度值转化,HSV三通道便函,RGB拆分对比 灰度直方图对比均衡化归一化,矩阵变换操作节约时间 空间域低通高通中值滤波,一共四种不同的操作 频域上高斯低通和高通滤波 一二级算子一共四种对比效果 所有代码都是自己的手动实现,并没有调用opencv库,适合初学者的学习和调用
资源推荐
资源详情
资源评论
收起资源包目录
数字图像处理集成器GUI可视化界面(灰度值HSV,RGB,高斯低通高通,低通滤波频域空间域一二阶算子综合) (2000个子文件)
Abidjan 147B
Accra 183B
Acre 194B
ACT 190B
Adak 8KB
Addis_Ababa 189B
Adelaide 8KB
Aden 171B
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 189B
Aleutian 176B
Algiers 1KB
Almaty 2KB
Amman 7KB
Amsterdam 9KB
Anadyr 2KB
Anchorage 8KB
Andorra 7KB
Anguilla 202B
Antananarivo 190B
Antigua 201B
Apia 909B
Aqtau 2KB
Aqtobe 2KB
Araguaina 2KB
Arizona 184B
Aruba 199B
Ashgabat 878B
Ashkhabad 182B
Asmara 184B
Asmera 184B
AST4 201B
AST4ADT 192B
Astrakhan 2KB
Asuncion 8KB
Athens 8KB
Atikokan 187B
Atka 177B
Atlantic 189B
Atyrau 2KB
Auckland 9KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
磊哥哥讲算法
- 粉丝: 172
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功