xsd.AttributeGroupDefinition

A xsd.Schema can name a group of xsd.AttributeDeclaration objects so that they can be incorporated as a group into xsd.ComplexTypeDefinition objects. Such a group is called xsd.AttributeGroupDefinition. xsd.AttributeGroupDefinition objects do not participate in validation as such, but the xsd.AttributeUse objects and attribute wildcard (xsd.AnyAttribute) of one or more xsd.ComplexTypeDefinition objects may be constructed in whole or part by reference to an xsd.AttributeGroupDefinition.

Base class: xsd.Component

class xsd.AttributeGroupDefinition

Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a NotImplementedError exception.

Attributes

xsd.AttributeGroupDefinition.annotations

Returns an iterator of xsd.Annotation components.

xsd.AttributeGroupDefinition.attribute_uses

Returns an iterator of xsd.AttributeUse schema components, allowing for local specification of occurrence and default or fixed values.

xsd.AttributeGroupDefinition.attribute_wildcard

Returns an attribute wildcard (xsd.AnyAttribute) schema component. Attribute wildcards provide a more flexible specification for validation of attributes not explicitly included in attribute_uses.

xsd.Component.element

Returns the xml.ElementInformationItem representing this schema component.

xsd.Component.id

Returns the value of the ‘id’ attribute as a string, or None if the schema component’s XML element doesn’t have an ‘id’ attribute.

xsd.AttributeGroupDefinition.name

Returns the name of the xsd.AttributeGroupDefinition.

xsd.AttributeGroupDefinition.qname

Returns a xml.QName object representing the name and target_namespace pair of the component.

xsd.AttributeGroupDefinition.target_namespace

Returns the target namespace of the xsd.AttributeGroupDefinition.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__