|
@@ -490,7 +490,7 @@ class XMLSchemaComponent(XMLBase): |
|
|
raise SchemaError,\ |
|
|
raise SchemaError,\ |
|
|
'class instance %s, missing required attribute %s'\ |
|
|
'class instance %s, missing required attribute %s'\ |
|
|
%(self.__class__, a) |
|
|
%(self.__class__, a) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for a in self.attributes.keys(): |
|
|
for a in self.attributes.keys(): |
|
|
if (a != XMLSchemaComponent.xmlns) and\ |
|
|
if (a != XMLSchemaComponent.xmlns) and\ |
|
|
(a not in self.__class__.attributes.keys()) and not\ |
|
|
(a not in self.__class__.attributes.keys()) and not\ |
|
@@ -1615,6 +1615,7 @@ class ElementDeclaration(XMLSchemaComponent,\ |
|
|
'fixed':None, |
|
|
'fixed':None, |
|
|
'nillable':0, |
|
|
'nillable':0, |
|
|
'abstract':0, |
|
|
'abstract':0, |
|
|
|
|
|
'substitutionGroup':None, |
|
|
'block':lambda self: self._parent().getBlockDefault(), |
|
|
'block':lambda self: self._parent().getBlockDefault(), |
|
|
'final':lambda self: self._parent().getFinalDefault()} |
|
|
'final':lambda self: self._parent().getFinalDefault()} |
|
|
contents = {'xsd':['annotation', 'simpleType', 'complexType', 'key',\ |
|
|
contents = {'xsd':['annotation', 'simpleType', 'complexType', 'key',\ |
|
|