Bug 5175 - XML Schema include support only goes one level deep
Summary: XML Schema include support only goes one level deep
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: Schema-Structures (show other bugs)
Version: 1.4
Hardware: All All
: P3 major
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-28 19:19 UTC by Zhimin Zhan
Modified: 2005-03-20 17:06 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhimin Zhan 2001-11-28 19:19:02 UTC
In my main.xsd, it includes contact.xsd
<include schemaLocation="http://www.example.com/schemas/contact.xsd"/>

In contact.xsd, it includes address.xsd
<include schemaLocation="http://www.example.com/schemas/address.xsd"/>

Xerces failed to load address.xsd, the validation failed.
When I moved everything in address.xsd -> contact.xsd (remove include element), 
it worked.
Comment 1 Zhimin Zhan 2001-11-28 20:35:00 UTC
Sorry, I just realized that the version came with Xalan is Xerces 1.4. So the 
version I refered should be Xerces 1 then.
Comment 2 David A. Riggs 2001-12-05 11:39:37 UTC
I'm doing the same thing with included schemas deeper than 2 levels, and
it works fine for me. Xerces-J 1.4.4 fixed a bug with the way base URIs
for included schemas were resolved (bug id 4459), perhaps this is the
problem you're running into.