aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/encoding/wchar/test.xsd
blob: 0bf4bdd9e8416118aaa6b03775ff5998f43be972 (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
        &#x10000;&#x10FFFD;bc
        ab&#x10000;&#x10FFFD;
      </documentation>
    </annotation>

    <restriction base="string">
      <enumeration value="abc"/>
      <enumeration value="a&#x1FFF;&#xD7FF;c"/>
      <enumeration value="&#x10000;&#x10FFFD;bc"/>
      <enumeration value="ab&#x10000;&#x10FFFD;"/>
    </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>