I have 2 files
catalog.xml
The following transform, uses catalog.xml as input and loads vinyl.xml using document(). It performs the merge just by making a simple test.
document()
[XSLT 1.0]
This template for the attribute is less immediate, but it exploits pure XPath: