Bugfix: Need to copy attributes. Xalan XSLTC reuses the Attributes instance (and modifies it freely).