'Applies metadata translations for attributes stored on an inlined XML element.'

@classmethod
def _apply_translations_to_node_attributes(cls, block, node):

    for (old_attr, target_attr) in cls.metadata_translations.iteritems():
        if ((old_attr in node.attrib) and hasattr(block, target_attr)):
            setattr(block, target_attr, node.attrib[old_attr])
