From dca70c66540720095b41c632280ef6cd1541f2e2 Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Wed, 21 Jan 2004 21:54:33 +0000 Subject: [PATCH] ---------------------------------------------------------------------- Modified Files: XMLSchema.py -- added substutionGroup to the list of attributes that can be specified in an ElementDeclaration. ---------------------------------------------------------------------- --- XMLSchema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XMLSchema.py b/XMLSchema.py index 76c9d7a..2fa880e 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -490,7 +490,7 @@ class XMLSchemaComponent(XMLBase): raise SchemaError,\ 'class instance %s, missing required attribute %s'\ %(self.__class__, a) - + for a in self.attributes.keys(): if (a != XMLSchemaComponent.xmlns) and\ (a not in self.__class__.attributes.keys()) and not\ @@ -1615,6 +1615,7 @@ class ElementDeclaration(XMLSchemaComponent,\ 'fixed':None, 'nillable':0, 'abstract':0, + 'substitutionGroup':None, 'block':lambda self: self._parent().getBlockDefault(), 'final':lambda self: self._parent().getFinalDefault()} contents = {'xsd':['annotation', 'simpleType', 'complexType', 'key',\