summaryrefslogtreecommitdiff
path: root/tests/cxx/tree/encoding/wchar/test.xsd
blob: 0151d2ff61a762f0be3752600d403020c6c8dfcd (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
26
27
28
29
30
31
32
33
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <simpleType name="strenum">

    <annotation>
      <documentation>
        Test enum. Valid values are:
        abc
        a&#x1FFF;&#xD7FF;c
        &#x1000;&#x10FF;bc
        ab&#x1000;&#x10FF;
      </documentation>
    </annotation>

    <restriction base="string">
      <enumeration value="abc"/>
      <enumeration value="a&#x1FFF;&#xD7FF;c"/>
      <enumeration value="&#x1000;&#x10FF;bc"/>
      <enumeration value="ab&#x1000;&#x10FF;"/>
    </restriction>
  </simpleType>

  <complexType name="type">
    <sequence>
      <element name="a" type="string" maxOccurs="unbounded"/>
      <element name="b" type="t:strenum" maxOccurs="unbounded"/>
    </sequence>
  </complexType>

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

</schema>