XSLT for replace attribute in XML element if it exists in another XML?
问题 I have 2 files catalog.xml <?xml version="1.0" encoding="UTF-8"?> <catalog> <CD Title="Still got the blues" vinyl="unknown"/> <CD Title="When a man loves a woman" vinyl="unknown"/> </catalog> vinyl.xml <?xml version="1.0" encoding="UTF-8"?> <Vinyl> <Album> <Title>When a man loves a woman</Title> <Vinyl>Yes</Vinyl> </Album> </Vinyl> How to produce such output.xml with xslt? <?xml version="1.0" encoding="UTF-8"?> <catalog> <CD Title="Still got the blues" vinyl="unknown"/> <CD Title="When a man