Hi Folks,
I’d like for you to put on your designer hat please.
Suppose I have an XML schema document A that imports B and C. Both B and C import D. And D imports A.

I want to create a tool. I feed into the tool the main schema document (e.g., schema document A) and it outputs a sequence of schema documents:
<xs:schema> ... A ...
</xs:schema>
<xs:schema> ... B ...
</xs:schema>
<xs:schema> ... C ...
</xs:schema>
<xs:schema> ... D ...
</xs:schema>
However, I want the tool to also output the filename of each schema document. So, should the tool output a sequence of (filename, schema document) pairs?
A.xsd
<xs:schema> ... A ...
</xs:schema>
B.xsd
<xs:schema> ... B ...
</xs:schema>
C.xsd
<xs:schema> ... C ...
</xs:schema>
D.xsd
<xs:schema> ... D ...
</xs:schema>
Is that how you would do it?
/Roger