You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/01/10 19:26:13 UTC
DO NOT REPLY [Bug 5757] -
Parser cannot handle circular inclusion of schemas
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5757>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5757
Parser cannot handle circular inclusion of schemas
sandygao@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From sandygao@ca.ibm.com 2002-01-10 10:26 -------
How did you validate the instance?
parser.parse("C:\test\circ1.xml")
or
parser.parse("http://localhost/test/circ1.xml")
I suspect it's the former, according to the error message. Now you are
referring to "circtest1.xsd" in two ways: one from the instance document, so
the location is relative to c":\test\"; one from "circtest2.xsd", and the
location is relative to "http://localhost/test/". There is no way for the
parser to tell that the two references to "circtest1.xsd" are in fact the same.
Could you try to parse the instance using the second way above? Or you can
modify the xsd files to use Windoes paths, instead of "http://...". In fact, if
you are sure that the two xsd files are always in the same folder, you can
simply say:
<xs:include schemaLocation="circtest1.xsd"/> and
<xs:include schemaLocation="circtest2.xsd"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org