add todo comment to recheck the XSD schema merging implementation

XSD schema imports are not supposed to be transitive. They only allow the
importing schema to reference entities from the imported schema, but do not
include them as their own content. The current XSD schema merging implementation
seems like it's actually including and propagating all the imported content.
This commit is contained in:
Jurko Gospodnetić 2015-07-01 10:46:20 +02:00
parent 556ee3b67d
commit e56c82286c
1 changed files with 4 additions and 0 deletions

View File

@ -249,6 +249,10 @@ class Definitions(WObject):
schema = Schema(root, self.url, self.options, container)
container.add(schema)
self.schema = container.load(self.options)
#TODO: Recheck this XSD schema merging. XSD schema imports are not
# supposed to be transitive. They only allow the importing schema to
# reference entities from the imported schema, but do not include them
# as their own content.
for s in (t.schema() for t in self.types if t.imported()):
self.schema.merge(s)
return self.schema