def prefixedNameQName(prefixedName):
    if (':' not in prefixedName):
        return prefixedName
    (prefix, _sep, name) = prefixedName.rpartition(':')
    if (prefix not in prefixedNamespaces):
        modelXbrl.error('loadFromExcel:undefinedRelationshipAttributePrefix', 'Prefix not defined: %(prefix)s', modelXbrl=modelXbrl, prefix=prefix)
        return prefixedName
    return QName(prefix, prefixedNamespaces[prefix], name)
def prefixedNameQName(prefixedName):
    if (':' not in prefixedName):
        return prefixedName
    (prefix, _sep, name) = prefixedName.rpartition(':')
    if (prefix not in prefixedNamespaces):
        modelXbrl.error('loadFromExcel:undefinedRelationshipAttributePrefix', 'Prefix not defined: %(prefix)s', modelXbrl=modelXbrl, prefix=prefix)
        return prefixedName
    return QName(prefix, prefixedNamespaces[prefix], name)