It is still unclear how you know which files are in the bin
folder, but I'll give it a try.
In case the Source
attributes contains a full file path:
<xsl:key name="xml-search" match=" wix:Component[contains(wix:File/@Source, '.xml') and contains(wix:File/@Source,'\bin')]" use ="@Id " />