如何在Msxml中支持value属性? W3C是否支持它? [英] How to support value attribute in Msxml? Does W3C supports it?
问题描述
我有以下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 theattribute
declaration of the schema, should be defined asdefault
orfixed
, whichever is appropriate, not as "value". Please see:
http://www.w3.org/TR/xmlschema11-1/#cAttribute_Declarations[^].
—SA
这篇关于如何在Msxml中支持value属性? W3C是否支持它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!