XML元架构 [英] XML Meta Schema

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

问题描述

由于XML模式(XSD)本身就是XML文件,因此应该可以构建 模式(元模式)的模式,对吧?

Since XML schemata (XSD) are themselves XML files, it should be possible to build a schema of a schema (meta-schema), right?

我正在努力实现这一壮举.

I'm struggling to accomplish that feat.

我想创建一个描述模式的模式 一个根complexType包含一个simpleTypes序列.

I would like to create a schema that describes a schema with one root complexType containing a sequence of simpleTypes.

推荐答案

Akoma-Ntoso是这种元模式的一个示例:

Akoma-Ntoso is an example of such a meta-schema:

我们可以说Akoma Ntoso是一个元模式,它允许您构建自己的模式:它为不同组织提供了构建基块,供他们用来构建自己的非常独立的模型.让组织使用相似的构建基块,确定这些块以相似的方式走了很长一段路,以允许更大程度的文档集成和交换以及软件工具的可重用性……"

"We can say that Akoma Ntoso is a meta-schema that allows you to build your own schema: it provides the building blocks for different organisations to use to build their own very individual schemas. Having organisations using similar building blocks, identifying these blocks in a similar fashion goes a long way to allow greater integration and exchange of documents as well as reusability of software tools..."

Akoma Ntoso(西非阿坎语中的相联之心")定义了一套简单的,与技术无关的电子表示形式的XML格式的议会,立法和司法文件.

Akoma Ntoso ("linked hearts" in the Akan language of West Africa) defines a set of simple technology-neutral electronic representations in XML format of parliamentary, legislative and judiciary documents.

它使用两个抽象extends:

元素extends是元数据元素,用于指定对所描述自变量扩展的源的引用.

The element extends is a metadata element specifying a reference to a source extended by the argument being described.

  • 扩展是派生的规则,它以受控方式添加了新功能 遵守基本规则,以便根据 可以通过删除基本规则来验证派生规则 附加的功能.根据得出的有效文件集 规则是根据 基本规则.
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆