def contrib_xref(contrib_tag, ref_type):
aff_tags = []<EOL>for child_tag in contrib_tag:<EOL><INDENT>if (child_tag and child_tag.name and child_tag.name == "<STR_LIT>"<EOL>and child_tag.get('<STR_LIT>') and child_tag.get('<STR_LIT>') == ref_type):<EOL><INDENT>aff_tags.append(child_tag)<EOL><DEDENT><DEDENT>return aff_tags<EOL>
Given a contrib tag, look for an xref tag of type ref_type directly inside the contrib tag