Noah,
thank you for your answer.
>
<!-- prefix p and the default are bound to the same namespace URI
> -_>
> <outer xmlns="http://example.org/ns"
> xmlns:p="http://example.org/ns">
> <-- no duplicate attribute error in the following -->
> <inner a="1" p:a="2"/>
> <-- the following has the same element tag as the one above -->
> <p:inner />
> </outer>
I
see that your example presents a valid piece of XML, but I believe there are
other â€“ more readable - ways to have two attributes with the same name in one
element. I believe the XML in your example leads to confusion, as to which
namespace the attributes belong, especially because elements donâ€™t need a
prefix to indicate they belong to the target namespace, whereas attributes do.
At first sight, one would think that both â€œaâ€