I would like to create an XSD that defines an attribute which can be placed on elements from other schemas, or elements that are not in any schema. For example, the schema
Consider xsi:nil, xsi:schemaLocation and xsi:noNamespaceSchemaLocation. The answer is yes.
It also wouldn't have taken long to try it out and see.
You were missing a targetNamespace in the schema. Try this: