Tests¶
The suite is based on the Definitive XML Schema by Priscilla Walmsley xsd samples and tests only focus on code generation with the pydata format.
Results
Total tests: 228
Passed: 140
Custom documentation structure: 1
XML Schema 1.1: 43
Unsupported feature!: 20
Should fail: 3
XML Reference: 2
Duplicated attributes: 2
Incomplete fixture: 16
Fails: 1
Skip Reasons:
- defxmlschema/chapter01
- defxmlschema/chapter02
- defxmlschema/chapter04
- Example 4-1 Include
- Example 4-1 Include
- Example 4-2 Chameleon include
- Example 4-2 Chameleon include
- Example 4-3 Import
- Example 4-3 Import
- Example 4-5 Multiple imports of the same namespace
- Example 4-5 Multiple imports of the same namespace
- Example 4-5 Multiple imports of the same namespace
- Example 4-6 Proxy schema to avoid multiple imports
- defxmlschema/chapter06
- defxmlschema/chapter07
- defxmlschema/chapter08
- Example 8-1 Defining and referencing a named simple type
- Example 8-10 Restricting an enumeration
- Example 8-12 Using a union to extend an enumeration
- Example 8-13 Enumerating numeric values
- Example 8-14 Applying the pattern facet
- Example 8-15 Restricting a pattern
- Example 8-2 Defining an anonymous simple type
- Example 8-21 Preventing type derivation
- Example 8-3 Deriving a simple type from a built-in simple type
- Example 8-4 Deriving a simple type from a user-derived simple type
- Example 8-5 Effective definition of MediumDressSizeType
- Example 8-7 Fixed facets
- Example 8-8 Union allowing an empty value
- Example 8-9 Applying the enumeration facet
- defxmlschema/chapter10
- Example 10-1 Defining a union type
- Example 10-10 Length facet applied to a list
- Example 10-13 Enumeration applied to the item type of a list
- Example 10-14 Enumeration correctly applied to a list type
- Example 10-15 Pattern applied to a list type
- Example 10-16 Defining a list of a string-based type
- Example 10-18 Defining a list of a union
- Example 10-2 Using the memberTypes attribute
- Example 10-21 An array using markup
- Example 10-3 Combining memberTypes and simpleType
- Example 10-4 Restricting a union
- Example 10-5 A union of a union
- Example 10-7 Defining a list type using an itemType attribute
- Example 10-9 Defining a list type using a simpleType child
- defxmlschema/chapter11
- defxmlschema/chapter12
- Example 12-11 Complex type with empty content
- Example 12-12 Element references
- Example 12-15 A sequence group
- Example 12-18 Enforcing order for better constraints
- Example 12-19 A choice group
- Example 12-2 Named complex type
- Example 12-21 A repeating choice group
- Example 12-23 Multiple nested groups
- Example 12-24 An all group
- Example 12-27 Complex type with a named model group reference
- Example 12-3 Anonymous complex type
- Example 12-30 Local attribute declaration
- Example 12-31 Attribute reference
- Example 12-32 Complex type with attribute group reference
- Example 12-33 Using an element wildcard
- Example 12-35 Complex type with element wildcard
- Example 12-37 Negative wildcards
- Example 12-5 Complex type with simple content
- Example 12-7 Complex type with element-only content
- defxmlschema/chapter13
- Example 13-1 Simple content extension
- Example 13-11 Attribute wildcard extension
- Example 13-12 Effective attribute wildcard
- Example 13-13 Simple content restriction
- Example 13-14 Complex content restriction
- Example 13-2 Complex content extension
- Example 13-27 Mixed content restriction
- Example 13-28 Mixed content restricted to simple content
- Example 13-29 Empty content restriction
- Example 13-3 Effective content model of ShirtType
- Example 13-30 Legal restrictions of attributes
- Example 13-32 Restricting an attribute wildcard
- Example 13-33 Replacing an attribute wildcard with attributes
- Example 13-34 Restricting a type from another namespace with global declarations
- Example 13-34 Restricting a type from another namespace with global declarations
- Example 13-35 Using targetNamespace on element and attribute declarations
- Example 13-35 Using targetNamespace on element and attribute declarations
- Example 13-36 A derived type
- Example 13-38 Preventing derivation
- Example 13-39 Preventing substitution of derived types
- Example 13-4 choice group extension
- Example 13-41 An abstract type
- Example 13-5 all group extension
- Example 13-6 Effective content model of ShirtType with all groups combined
- Example 13-8 Mixed content extension
- Example 13-9 Empty content extension
- defxmlschema/chapter15
- Example 15-1 Named model group with local element declarations
- Example 15-10 Attribute group with a wildcard
- Example 15-14 Attribute group referencing an attribute group
- Example 15-17 Named groups across namespaces
- Example 15-2 Named model group with element references
- Example 15-4 Equivalent content model without a named model group reference
- Example 15-5 Group reference at the top level of the content model
- Example 15-6 Group with an all model group
- Example 15-7 Group reference from a group
- Example 15-8 Attribute group with local attribute declarations
- Example 15-9 Attribute group with attribute references
- defxmlschema/chapter16
- defxmlschema/chapter18
- Example 18-1 A simple redefinition
- Example 18-10 Overriding a complex type
- Example 18-11 Overriding element and attribute declarations
- Example 18-13 Risks of overriding types
- Example 18-2 Redefining a simple type
- Example 18-3 Redefining a complex type
- Example 18-8 A simple override
- Example 18-9 Overriding a simple type
- defxmlschema/chapter21
- Example 21-1 Schema for Russian Doll approach
- Example 21-10 Different namespaces in a schema
- Example 21-10 Different namespaces in a schema
- Example 21-10 Different namespaces in a schema
- Example 21-13 Chameleon namespaces in a schema
- Example 21-13 Chameleon namespaces in a schema
- Example 21-16 Schema for qualified local element names
- Example 21-16 Schema for qualified local element names
- Example 21-2 Schema for Salami Slice approach
- Example 21-3 Schema for Venetian Blind approach
- Example 21-4 Schema for Garden of Eden approach
- Example 21-8 Same namespace in a schema
- Example 21-8 Same namespace in a schema
- Example 21-8 Same namespace in a schema
- defxmlschema/chapter22