模式语言规范 [英] schema language specification

查看:62
本文介绍了模式语言规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在我的架构中,我需要根据元素值有条件地分配类型。

In my schema, I need to assign type conditionally based on the element values.

做一些谷歌在搜索中,我遇到了一种称为条件类型赋值的东西,它可用于< xs:alternative test ="" type ="">< / xs:alternative>。

Doing some google searches, I came across something called conditional type assignment which is available with <xs:alternative test="" type=""></xs:alternative>.

使用 替代解决方案仅受 架构语言规范1.1( http://www.w3.org/TR/xmlschema11-1/

Using alternative solution is only supported by the schema language specification 1.1 (http://www.w3.org/TR/xmlschema11-1/)

我想知道是否有人可以在微软支持1.1(特别是对于Visual Studio 2010中的项目)时请回答。

I wonders if anyone could please answer if 1.1 is yet supported by Microsoft (especifically for projects within visual studio 2010).

如果不是,你知道这个规范何时会得到支持。

If no, do you know when this specification will be supported.

谢谢

 

 

 

推荐答案

.NET框架中的XML解析器(即使用适当的XmlReaderSettings创建的验证XmlReader)支持1.0版本W3C模式语言。不支持1.1版。

The XML parser in the .NET framework (i.e. a validating XmlReader created with proper XmlReaderSettings) supports the version 1.0 of the W3C schema language. Version 1.1 is not supported.

然而,Saxon的第三方解决方案支持模式语言1.1版的某些部分,请参阅
http://www.saxonica.com/feature-matrix.html ,了解哪些商业版支持的详细信息针对模式语言的1.1版进行验证。请注意,
1.1版仍在开发中,我无法告诉你最新的Saxon 9.3版支持1.1版的最新候选推荐。

There is however a third party solution with Saxon that supports some part of the version 1.1 of the schema language, see http://www.saxonica.com/feature-matrix.html for details as to which of the commercial version support validation against the version 1.1 of the schema language. Take note however that version 1.1 is still under development, I can't tell you how well the latest Saxon release 9.3 supports the latest candidate recommendation of the version 1.1.


这篇关于模式语言规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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