[% IF (complexType.get_attribute.size) -%]
our $XML_ATTRIBUTE_CLASS = '[% XSD.create_xmlattr_name(complexType) %]';
[% ELSE -%]
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
[% END %]
sub __get_attr_class {
    return $XML_ATTRIBUTE_CLASS;
}

[% IF (complexType.get_contentModel == 'simpleContent');
    INCLUDE complexType/simpleContent.tt(complexType = complexType);
ELSIF (complexType.get_contentModel == 'complexContent');
    INCLUDE complexType/complexContent.tt(complexType = complexType);
ELSE;
    INCLUDE complexType/variety.tt(complexType = complexType);
END -%]

[% INCLUDE complexType/attributeSet.tt %]
