Browse Source

----------------------------------------------------------------------

Modified Files:
 	XMLSchema.py -- added substutionGroup to the list of attributes
		that can be specified in an ElementDeclaration.
 ----------------------------------------------------------------------
main
Joshua Boverhof 21 years ago
parent
commit
dca70c6654
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      XMLSchema.py

+ 2
- 1
XMLSchema.py View File

@@ -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',\


Loading…
Cancel
Save