MarkLogic是否提供schematron支持? [英] Does MarkLogic provides schematron support?
本文介绍了MarkLogic是否提供schematron支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用MarkLogic 8.0-8版本.
I am using MarkLogic 8.0-8 version.
是否可以使用schematron验证XML?
Is it possible to validate an XML using schematron?
请帮我举个例子.
推荐答案
是的,从MarkLogic 9.0.7开始,已经内置了对Schematron的支持.
Yes, as of MarkLogic 9.0.7, there is built-in support for Schematron.
http://docs.marklogic.com/schematron
要将schematron XQuery库模块用作您自己的XQuery模块的一部分,请在XQuery序言中包括以下几行:
To use the schematron XQuery library module as part of your own XQuery module, include the following lines in your XQuery prolog:
import module namespace schematron = "http://marklogic.com/xdmp/schematron"
at "/MarkLogic/schematron/schematron.xqy";
有关更多信息和用法示例,请参见使用Schematron验证架构应用程序开发人员指南"中的"a>"部分.
For more information and usage examples, see the Validating Schemas Using Schematron section in the Application Developers Guide.
这篇关于MarkLogic是否提供schematron支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文