The node tests attribute(X), attribute(X, T), and
schema-attribute(X), where X is an unprefixed name,
assume that X is in the default namespace for elements
and types (In the case of XSLT this is the namespace
set using xpath-default-namespace, if present).
They should treat X as being in no namespace.
The bug is present in 8.6 and all known previous releases.