You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by John Utz <ut...@singingfish.com> on 2002/01/31 04:36:07 UTC

ASBuilder: xerces-j 2.0.0: changes between xerces-j 2 beta4 and xerces-j 2.0.0 have caused many new errors to appear when i run ASBuilder against the mpeg7 schema

greetings;

thanks to all of the developers that have contributed to making the new
release a reality!

the Mpeg7 schema that i have been working with since december had a small
collection of errors that i was attempting to resolve.

but as soon as i installed 2.0.0, the errors jumped into the 100's!

now, i am *perfectly* *willing* to believe that the parser is now sniffing
out problems that it didnt notice before.

but it seems like the parser has a bug as well!

if i have a toplevel schema that imports a namespace:

<schema targetNamespace="urn:mpeg:mpeg7:schema:2001" 
        xmlns="http://www.w3.org/2001/XMLSchema" 
        xmlns:mpeg7="urn:mpeg:mpeg7:schema:2001" 
        xmlns:xml="http://www.w3.org/XML/1998/namespace" 
	elementFormDefault="qualified" attributeFormDefault="unqualified">

	<annotation>
	  <documentation>
	    This document contains main wrapper of MPEG-7 schema
	   </documentation>
	</annotation>
	<import namespace="http://www.w3.org/XML/1998/namespace" 
	    schemaLocation="./xml-1998.xsd"/>
	<include schemaLocation="./ddl-2001.xsd"/>
	<include schemaLocation="./mds-2001.xsd"/>
</schema>

shouldnt the included schema's enjoy the benefits of that imported
namespace? they did in beta4, and they did in *CVS* on january 20th when i
last built the tree.

but now i get the following error:

bash-2.04$ java dom.ASBuilder -f -a Mpeg7-2001.xsd
[Error] :-1:-1: src-resolve.4: Components from namespace
'http://www.w3.org/XML/1998/namespace' are not referenceable from schema
document 'file:///sfusers/utz/mpeg7Schema2001/mds-2001.xsd'.

this particular error goes away if i cut and paste the <import... line in
the parent schema doc into the included file that the parser is
complaining about,file:///sfusers/utz/mpeg7Schema2001/mds-2001.xsd

once i do this, i go from 100's of errors down to about 30. but i dont
think that i should need to import the namespace in each include file. am
i wrong?

tnx!

johnu

ps: the remaining 30 errors are a problem for another day. let's decide if
the multiple imports is a problem first!


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org