You can declare 3 different local versions of element "a", each with a
different attribute - or one global version and 2 local. This should allow
what you need.
Not
if the three versions are interchangeable in terms of where they may
appear.
Michael Kay
http://www.saxonica.com/