def getTypeRef(self, element):
typeattr = self.getAttr(element, '<STR_LIT:type>', default=None)<EOL>if typeattr is None:<EOL><INDENT>return None<EOL><DEDENT>parts = typeattr.split('<STR_LIT::>', <NUM_LIT:1>)<EOL>if len(parts) == <NUM_LIT:2>:<EOL><INDENT>nsuri = self.findNamespaceURI(parts[<NUM_LIT:0>], element)<EOL><DEDENT>else:<EOL><INDENT>nsuri = self.findDefaultNS(element)<EOL><DEDENT>return (nsuri, parts[<NUM_LIT:1>])<EOL>
Return (namespaceURI, name) for a type attribue of the given
           element, or None if the element does not have a type attribute.