The prefix "target" in xmlns:target="http://www.example.com/name"
is nothing special. How would a schema processor know that you wanted that to be the target namespace for your schema? targetNamespace does just that - it declares the namespace that components of your schema belong to.
N.B. Not everything in the schema document goes into the targetNamespace. Note attributes "elementFormDefault" and "attributeFormDefault" on the "schema" element and also attribute "form" on the "element" and "attribute" elements.