bug in 2.12.1 importing xsd?

Eduard Drenth <[email protected]> Thu, 30 Jul 2020 15:14:17 +0000
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <[email protected]>
--=-z42T49gRR0fK2ANqljjn
Content-Type: multipart/alternative; boundary="=-a2s/ewP4qXLBLnKNIzdW"


--=-a2s/ewP4qXLBLnKNIzdW
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dear all,

=46rom 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=3D"http://www.w3.org/2001/XMLSchema" xmlns:dcr=3D"
http://www.isocat.org/ns/dcr" xmlns:l=3D"
http://www.fryske-akademy.org/linguistics/2.0" xmlns:tei=3D"
http://www.tei-c.org/ns/1.0" elementFormDefault=3D"qualified"
targetNamespace=3D"http://www.tei-c.org/ns/1.0">
   <xs:import namespace=3D"http://www.fryske-akademy.org/linguistics/2.0"
schemaLocation=3D"l.xsd"/>
   <xs:import namespace=3D"http://www.isocat.org/ns/dcr"
schemaLocation=3D"dcr.xsd"/>
   <xs:import namespace=3D"http://www.w3.org/XML/1998/namespace"
schemaLocation=3D"xml.xsd"/>

l.xsd:

<xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"
elementFormDefault=3D"qualified" targetNamespace=3D"
http://www.fryske-akademy.org/linguistics/2.0" xmlns:dcr=3D"
http://www.isocat.org/ns/dcr" xmlns:l=3D"
http://www.fryske-akademy.org/linguistics/2.0" xmlns:tei=3D"
http://www.tei-c.org/ns/1.0">
  <xs:import namespace=3D"http://www.isocat.org/ns/dcr"
schemaLocation=3D"dcr.xsd"/>
  <xs:import namespace=3D"http://www.tei-c.org/ns/1.0"
schemaLocation=3D"tdb.xsd"/>
  <xs:import namespace=3D"http://www.w3.org/XML/1998/namespace"
schemaLocation=3D"xml.xsd"/>

xml.xsd:

<xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"
elementFormDefault=3D"qualified" targetNamespace=3D"
http://www.w3.org/XML/1998/namespace" xmlns:dcr=3D"
http://www.isocat.org/ns/dcr" xmlns:l=3D"
http://www.fryske-akademy.org/linguistics/2.0" xmlns:tei=3D"
http://www.tei-c.org/ns/1.0">
  <xs:import namespace=3D"http://www.fryske-akademy.org/linguistics/2.0"
schemaLocation=3D"l.xsd"/>
  <xs:import namespace=3D"http://www.isocat.org/ns/dcr"
schemaLocation=3D"dcr.xsd"/>
  <xs:import namespace=3D"http://www.tei-c.org/ns/1.0"
schemaLocation=3D"tdb.xsd"/>

dcr.xsd:

<xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"
elementFormDefault=3D"qualified" targetNamespace=3D"
http://www.isocat.org/ns/dcr" xmlns:dcr=3D"http://www.isocat.org/ns/dcr"
xmlns:l=3D"http://www.fryske-akademy.org/linguistics/2.0" xmlns:tei=3D"
http://www.tei-c.org/ns/1.0">
  <xs:import namespace=3D"http://www.fryske-akademy.org/linguistics/2.0"
schemaLocation=3D"l.xsd"/>
  <xs:import namespace=3D"http://www.tei-c.org/ns/1.0"
schemaLocation=3D"tdb.xsd"/>
  <xs:import namespace=3D"http://www.w3.org/XML/1998/namespace"
schemaLocation=3D"xml.xsd"/>

Perhaps this is a bug?

Hope to hear what you think, regards, Eduard
--=20
Eduard Drenth, Software Architekt

[email protected]

Doelestrjitte 8
8911 DX  Ljouwert
+31 58 234 30 47
+31 62 094 34 28 (priv=C3=A9)

skype: eduarddrenth
https://github.com/eduarddrenth
frisian.eu
gpg: https://pgp.surfnet.nl/pks/lookup?search=3Deduarddrenth


Op freed bin ik th=C3=BAs/wurkje ik minder




--=-a2s/ewP4qXLBLnKNIzdW
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html dir=3D"ltr"><head></head><body style=3D"text-align:left; direction:lt=
r;"><div><span><div>Dear all,</div><div><br></div><div>From exist-db, using=
 xerces 2.12.1 I see:</div><div><br></div><div>The namespace attribute, '<a=
 href=3D"http://www.fryske-akademy.org/linguistics/2.0'">http://www.fryske-=
akademy.org/linguistics/2.0'</a>, of an &lt;import&gt; element information =
item must be identical to the targetNamespace attribute, '<a href=3D"http:/=
/www.tei-c.org/ns/1.0'">http://www.tei-c.org/ns/1.0'</a>, of the imported d=
ocument.</div><div><br></div><div>The headers of the xsd's are correct as f=
ar as I can see:</div><div><br></div><div>tdb.xsd:</div><div><br></div><div=
>&lt;xs:schema xmlns:xs=3D"<a href=3D"http://www.w3.org/2001/XMLSchema">htt=
p://www.w3.org/2001/XMLSchema</a>" xmlns:dcr=3D"<a href=3D"http://www.isoca=
t.org/ns/dcr">http://www.isocat.org/ns/dcr</a>" xmlns:l=3D"<a href=3D"http:=
//www.fryske-akademy.org/linguistics/2.0">http://www.fryske-akademy.org/lin=
guistics/2.0</a>" xmlns:tei=3D"<a href=3D"http://www.tei-c.org/ns/1.0">http=
://www.tei-c.org/ns/1.0</a>" elementFormDefault=3D"qualified" targetNamespa=
ce=3D"<a href=3D"http://www.tei-c.org/ns/1.0">http://www.tei-c.org/ns/1.0</=
a>"&gt;</div><div>&nbsp;&nbsp;&nbsp;&lt;xs:import namespace=3D"<a href=3D"h=
ttp://www.fryske-akademy.org/linguistics/2.0">http://www.fryske-akademy.org=
/linguistics/2.0</a>" schemaLocation=3D"l.xsd"/&gt;</div><div>&nbsp;&nbsp;&=
nbsp;&lt;xs:import namespace=3D"<a href=3D"http://www.isocat.org/ns/dcr">ht=
tp://www.isocat.org/ns/dcr</a>" schemaLocation=3D"dcr.xsd"/&gt;</div><div>&=
nbsp;&nbsp;&nbsp;&lt;xs:import namespace=3D"<a href=3D"http://www.w3.org/XM=
L/1998/namespace">http://www.w3.org/XML/1998/namespace</a>" schemaLocation=
=3D"xml.xsd"/&gt;</div><div><br></div><div>l.xsd:</div><div><br></div><div>=
&lt;xs:schema xmlns:xs=3D"<a href=3D"http://www.w3.org/2001/XMLSchema">http=
://www.w3.org/2001/XMLSchema</a>" elementFormDefault=3D"qualified" targetNa=
mespace=3D"<a href=3D"http://www.fryske-akademy.org/linguistics/2.0">http:/=
/www.fryske-akademy.org/linguistics/2.0</a>" xmlns:dcr=3D"<a href=3D"http:/=
/www.isocat.org/ns/dcr">http://www.isocat.org/ns/dcr</a>" xmlns:l=3D"<a hre=
f=3D"http://www.fryske-akademy.org/linguistics/2.0">http://www.fryske-akade=
my.org/linguistics/2.0</a>" xmlns:tei=3D"<a href=3D"http://www.tei-c.org/ns=
/1.0">http://www.tei-c.org/ns/1.0</a>"&gt;</div><div>&nbsp; &lt;xs:import n=
amespace=3D"<a href=3D"http://www.isocat.org/ns/dcr">http://www.isocat.org/=
ns/dcr</a>" schemaLocation=3D"dcr.xsd"/&gt;</div><div>&nbsp; &lt;xs:import =
namespace=3D"<a href=3D"http://www.tei-c.org/ns/1.0">http://www.tei-c.org/n=
s/1.0</a>" schemaLocation=3D"tdb.xsd"/&gt;</div><div>&nbsp; &lt;xs:import n=
amespace=3D"<a href=3D"http://www.w3.org/XML/1998/namespace">http://www.w3.=
org/XML/1998/namespace</a>" schemaLocation=3D"xml.xsd"/&gt;</div><div></div=
><div><br></div><div>xml.xsd:</div><div><br></div><div>&lt;xs:schema xmlns:=
xs=3D"<a href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/X=
MLSchema</a>" elementFormDefault=3D"qualified" targetNamespace=3D"<a href=
=3D"http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namesp=
ace</a>" xmlns:dcr=3D"<a href=3D"http://www.isocat.org/ns/dcr">http://www.i=
socat.org/ns/dcr</a>" xmlns:l=3D"<a href=3D"http://www.fryske-akademy.org/l=
inguistics/2.0">http://www.fryske-akademy.org/linguistics/2.0</a>" xmlns:te=
i=3D"<a href=3D"http://www.tei-c.org/ns/1.0">http://www.tei-c.org/ns/1.0</a=
>"&gt;</div><div>&nbsp; &lt;xs:import namespace=3D"<a href=3D"http://www.fr=
yske-akademy.org/linguistics/2.0">http://www.fryske-akademy.org/linguistics=
/2.0</a>" schemaLocation=3D"l.xsd"/&gt;</div><div>&nbsp; &lt;xs:import name=
space=3D"<a href=3D"http://www.isocat.org/ns/dcr">http://www.isocat.org/ns/=
dcr</a>" schemaLocation=3D"dcr.xsd"/&gt;</div><div>&nbsp; &lt;xs:import nam=
espace=3D"<a href=3D"http://www.tei-c.org/ns/1.0">http://www.tei-c.org/ns/1=
.0</a>" schemaLocation=3D"tdb.xsd"/&gt;</div><div></div><div><br></div><div=
>dcr.xsd:</div><div><br></div><div>&lt;xs:schema xmlns:xs=3D"<a href=3D"htt=
p://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" elemen=
tFormDefault=3D"qualified" targetNamespace=3D"<a href=3D"http://www.isocat.=
org/ns/dcr">http://www.isocat.org/ns/dcr</a>" xmlns:dcr=3D"<a href=3D"http:=
//www.isocat.org/ns/dcr">http://www.isocat.org/ns/dcr</a>" xmlns:l=3D"<a hr=
ef=3D"http://www.fryske-akademy.org/linguistics/2.0">http://www.fryske-akad=
emy.org/linguistics/2.0</a>" xmlns:tei=3D"<a href=3D"http://www.tei-c.org/n=
s/1.0">http://www.tei-c.org/ns/1.0</a>"&gt;</div><div>&nbsp; &lt;xs:import =
namespace=3D"<a href=3D"http://www.fryske-akademy.org/linguistics/2.0">http=
://www.fryske-akademy.org/linguistics/2.0</a>" schemaLocation=3D"l.xsd"/&gt=
;</div><div>&nbsp; &lt;xs:import namespace=3D"<a href=3D"http://www.tei-c.o=
rg/ns/1.0">http://www.tei-c.org/ns/1.0</a>" schemaLocation=3D"tdb.xsd"/&gt;=
</div><div>&nbsp; &lt;xs:import namespace=3D"<a href=3D"http://www.w3.org/X=
ML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>" schemaLocation=
=3D"xml.xsd"/&gt;</div><div></div><div><br></div><div>Perhaps this is a bug=
?</div><div><br></div><div>Hope to hear what you think, regards, Eduard</di=
v><pre>-- <br></pre><div style=3D"width: 71ch;">Eduard Drenth, Software Arc=
hitekt</div><div style=3D"width: 71ch;"><br></div><div style=3D"width: 71ch=
;"><a href=3D"mailto:[email protected]">[email protected]</=
a></div><div style=3D"width: 71ch;"><br></div><div style=3D"width: 71ch;">D=
oelestrjitte 8</div><div style=3D"width: 71ch;">8911 DX&nbsp; Ljouwert</div=
><div style=3D"width: 71ch;">+31 58 234 30 47</div><div style=3D"width: 71c=
h;">+31 62 094 34 28 (priv=C3=A9)</div><div style=3D"width: 71ch;"><br></di=
v><div style=3D"width: 71ch;">skype: eduarddrenth</div><div style=3D"width:=
 71ch;"><a href=3D"https://github.com/eduarddrenth">https://github.com/edua=
rddrenth</a></div><div style=3D"width: 71ch;">frisian.eu</div><div style=3D=
"width: 71ch;">gpg:&nbsp;<a href=3D"https://pgp.surfnet.nl/pks/lookup?searc=
h=3Deduarddrenth">https://pgp.surfnet.nl/pks/lookup?search=3Deduarddrenth</=
a><br><br></div><div style=3D"width: 71ch;"><br></div><div style=3D"width: =
71ch;">Op freed bin ik th=C3=BAs/wurkje ik minder</div><div style=3D"width:=
 71ch;"><br></div><div style=3D"width: 71ch;"><br></div><div style=3D"width=
: 71ch;"><br></div></span></div></body></html>

--=-a2s/ewP4qXLBLnKNIzdW--

--=-z42T49gRR0fK2ANqljjn
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEJgukPkdqI5csS0v3Bl74Kh4CzEMFAl8i48kACgkQBl74Kh4C
zEMF6Af/XkMW6BQ0Fz6byHUyz7PKJIAYWXCMojN+rtBX6NARQbokVQkThJywnJgg
8mAuYiTsSFutCk1NYrSZ6R+Ramq96WK1ho7+z50GdcOcNvVBwkzB0NzmjPEGrq7d
vlB4+LjP6c7EfoslI08DCVICpzWmebEr/Csfvw/CJqxBq6bly9Fe+bHqfq86feyg
0j5IxakEIHxgT8BXHyN55ulnrs2a68/4dsF/F15lE1gLPdfY+IgsoCOJXj2d3lsT
OpE6vkT6z6wBQHBaIkkSPN1e5JzyabXCoYe/+vnrp5YFStaV7nf3md5tcUkDR5a6
NZRt8P5h/HcI150/Xep8/viN1Kjztw==
=Z4S9
-----END PGP SIGNATURE-----

--=-z42T49gRR0fK2ANqljjn--