Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Handling xsd:import in XSLT

843834Jun 27 2005 — edited Jun 28 2005
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2005
Added on Jun 27 2005
11 comments
318 views