def getTransformElementNode(coords, transformName):
 transformElementNode = coords.getFirstChildByLocalName(transformName)
 if (len(transformElementNode.attributes) < 16):
  if ('bf:ref' in transformElementNode.attributes):
   idReference = transformElementNode.attributes['bf:ref']
   return coords.getDocumentElement().getSubChildWithID(idReference)
 return transformElementNode

def getTransformElementNode ( coords , transformName ) : transformElementNode = coords . getFirstChildByLocalName ( transformName ) if ( len ( transformElementNode . attributes ) < 16 ) : if ( 'bf:ref' in transformElementNode . attributes ) : idReference = transformElementNode . attributes [ 'bf:ref' ] return coords . getDocumentElement ( ) . getSubChildWithID ( idReference ) return transformElementNode
get the transform attributes .