How can I set an xsd:element type to be the XMLSchema (which defines the structure of XSD files)? Is it even possible?
For example, I need a XML file which lists multiple XSDs under its root element:
<schemas xmlns:xs=''>
<xs:schema...>
<xs:element name='...'/>
</xs:schema>
<xs:schema...>
</xs:schema>
</schemas>
The schema of this XML would look like this:
<xs:schema xmlns:xs=''>
<xs:element name='schemas'>
<xs:complexType>
<xs:sequence>
<xs:element name='schema' type='xs:schema'
minoccurs='0' maxoccurs='unbounded'/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Of course, there is no such type as xs:schema. How can I make this work?