File: min2max2.yml

package info (click to toggle)
libxml-validator-schema-perl 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 572 kB
  • ctags: 232
  • sloc: perl: 3,682; makefile: 16; xml: 16
file content (36 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (3)
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
34
35
36
--- |
  <?xml version="1.0" encoding="UTF-8"?>
  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0">
      <xsd:element name="top">
          <xsd:complexType mixed="false">
              <xsd:sequence>
                <xsd:element name="inner" type="xsd:string" minOccurs="2" maxOccurs="2" />
             </xsd:sequence>
          </xsd:complexType>
      </xsd:element>
  </xsd:schema>

--- |
  <top>
    <inner/>
  </top>
--- >
FAIL

--- |
  <top>
    <inner/>
    <inner/>
  </top>
--- >
PASS

--- |
  <top>
    <inner/>
    <inner/>
    <inner/>
  </top>
--- >
FAIL