Browse Source

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

Modified Files:
 	XMLSchema.py -- error in Import class for accessing a schemaLocation.
            This bug would only show up if a schema had to 'construct' a
            schema instance of a different namespace itself.  Basically the
            last option.

 ----------------------------------------------------------------------
main
Joshua Boverhof 21 years ago
parent
commit
bebb1ff29d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      XMLSchema.py

+ 2
- 1
XMLSchema.py View File

@@ -1100,7 +1100,8 @@ class XMLSchema(XMLSchemaComponent):
if not schema and self._parent()._parent: if not schema and self._parent()._parent:
schema = self._parent()._parent().getImportSchemas().get(ns) schema = self._parent()._parent().getImportSchemas().get(ns)
if not schema: if not schema:
if not self.attributes.has_key('schemaLocation'):
url = self.attributes.get('schemaLocation')
if not url:
raise SchemaError, 'namespace(%s) is unknown' %ns raise SchemaError, 'namespace(%s) is unknown' %ns
base_url = self._parent().getBaseUrl() base_url = self._parent().getBaseUrl()
reader = SchemaReader(base_url=base_url) reader = SchemaReader(base_url=base_url)


Loading…
Cancel
Save