Lists Home |
Date Index |
David Orchard wrote:
> Why is that so? Doesn't the URN spec allow names to define their own
> equivalence rules, such as %44 is different than D?
It's not the URN spec that's at issue here. It's the namespaces spec.
Namespaces in XML 1.1 is quite explicit about this:
The IRI references below are all different for the purposes of
identifying namespaces, since they differ in case:
The IRI references below are also all different for the purposes of
As are these:
The original namespaces spec is not quite as explicit about this, but
the practice is the same.
But the URI spec does come into this as well, and the URI spec says that
http://www.example.org/~wilbur and http://www.example.org/%7ewilbur are
the same. So we have to resolve percent escapes before extracting the
namespace names from the qname URN. There's a nasty impedance mismatch
here, though fortunately it doesn't come up too often in practice yet.
However, it probably will soon as IRIs using non-ASCII characters become
more commonly used for namespace names.
Elliotte Rusty Harold email@example.com
XML in a Nutshell 3rd Edition Just Published!