以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML源码及示例(仅原创和转载) 』  (http://bbs.xml.org.cn/list.asp?boardid=32)
----  大虾看一下,这个错在什么地方?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=32&rootid=&id=5383)


--  作者:yoyoma2145
--  发布时间:2/17/2004 12:36:00 AM

--  大虾看一下,这个错在什么地方?
<?xml version="1.0" encoding="gb2312"?>
<Schema name="sc" xmlns="urn:schemas-microsoft-com:xml-data"
xmlns:dt="urn:schemas-microsoft-com:xml-datatypes">
<!-- <datatype name="smallint" source="integer">
 <minExclusive value="1"/>
 <maxExclusive value="99"/>
</datatype>-->
<!-- <type name="mycontent">
 <element name="bookmark" type="int" minOccurs="1" maxOccurs="2"/>
</type>-->

<ElementType name="属性" dt:type="string"/>
<AttributeType name="等级" dt:type="enumeration"  dt:value="A B C D " required="yes"/>
<AttributeType name="编号" dt:type="id" required="yes"/>
<ElementType name="商品" model="closed" content="eltOnly">
 <datatype name="smallint" source="integer">
 <minExclusive value="1"/>
 <maxExclusive value="99"/>
</datatype>
<!--怎么默认的式textOnly?我明明写的式mixed,错误为:内容模式式textOnly,不能包含数据类型-->

 <element type="属性" minOccurs="0" maxOccurs="1"/>
 <attribute type="等级" default="C"/>
 <attribute type="编号"/>
 <!-- <attribute type="smallint"/>-->
</ElementType>
</Schema>


--  作者:ahu
--  发布时间:3/18/2004 7:16:00 PM

--  
错了么?我看好好的啊
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
4,824.219ms