以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  xs:choice加入xs:group时为什么要设置MAXOCCURS的置  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=34586)


--  作者:feaket
--  发布时间:6/19/2006 2:14:00 PM

--  xs:choice加入xs:group时为什么要设置MAXOCCURS的置
 <xs:element name="test">
  <xs:complexType>
   <xs:choice>
    <xs:element ref="test"/>
    <xs:group ref="finalconditiongroup" minOccurs="0"/>
   </xs:choice>
  </xs:complexType>
 </xs:element>

 <xs:group name="finalconditiongroup">
  <xs:all>
   <xs:element ref="right"/>
   <xs:element ref="left"/>
   <xs:element ref="relation" minOccurs="0"/>
   <xs:element ref="field-logical" minOccurs="0"/>
  </xs:all>
 </xs:group>


--  作者:gemingke
--  发布时间:6/20/2006 11:31:00 AM

--  
没看见有给maxoccurs设值
--  作者:Afanty
--  发布时间:6/27/2006 4:47:00 PM

--  
那个 ref 是什么意思呢?用 name 不行吗?
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
6,406.250ms