def getTransformXMLElement(coords, transformName):
 transformXMLElement = coords.getFirstChildWithClassName(transformName)
 if (len(transformXMLElement.attributeDictionary) < 16):
  if ('bf:ref' in transformXMLElement.attributeDictionary):
   idReference = transformXMLElement.attributeDictionary['bf:ref']
   return coords.getRoot().getSubChildWithID(idReference)
 return transformXMLElement

def getTransformXMLElement ( coords , transformName ) : transformXMLElement = coords . getFirstChildWithClassName ( transformName ) if ( len ( transformXMLElement . attributeDictionary ) < 16 ) : if ( 'bf:ref' in transformXMLElement . attributeDictionary ) : idReference = transformXMLElement . attributeDictionary [ 'bf:ref' ] return coords . getRoot ( ) . getSubChildWithID ( idReference ) return transformXMLElement
get the transform attributes .