以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  element is not allowed for content model  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=85863)


--  作者:dutysmart
--  发布时间:7/25/2010 12:10:00 PM

--  element is not allowed for content model
//xsd
<xs:element name="meta">
    <xs:complexType>
      <xs:sequence>
      <xs:element ref="stc:harness" minOccurs="0" maxOccurs="unbounded"></xs:element>
    </xs:sequence>
  </xs:element>

<xs:element name="harness">
   ...
  </xs:element>

//xml
<stc:meta
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:RecorderXMLSchema.xsd stc_ntaf_def.xsd"
    xmlns:h="http://www.ntaforum.org/2010/harness"
    xmlns:stc="urn:RecorderXMLSchema.xsd"

<stc:harness harness='com'>
</stc:harness>
</stc:meta>

error: element 'harness' is not allowed for content model '<harness*,list-harnesses,query-actionset*,request>'


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