> I don't want to do this, because I don't think it's well-defined in XML
> Schema. With my proposal, TREX could consider two datatypes equivalent if
> they have the same name and same set of parameters.
There lies a trap. Those two might be different types.
<data type="xsd:qname">
<param name="enumeration" value="foo:foo" />
</data>
<data type="xsd:qname">
<param name="enumeration" value="foo:foo" />
</data>
You can't tell whether "foo:foo" is a qname unless you know something
about xsd:qname.
But one can certainly argue that this is a corner case.
--
Kohsuke KAWAGUCHI +1 650 786 0721
Sun Microsystems