File: issue_200.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (25 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:na="ames"
           targetNamespace="ames"
           elementFormDefault="qualified">

   <xs:complexType name="itemtype">
      <xs:simpleContent>
          <xs:extension base="xs:string">
               <xs:attribute name="doc_id" type="xs:int" />
               <xs:attribute name="ref_id" type="xs:string" />
         </xs:extension>
        </xs:simpleContent>
   </xs:complexType>

   <xs:complexType name="maintype">
         <xs:sequence>
            <xs:element name="item" maxOccurs="unbounded" type="na:itemtype" />
         </xs:sequence>
      </xs:complexType>

   <xs:element name="main" type="na:maintype" />

</xs:schema>