def checkImport(thisDoc, qname):
    (prefix, sep, localName) = qname.partition(':')
    if sep:
        if (prefix not in thisDoc.imports):
            if (prefix == 'xbrldt'):
                thisDoc.imports['xbrldt'] = (('namespace', XbrlConst.xbrldt), ('schemaLocation', 'http://www.xbrl.org/2005/xbrldt-2005.xsd'))
            elif (prefix == 'nonnum'):
                thisDoc.imports['nonnum'] = (('namespace', 'http://www.xbrl.org/dtr/type/non-numeric'), ('schemaLocation', 'http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd'))
            elif ((prefix != thisDoc.extensionSchemaPrefix) and (prefix != 'xs')):
                cntlr.addToLog('Warning: prefix schema file is not imported for: {qname}'.format(qname=qname), messageCode='importExcel:warning', file=thisDoc.extensionSchemaFilename)
def checkImport(thisDoc, qname):
    (prefix, sep, localName) = qname.partition(':')
    if sep:
        if (prefix not in thisDoc.imports):
            if (prefix == 'xbrldt'):
                thisDoc.imports['xbrldt'] = (('namespace', XbrlConst.xbrldt), ('schemaLocation', 'http://www.xbrl.org/2005/xbrldt-2005.xsd'))
            elif (prefix == 'nonnum'):
                thisDoc.imports['nonnum'] = (('namespace', 'http://www.xbrl.org/dtr/type/non-numeric'), ('schemaLocation', 'http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd'))
            elif ((prefix != thisDoc.extensionSchemaPrefix) and (prefix != 'xs')):
                cntlr.addToLog('Warning: prefix schema file is not imported for: {qname}'.format(qname=qname), messageCode='importExcel:warning', file=thisDoc.extensionSchemaFilename)