以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  小弟有些问题请教!!!!!!!!!!!  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=34971)


--  作者:rockli
--  发布时间:6/28/2006 2:32:00 PM

--  小弟有些问题请教!!!!!!!!!!!
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by xxx (xxx) -->
<xs:schema targetNamespace="http://www.org.com/gbs/po"
      xmlns="http://www.org.com/gbs/po"
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     elementFormDefault="qualified"
     attributeFormDefault="unqualified" version="1.6">
 
<xs:annotation>
<xs:documentation xml:lang="en">
         GBS PO BATCH Schema
         version: 1.6
         author: pp AG, kevin
          pp AG, geoger
          date: 12. October 2004.
         Conforms to W3C CR XML Schema 2000-10-24
        1.1 2004-10-26 MWE Changed from xs:import to xs:include
        1.2 2004-11-04 OS remove PO Prefix
        1.3 2004-11-04 OS remove PO Prefix
        1.4 2004-12-08 OS Add Footer element
        1.5 2004-12-09 MWE purchase order element min occurs 0 for Result on batch
             level base ( footer element only)
        1.6 2005-02-23 OS Update Documentation   
             </xs:documentation>
</xs:annotation>
<!-- I M P O R T S -->
<xs:include schemaLocation="PO_V1.xsd"/>
<!-- R O O T -->
<xs:element name="PurchaseOrderBatch">
        <xs:complexType>
            <xs:sequence>
 <xs:annotation>
    <xs:documentation>The PurchaseOrderBatch should contain at most 500 Purchase Orders which might be different Purchase Orders (create, reject, accept, etc)  and Footer element is optional. </xs:documentation>
 </xs:annotation>
       <xs:element ref="PurchaseOrder" minOccurs="0" maxOccurs="500"/>
      <xs:element ref="Footer" minOccurs="0"/>
 </xs:sequence>
        </xs:complexType>
</xs:element>
</xs:schema>


请问!!<xs:annotation></xs:annotation>   
<xs:include schemaLocation="PO_V1.xsd"/>
之间的内容算是什么呢?是不是可以验证相对应的xml呢?是不是根据它也可以写出XML对应的格式呢?小弟十分迷惑!!!!!!!!


--  作者:gemingke
--  发布时间:6/28/2006 3:16:00 PM

--  
<xs:annotation>内的内容说明了这份schema的开发历程
  
<xs:include schemaLocation="PO_V1.xsd"/>表明这份schema用到了其他的schema(PO_V1.xsd)的元素和属性

--  作者:rockli
--  发布时间:6/28/2006 3:30:00 PM

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