File: illegal-declarations.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (17 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<!-- A sample schema for testing model validation -->
<xs:schema xmlns="ns" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="ns" >

    <xs:anyattribute notNamespace="#all"> <!-- Illegal declaration -->
    </xs:anyattribute>

    <!-- Unexpected attribute declarations (should be inside extension tag) -->
    <xs:complexType name="A" mixed="true">
        <xs:simpleContent>
            <xs:extension base="xs:string"/>
        </xs:simpleContent>
        <xs:attribute name="a1" type="xs:short"/>
        <xs:attribute name="a2" type="xs:negativeInteger"/>
    </xs:complexType>

</xs:schema>