I have an XSD file describing a schema.
The root element in the schema requires an attribute that is defined in another xsd (that I have the url for). Specifically, I want the root element of a document to require the attribute:
xsi:noNamespaceSchemaLocation="schema/SomeSchema.xs"
where
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
How do I describe this in the documents xsd?
xsd.exe is based on XSD 1.0 spec; that spec doesn't work with references to xsi:attributes.
However, this should work with an XSD 1.1 processor:
The reason why you can't make it work with attributes from the XSI namespace in XSD 1.0 is because they are "special". XSD 1.1 relaxed some of that.