使用Schematron验证XML [英] Validating XML with Schematron

查看:99
本文介绍了使用Schematron验证XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Schematron验证XML文件,该文件比XSD复杂.我在Google上搜索了很多,最好的是 Microsoft网站 .但这仅显示了如何使用NMatrix.Schematron的XSD进行验证,这不是我所需要的.我有NMatrix.Schematron DLL,但我不知道如何使用它们.有谁知道如何使用它?

I am trying to validate an XML file with Schematron, which is more complicated than XSD. I googled a lot and the best thing that came up is this Microsoft website. But that only shows how to validate with XSD with NMatrix.Schematron which is not what I need. I have the NMatrix.Schematron DLLs but I dont know how to use them. Does anyone know how to use it?

推荐答案

我建议您改用Rick Jelliffe的使用纯XSLT(最好是XSLT 2.0)和成熟的XSLT处理器(例如Michael Kay的

I recommend that you instead use Rick Jelliffe's reference implementation of ISO Schematron using pure XSLT, preferably XSLT 2.0, with an established XSLT processor such as Michael Kay's Saxon.

这篇关于使用Schematron验证XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆