summaryrefslogtreecommitdiff
path: root/libxsd-frontend/tests/schema/element-group/test-002.xsd
blob: bc1bd70ca1a95f34e95de5f7fc326dea9908bdab (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
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <!-- Any in groups. -->

  <complexType name="type">
    <sequence>
      <group ref="t:g1" minOccurs="0" maxOccurs="unbounded"/>
      <group ref="t:g2" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
  </complexType>

  <group name="g1">
    <sequence>
      <any namespace="http://www.foo.com"/>
    </sequence>
  </group>

  <group name="g2">
    <sequence>
      <element name="foo" type="int"/>
      <any namespace="http://www.bar.com"/>
    </sequence>
  </group>

</schema>