jboss/xalan-j — pull request #1 by jjromannet (2013-02-25 17:57:12+00:00)
Title: AS7-6390 I think this is the most generic way of dealing with this probl...

IMHO There is a problem with "http://xml.org/sax/features/namespace-prefixes" feature of SAX parser. When it is set to true attribute list of first element contains namespace definitions, moreover these attributes have parameters set incorrectly (at least AFAIK). So ...
there are parameters like:
{qname="xmlns:wsdl", uri="", local=""}
while it suppose to be:
{qname="xmlns:wsdl", uri="http://www.w3.org/2000/xmlns/", local="wsdl"}

Returning this namespace definitions as attributes causing they are processed once as "raw" attributes and then as namespace definitions. XALAN is checking for duplicated attributes based only on URI and local - so these two are different for IT.

I added lookup on qname if such URI/LOCAL lookup failed.