|
@@ -533,10 +533,10 @@ class XMLSchemaComponent(XMLBase, MarkerInterface): |
|
|
parent = self |
|
|
parent = self |
|
|
targetNamespace = 'targetNamespace' |
|
|
targetNamespace = 'targetNamespace' |
|
|
tns = self.attributes.get(targetNamespace) |
|
|
tns = self.attributes.get(targetNamespace) |
|
|
while not tns: |
|
|
|
|
|
|
|
|
while not tns and parent and parent._parent is not None: |
|
|
parent = parent._parent() |
|
|
parent = parent._parent() |
|
|
tns = parent.attributes.get(targetNamespace) |
|
|
tns = parent.attributes.get(targetNamespace) |
|
|
return tns |
|
|
|
|
|
|
|
|
return tns or '' |
|
|
|
|
|
|
|
|
def getAttributeDeclaration(self, attribute): |
|
|
def getAttributeDeclaration(self, attribute): |
|
|
"""attribute -- attribute with a QName value (eg. type). |
|
|
"""attribute -- attribute with a QName value (eg. type). |
|
|