如何在Msxml中支持value属性? W3C是否支持它? [英] How to support value attribute in Msxml? Does W3C supports it?

查看:97
本文介绍了如何在Msxml中支持value属性? W3C是否支持它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下xsd -







< xs:schema xmlns:xs = http://www.w3.org/2001/XMLSchema\">



< xs:attribute name =codetype =xs:string< big> value =Hello/>



< xs:element name =note>

< xs:complexType>

< xs:sequence>

< xs:element name =totype =xs: string/>

< xs:element name =fromtype =xs:string/>

< xs:element name =heading type =xs:string/>

< xs:element name =bodytype =xs:string/>

< / xs:sequence>

< xs:attribute ref =code/>

< / xs:complexType>

< / xs:element>



< / xs :schema>





我想知道msxml是否支持带有BIG和STRIKETHROUGH的字符,即Value属性?

(我也看不到W3C属性语法中的值。)



提前谢谢。

I have following xsd -



<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:attribute name="code" type="xs:string" value="Hello"/>

<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="heading" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
<xs:attribute ref="code"/>
</xs:complexType>
</xs:element>

</xs:schema>


I want to know if character with BIG and STRIKETHROUGH, i.e. Value attribute is supported by msxml?
(Also i cant see Value in syntax of attribute in W3C.)

Thanks in advance.

推荐答案

按照W3标准,模式的属性声明所针对的属性的值应定义为 default 已修复,取决于哪个,而不是值。请参阅:

http://www.w3.org/TR/xmlschema11- 1 / #cAttribute_Declarations [ ^ ]。



-SA
By W3 standard, the value of the attribute targeted by the attribute declaration of the schema, should be defined as default or fixed, whichever is appropriate, not as "value". Please see:
http://www.w3.org/TR/xmlschema11-1/#cAttribute_Declarations[^].

—SA


这篇关于如何在Msxml中支持value属性? W3C是否支持它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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