I'm trying to generate an input form from an XML schema using XSL.
Unfortunatly, the schema is spread out over several files and uses xsd:import to piece the whole thing together. So, when I try to parse it, all I get is the elements declared in the first file, and none of the includes.
How can I get around that?
The file looks like:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="restOfSchema.xsd"/>
<xs:element ref="rootElement"/>
</xs:schema>
And I get:
<html>
<body>
<form method="post" action="next.html">
<h1>rootElement:</h1>
<p></p>
</form>
</body>
</html>
There should be several sub elements and such, but as you can see, they don't make it.