Parser doesnt support setschema not validating
Schema components have a name, which is a qualified name (just like an element or attribute in an XML instance).
A qualified name has three parts: the namespace URI, the namespace prefix, and the local part.
I would say that's your proposed design, not your requirement.
declaration you are showing has a name, and the xsl:result-document instruction references it by name.
Are you sure that is also true in the other stylesheet?
For example, in the name xs:integer, the namespace URI is the prefix is "xs", and the local part is "integer".
The prefix doesn't matter as far as matching is concerned, for example this type is sometimes written as "xsd:integer", but it's the same thing so long as the prefix relates to the same namespace URI.
Michael Kay element, but the generated DOCTYPE commands are different for the two.