def getLocalAttribute(xmlElement):
 for key in xmlElement.attributeDictionary:
  if key[:1].isalpha():
   value = evaluate.getEvaluatorSplitWords(xmlElement.attributeDictionary[key])
   if key.startswith('local.'):
    return evaluate.KeyValue(key[len('local.'):], value)
   return evaluate.KeyValue(key, value)
 return evaluate.KeyValue()

def getLocalAttribute ( xmlElement ) : for key in xmlElement . attributeDictionary : if key [ : 1 ] . isalpha ( ) : value = evaluate . getEvaluatorSplitWords ( xmlElement . attributeDictionary [ key ] ) if key . startswith ( 'local.' ) : return evaluate . KeyValue ( key [ len ( 'local.' ) : ] , value ) return evaluate . KeyValue ( key , value ) return evaluate . KeyValue ( )
get the local attribute if any .