What's about the element-based localization (http://www.w3.org/TR/widgets/#element-based-localization-0) supporting? It'll use the xml:lang attribute in a node element, I belive it's a quite different attribute that we can not treat it as a normal one.