-
<
test1
>
-
<
foo:test
xmlns:foo
="
bigrabbit
"
foo:gg
="
3
"
foo:hh
="
4
"
>
-
<!--
watch for multiple declarations of foo: namespace prefix on the "test" element.
-->
<
bar
xmlns:foo
="
littlerabbit
"
foo:squid
="
fish
"
/>
-
<!--
check that the squid attribute is in the "littlerabbit" namespace, not "bigrabbit".
-->
<
baz
xmlns:hi
="
anothernamespace
"
hi:attr
="
value
"
/>
-
<!--
check that the "hi:" namespace prefix is declared.
-->
</
foo:test
>
-
<
p1:anc1
xmlns:p1
="
ns1
"
>
-
<
p1:anc2
xmlns:p1
="
ns2
"
>
<
p1:anc3
xmlns:p1
="
ns1
"
/>
-
<!--
check that anc3 is in the "ns1" namespace, not "ns2".
-->
</
p1:anc2
>
</
p1:anc1
>
</
test1
>