Browse Source

M XMLSchema.py

-- if can't find targetNamespace return '' as default
main
Joshua Boverhof 17 years ago
parent
commit
803af60cd9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      XMLSchema.py

+ 2
- 2
XMLSchema.py View File

@@ -533,10 +533,10 @@ class XMLSchemaComponent(XMLBase, MarkerInterface):
parent = self
targetNamespace = 'targetNamespace'
tns = self.attributes.get(targetNamespace)
while not tns:
while not tns and parent and parent._parent is not None:
parent = parent._parent()
tns = parent.attributes.get(targetNamespace)
return tns
return tns or ''

def getAttributeDeclaration(self, attribute):
"""attribute -- attribute with a QName value (eg. type).


Loading…
Cancel
Save