(: Name: Constr-attr-nsprein-1 :)
(: Written by: Andreas Behm :)
(: Description: attribute prefix declared in same element before :)

<elem xmlns:foo="http://www.w3.org/XQueryTest/Construct" foo:attr="value"/>