summaryrefslogtreecommitdiff
path: root/xsd/tests/cxx/parser/list/test.xsd
blob: 79bd0845ad0195a812b9eb766724f1699b13472d (plain)
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"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <simpleType name="string-list">
    <list itemType="string"/>
  </simpleType>

  <complexType name="string-list-lang">
    <simpleContent>
      <extension base="t:string-list">
        <attribute name="lang" type="string"/>
      </extension>
    </simpleContent>
  </complexType>

  <complexType name="type">
    <choice maxOccurs="unbounded">
      <element name="string-list" type="t:string-list"/>
      <element name="string-list-lang" type="t:string-list-lang"/>
    </choice>
  </complexType>

  <element name="root" type="t:type"/>

</schema>