Dear xerces-j users,

I am stuck in my research by an error message from the xerces XML schema parser.

I wanted to read the archives of the mailing list to see if someone had the same problem
but the archives seem to be unreachable.


I try to load an XML schema because I want to manipulate it afterwards
but I always have the same error:
[Error] address.xsd:4:48: src-redefine.3.1: the targetNamespace of the schema 'http://www.example.com/IPO' must be identical to that of the redefining schema 'http://www.example.com/IPO'.


The schema I try to load (ipo.xsd) redefines a part of another schema (address.xsd)

The clause of the src-redefine.3.1 in XML Schema Part 1: Structures says
that both TargetNamespace of the two schemata have to be the same.
===================================================================
3.1 SII has a targetNamespace [attribute], and its âactual value is identical to the âactual value of the targetNamespace [attribute] of SIIâ (which must have such an [attribute]).
===================================================================


ipo.xsd is located at: http://www-clips.imag.fr/geta/services/dml/ipo.xsd
address.xsd is located at: http://www-
clips.imag.fr/geta/services/dml/address.xsd

They both have the same TargetNamespace attribute:
============================================================
<schema targetNamespace="http://www.example.com/IPO";
        xmlns="http://www.w3.org/2001/XMLSchema";
        xmlns:ipo="http://www.example.com/IPO";>
============================================================
I even have done a copy/paste to ensure it.

I though that maybe the actual value is not the same but I don't undestand
exaclty why there can be an actual value and another value.


Here is also my java code:
===================================================================
import org.apache.xerces.xni.parser.XMLInputSource;
import org.apache.xerces.impl.xs.XMLSchemaLoader;
...
...
XMLInputSource myGrammarSource = new XMLInputSource("http://www.example.com/IPO";,
"http://www-clips.imag.fr/geta/services/dml/ipo.xsd";,
"");
XMLSchemaLoader myLoader = new XMLSchemaLoader();
myLoader.loadGrammar(myGrammarSource);



===================================================================


Does anyone have an idea ?

Thank you very much in advance for your help !

Regards, Mathieu


Mathieu MANGEOT-LEREBOURS Visiting Researcher National Institute of Informatics Hitotsubashi 2-1-2-1913 Chiyoda-ku Tokyo 101-8430 Japan Tel: +81-3-4212-2672 Fax: +81-3-3556-1916 http://www-clips.imag.fr/geta/mathieu.mangeot Papillon project: http://www.papillon-dictionary.org


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to