Thanks, that's a nice way to test, it must something else then, perhaps in the way exist-db uses xerces.
And for xml.xsd: you are right of course, but I stick to what the conversion from TEI odd to xsd gives me. Bye, Eduard -----Original Message----- From: Mukul Gandhi <muk...@apache.org> Reply-To: j-users@xerces.apache.org, muk...@apache.org To: j-users@xerces.apache.org Subject: Re: bug in 2.12.1 importing xsd? Date: Sun, 02 Aug 2020 10:53:07 +0530 On Thu, Jul 30, 2020 at 8:47 PM Eduard Drenth < edre...@fryske-akademy.nl> wrote: > From exist-db, using xerces 2.12.1 I see: > > The namespace attribute, ' > http://www.fryske-akademy.org/linguistics/2.0', of an <import> > element information item must be identical to the targetNamespace > attribute, 'http://www.tei-c.org/ns/1.0', of the imported document. > > The headers of the xsd's are correct as far as I can see: > > tdb.xsd: > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr=" > http://www.isocat.org/ns/dcr" xmlns:l=" > http://www.fryske-akademy.org/linguistics/2.0" xmlns:tei=" > http://www.tei-c.org/ns/1.0" elementFormDefault="qualified" > targetNamespace="http://www.tei-c.org/ns/1.0"> > <xs:import namespace=" > http://www.fryske-akademy.org/linguistics/2.0" > schemaLocation="l.xsd"/> > <xs:import namespace="http://www.isocat.org/ns/dcr" > schemaLocation="dcr.xsd"/> > <xs:import namespace="http://www.w3.org/XML/1998/namespace" > schemaLocation="xml.xsd"/> > > l.xsd: > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > elementFormDefault="qualified" targetNamespace=" > http://www.fryske-akademy.org/linguistics/2.0" xmlns:dcr=" > http://www.isocat.org/ns/dcr" xmlns:l=" > http://www.fryske-akademy.org/linguistics/2.0" xmlns:tei=" > http://www.tei-c.org/ns/1.0"> > <xs:import namespace="http://www.isocat.org/ns/dcr" > schemaLocation="dcr.xsd"/> > <xs:import namespace="http://www.tei-c.org/ns/1.0" > schemaLocation="tdb.xsd"/> > <xs:import namespace="http://www.w3.org/XML/1998/namespace" > schemaLocation="xml.xsd"/> > > > xml.xsd: > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > elementFormDefault="qualified" targetNamespace=" > http://www.w3.org/XML/1998/namespace" xmlns:dcr=" > http://www.isocat.org/ns/dcr" xmlns:l=" > http://www.fryske-akademy.org/linguistics/2.0" xmlns:tei=" > http://www.tei-c.org/ns/1.0"> > <xs:import namespace="http://www.fryske-akademy.org/linguistics/2.0 > " schemaLocation="l.xsd"/> > <xs:import namespace="http://www.isocat.org/ns/dcr" > schemaLocation="dcr.xsd"/> > <xs:import namespace="http://www.tei-c.org/ns/1.0" > schemaLocation="tdb.xsd"/> > > > dcr.xsd: > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > elementFormDefault="qualified" targetNamespace=" > http://www.isocat.org/ns/dcr" xmlns:dcr="http://www.isocat.org/ns/dcr > " xmlns:l="http://www.fryske-akademy.org/linguistics/2.0" xmlns:tei=" > http://www.tei-c.org/ns/1.0"> > <xs:import namespace="http://www.fryske-akademy.org/linguistics/2.0 > " schemaLocation="l.xsd"/> > <xs:import namespace="http://www.tei-c.org/ns/1.0" > schemaLocation="tdb.xsd"/> > <xs:import namespace="http://www.w3.org/XML/1998/namespace" > schemaLocation="xml.xsd"/> When I run following command from Xerces-J 2.12.1, on each of your XSD documents mentioned above (I do add </xs:schema> at bottom, to each of your XSD documents), java jaxp.SourceValidator -a <xsd doc file name> -f I don't get any error on any of your XSD documents. Therefore, it's not a bug for me. Also, your xml.xsd document seems to be wrong. Shouldn't it be just the following XSD document: https://www.w3.org/2001/03/xml.xsd ? -- Eduard Drenth, Software Architekt edre...@fryske-akademy.nl Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (privé) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder
signature.asc
Description: This is a digitally signed message part