What is targetNamespace
's function?
<schema xmlns="http://www.w3.org/2001/SchemaXML"
targetNamespace="http://www.example.com/name"
xmlns:target="http://www.example.com/name">
I understand that xmlns="http://www.w3.org/2001/SchemaXML
defines the Schema XML namespace.
I also understand that xmlns:target="http://www.example.com/name"
defines the namespace for my own vocabulary if I'm creating my own schema using the prefix "target"; this acts as a proxy or placeholder for the URI http://www.example.com/name
.
That seems like enough to define the needed boundries and vocabularies of namespace participants. So why do I need a targetNamespace
attribute which duplicates the http://www.example.com/name
namespace?