Re: Seek for advice with Xerces xml-schema-1.1-tests

Svante Schubert <[email protected]> Thu, 12 Sep 2024 18:45:58 +0200
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <CAHNbw8m1eWRUtJPzFRcRZc6R7JDca2H5mhWeEm904i1Ek4ciMg@mail.gmail.com>
--00000000000015ed8d0621eed88a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Can anyone please provide feedback if it can be produced that the
AllXercesXSD11Tests
<https://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/src/org/apach=
e/xerces/tests/AllXercesXSD11Tests.java>
are failing?

   1. for the downloaded Xerces 1.1 version
   <https://dlcdn.apache.org//xerces/j/binaries/Xerces-J-bin.2.12.2-xml-sch=
ema-1.1.zip>
   ?
   2. for the Xerces 1.1 dev GitHub branch?
   3. that the earlier-mentioned test should fail as it did due to the
   duplicated named global element declaration?
   Sorry, but I did earlier a shell-game trick to myself and added not an
   official Xerces1.1.jar but my previous AllXercesXSD11Tests
   <https://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/src/org/ap=
ache/xerces/tests/AllXercesXSD11Tests.java>
only
   failed correctly in my local test branch, where I added prefix support f=
or
   the loaded XSDs at run-time...still, tests fail for the official Xerces =
1.1
   release.

I tested now two different official Xerces 1.1 versions (and added Netbeans
IDE build environment to two commits of my prototype branch smoke-testing)

   1. a Netbeans environment using the downloaded Xerces 1.1 version
   <https://github.com/apache/xerces-j/commit/1930cbe2ec1a4d5e4df4a685c60b6=
6a86745e285>
   2. a Netbeans environment using the Xerces 1.1 dev GitHub branch
   <https://github.com/apache/xerces-j/commit/57dcf82032d874c9bed5851349635=
e7c0a1131f1>

Netbeans build and debug environment is easily addable for the
xml-schema-1.1-tests GitHub branch of Xerces by creating a new
Netbeans project and

   - In case Netbeans debug support for downloaded Xerces 1.1 ZIP
   <https://dlcdn.apache.org//xerces/j/binaries/Xerces-J-bin.2.12.2-xml-sch=
ema-1.1.zip>
   :
   Add all JARs from the downloaded ZIP of Xerces 1.1 to the classpath -
   switch to JDK 8 (as afterwards JDKs API changed, e.g. tools.jar not
   available)


   - In case Netbeans debug support for Github branch xml-schema-1.1-dev:
   Checkout from Github the xml-schema-1.1-dev branch and add in Netbeans
   src and sample as source directories, use JDK 8 and add the JARs from th=
e
   tools directory (aside from XercesImp.jar), which will be built.
   Afterwards, add the newly created Xerces JAR and the previously added
   JARs to your other xml-schema-1.1-tests Netbeans project.
   JUnit and Hamcrest will be added by Netbeans automatically when problems
   are resolved

Quite cumbersome, I think it's about time to add Maven support... :-)

Two questions in the end regarding the current GitHub branch structure:

   1. Why is the xml-schema-1.1-dev GitHub branch not placed at the top of
   the main branch? XSD 1.1 specs states to be backward compatible with XSD
   1.0.
   2. Why are the tests of the xml-schema-1.1-tests GitHub branch not added
   as well to the main branch?
   3. In case a Maven to build (and test) is being added, regression tests
   could be made on GitHub for every commit to keep the branches from becom=
ing
   red.

Currently, there are multiple versions of sources for Xerces
The different Xerces sources able to be downloaded as ZIP and the
differences between Subversion and the GitHub branches make it complex for
newcomers.
Is there still a reason that prevents these minimize the amount of Xerces
sources, I suggest the main branch of GitHub as the latest and greatest
source, using Git labels for releases.

Thanks for any feedback,
Svante


On Thu, 12 Sept 2024 at 13:58, Svante Schubert <[email protected]>
wrote:

> PS:
> To ease reproduction, I have added a stack trace (below) - note below is
> just the German-translated version of the error message mentioned earlier=
:
> "*sch-props-correct.2: An XSD schema cannot contain two global components
> with the same name.*"
> and the SaxParseException is already thrown when creating the Schema, eve=
n
> before the test:
>
> https://github.com/svanteschubert/xerces-j/blob/smoke-testing/src/org/apa=
che/xerces/tests/ConditionalInclusionTests.java#L81
>
> org.xml.sax.SAXParseException; systemId:
> file:///E:/dev/tausch/xml/xsd-debug/xml-schema-1.1-tests/data/version-con=
trol/test37.xsd;
> lineNumber: 7; columnNumber: 46;
> *sch-props-correct.2: Ein Schema kann nicht zwei globale Komponenten mit
> demselben Namen enthalten. Dieses Schema enth=EF=BF=BDlt zwei Vorkommen v=
on
> ',test'.*
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPars=
eException(ErrorHandlerWrapper.java:204)
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHa=
ndlerWrapper.java:135)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLE=
rrorReporter.java:396)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSc=
hemaErr(XSDHandler.java:4204)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSc=
hemaError(XSDHandler.java:4187)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.checkFor=
DuplicateNames(XSDHandler.java:3820)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.buildGlo=
balNameRegistries(XSDHandler.java:1362)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSch=
ema(XSDHandler.java:651)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XML=
SchemaLoader.java:610)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XM=
LSchemaLoader.java:569)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XM=
LSchemaLoader.java:535)
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSc=
hema(XMLSchemaFactory.java:269)
> at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:638)
> * at
> org.apache.xerces.tests.ConditionalInclusionTests.testVersionControl3(Con=
ditionalInclusionTests.java:81)
> <https://github.com/svanteschubert/xerces-j/blob/smoke-testing/src/org/ap=
ache/xerces/tests/ConditionalInclusionTests.java#L81>*
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java=
:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI=
mpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at junit.framework.TestCase.runTest(TestCase.java:177)
> at junit.framework.TestCase.runBare(TestCase.java:142)
> at junit.framework.TestResult$1.protect(TestResult.java:122)
> at junit.framework.TestResult.runProtected(TestResult.java:142)
> at junit.framework.TestResult.run(TestResult.java:125)
> at junit.framework.TestCase.run(TestCase.java:130)
> at junit.framework.TestSuite.runTest(TestSuite.java:241)
> at junit.framework.TestSuite.run(TestSuite.java:236)
> at junit.framework.TestSuite.runTest(TestSuite.java:241)
> at junit.framework.TestSuite.run(TestSuite.java:236)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTes=
tRunner.java:535)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnit=
TestRunner.java:1197)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTe=
stRunner.java:1042)
>
> On Thu, 12 Sept 2024 at 08:24, Svante Schubert <[email protected]=
>
> wrote:
>
>> Dear Xerces user group,
>>
>> Let me add the specification reference to the invalidness of the test
>> file
>> <https://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/data/versi=
on-control/test37.xsd#L5>
>> : https://www.w3.org/TR/xmlschema11-1/#concepts-nameSymbolSpaces
>> *"But it is not possible for ... two distinct top-level element
>> declarations, to share the name my:abc"*
>>
>> If the build were in Maven and nightly tests were run by GitHub, I would
>> not ask this question. Perhaps it is worth considering a switch from Ant=
 to
>> Maven?
>> In general, invalid test files should be explicitly marked as such like
>> within a subfolder 'invalid'.
>> Would be helpful to download groups of test files from Maven, like
>> versions of deliverables as well (but this might be a topic for Maven's
>> user's list)...
>>
>> Still, I believe I am doing an oversight...
>>
>> Best regards,
>> Svante
>>
>> PS: Used my Apache email now and am uncertain if I should have started o=
n
>> the dev list right away instead of users - I would join these lists for
>> software in general... (as you want to users become developers..)
>>
>> On Wed, 11 Sept 2024 at 15:25, Svante Schubert <[email protected]=
m>
>> wrote:
>>
>>> Dear experts,
>>>
>>> I am in need of some advice using the new Xerces xml-schema-1.1-tests
>>> <https://github.com/apache/xerces-j/tree/xml-schema-1.1-tests>.
>>>
>>> The test suite of org.apache.xerces.tests.AllXercesXSD11Tests
>>> <https://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/src/org/a=
pache/xerces/tests/AllXercesXSD11Tests.java#L31>
>>> fails for me using my Xerces Jar from a build of Xerces 1.1 GitHub
>>> branch <https://github.com/apache/xerces-j/tree/xml-schema-1.1-dev> and
>>> likely I am missing something obvious.
>>> The error given is "*sch-props-correct.2: An XSD schema cannot contain
>>> two global components with the same name.*" and *the test file does
>>> have two global element name declarations with the same name*
>>> <https://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/data/vers=
ion-control/test37.xsd#L5>,
>>> still the test is not meant to fail.
>>>
>>> What did I miss?
>>>
>>> My steps to do my smoke testing:
>>>
>>>    1. As I am not able to easily build & debug with my IDEs (like with
>>>    Maven) using the existing ANT scripts, I generated an easy build & d=
ebug
>>>    environment for my set of IDEs (Apache Netbeans & Intellij IDEA) rep=
resented
>>>    by a single commit of noise
>>>    <https://github.com/svanteschubert/xerces-j/commit/7e32264aabbb36636=
0d6a354d2589e1e154fb58f>
>>>    .
>>>    2. Instead of setting an environment variable, I hard coded the path
>>>    to my tests
>>>    <https://github.com/svanteschubert/xerces-j/commit/2c50b9c6dc88c5394=
af95d12f6cad9cced822e9e>
>>>    .
>>>    3. Executed in Netbeans test suite
>>>    org.apache.xerces.tests.AllXercesXSD11Tests
>>>    <https://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/src/or=
g/apache/xerces/tests/AllXercesXSD11Tests.java#L31> and
>>>    getting aside of the above so many errors that I must have done some=
thing
>>>    basic wrong.
>>>
>>> Thanks for any help!
>>> Svante
>>>
>>

--00000000000015ed8d0621eed88a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Can anyone please provide feedback if it can be produ=
ced that the <a href=3D"https://github.com/apache/xerces-j/blob/xml-schema-=
1.1-tests/src/org/apache/xerces/tests/AllXercesXSD11Tests.java">AllXercesXS=
D11Tests</a> are failing?<br></div><div><ol><li>for the <a href=3D"https://=
dlcdn.apache.org//xerces/j/binaries/Xerces-J-bin.2.12.2-xml-schema-1.1.zip"=
>downloaded Xerces 1.1 version</a>?</li><li>for the Xerces 1.1 dev GitHub b=
ranch?</li><li>that the earlier-mentioned test should fail as it did due to=
 the duplicated named global element declaration?=C2=A0<br>Sorry, but I did=
 earlier a shell-game trick to myself and added not an official Xerces1.1.j=
ar but my previous=C2=A0<a href=3D"https://github.com/apache/xerces-j/blob/=
xml-schema-1.1-tests/src/org/apache/xerces/tests/AllXercesXSD11Tests.java">=
AllXercesXSD11Tests</a>=C2=A0only failed correctly in my local test branch,=
 where I added prefix support for the loaded XSDs at run-time...still, test=
s fail for the official Xerces 1.1 release.</li></ol></div><div>I tested no=
w two different official Xerces 1.1 versions (and added Netbeans IDE build =
environment to two commits of my prototype branch smoke-testing)<br></div><=
div><ol><li><a href=3D"https://github.com/apache/xerces-j/commit/1930cbe2ec=
1a4d5e4df4a685c60b66a86745e285">a Netbeans environment using the=C2=A0downl=
oaded Xerces 1.1 version</a></li><li><a href=3D"https://github.com/apache/x=
erces-j/commit/57dcf82032d874c9bed5851349635e7c0a1131f1">a Netbeans environ=
ment using the Xerces 1.1 dev GitHub branch</a></li></ol><div>Netbeans buil=
d and debug environment is easily=C2=A0addable for the xml-schema-1.1-tests=
 GitHub branch of Xerces by creating a new Netbeans=C2=A0project and=C2=A0<=
/div></div><div><ul><li>In case Netbeans debug support for <a href=3D"https=
://dlcdn.apache.org//xerces/j/binaries/Xerces-J-bin.2.12.2-xml-schema-1.1.z=
ip">downloaded Xerces 1.1 ZIP</a>:<br>Add all JARs from the downloaded ZIP =
of Xerces 1.1 to the classpath - switch to JDK 8 (as afterwards JDKs API ch=
anged, e.g. tools.jar not available)</li></ul><ul><li>In case Netbeans debu=
g support for Github branch xml-schema-1.1-dev:<br>Checkout from Github the=
 xml-schema-1.1-dev branch and add in Netbeans src and sample as source dir=
ectories, use JDK 8 and add the JARs from the tools directory (aside from X=
ercesImp.jar), which will be built.<br>Afterwards, add the newly created Xe=
rces JAR and the previously added JARs to your other xml-schema-1.1-tests N=
etbeans project.<br>JUnit and Hamcrest will be added by Netbeans automatica=
lly when=C2=A0problems are resolved</li></ul></div><div>Quite cumbersome, I=
 think it&#39;s about time to add Maven support... :-)</div><div><br></div>=
<div>Two questions in the end regarding the current GitHub branch structure=
:</div><div><ol><li>Why is the xml-schema-1.1-dev GitHub branch not placed =
at the top of the main branch? XSD 1.1 specs states to be backward compatib=
le with XSD 1.0.</li><li>Why are the tests of the xml-schema-1.1-tests GitH=
ub branch not added as well to the main branch?</li><li>In case a Maven to =
build=C2=A0(and test) is being added, regression tests could be made on Git=
Hub for every commit to keep the branches from becoming red.</li></ol><div>=
Currently, there are multiple=C2=A0versions of sources for Xerces=C2=A0</di=
v><div>The different Xerces sources able to be downloaded as ZIP and the di=
fferences between Subversion and the GitHub branches make it complex for ne=
wcomers.</div><div>Is there still a reason that prevents these minimize the=
 amount of Xerces sources, I suggest the main branch of GitHub as the lates=
t=C2=A0and greatest source, using Git labels for releases.</div></div><div>=
<br></div><div>Thanks for any feedback,</div><div>Svante</div><div><br></di=
v></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr=
">On Thu, 12 Sept 2024 at 13:58, Svante Schubert &lt;<a href=3D"mailto:svan=
[email protected]">[email protected]</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>PS:</=
div>To ease reproduction, I have added a stack trace (below) - note below i=
s just the German-translated version of the error message mentioned earlier=
:<div>&quot;<b><i>sch-props-correct.2: An XSD schema cannot contain two glo=
bal components with the same name.</i></b>&quot;</div><div>and the SaxParse=
Exception is already thrown=C2=A0when creating the Schema, even before the =
test:</div><div><a href=3D"https://github.com/svanteschubert/xerces-j/blob/=
smoke-testing/src/org/apache/xerces/tests/ConditionalInclusionTests.java#L8=
1" target=3D"_blank">https://github.com/svanteschubert/xerces-j/blob/smoke-=
testing/src/org/apache/xerces/tests/ConditionalInclusionTests.java#L81</a><=
br></div><div><br></div><div>org.xml.sax.SAXParseException; systemId: file:=
///E:/dev/tausch/xml/xsd-debug/xml-schema-1.1-tests/data/version-control/te=
st37.xsd; lineNumber: 7; columnNumber: 46;<br></div><div><b>sch-props-corre=
ct.2: Ein Schema kann nicht zwei globale Komponenten mit demselben Namen en=
thalten. Dieses Schema enth=EF=BF=BDlt zwei Vorkommen von &#39;,test&#39;.<=
/b><br>	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.crea=
teSAXParseException(ErrorHandlerWrapper.java:204)<br>	at com.sun.org.apache=
.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:13=
5)<br>	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportEr=
ror(XMLErrorReporter.java:396)<br>	at com.sun.org.apache.xerces.internal.im=
pl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4204)<br>	at co=
m.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchema=
Error(XSDHandler.java:4187)<br>	at com.sun.org.apache.xerces.internal.impl.=
xs.traversers.XSDHandler.checkForDuplicateNames(XSDHandler.java:3820)<br>	a=
t com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.buildGlo=
balNameRegistries(XSDHandler.java:1362)<br>	at com.sun.org.apache.xerces.in=
ternal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:651)<br>	a=
t com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XML=
SchemaLoader.java:610)<br>	at com.sun.org.apache.xerces.internal.impl.xs.XM=
LSchemaLoader.loadGrammar(XMLSchemaLoader.java:569)<br>	at com.sun.org.apac=
he.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java=
:535)<br>	at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFa=
ctory.newSchema(XMLSchemaFactory.java:269)<br>	at javax.xml.validation.Sche=
maFactory.newSchema(SchemaFactory.java:638)<br><b>	at <a href=3D"https://gi=
thub.com/svanteschubert/xerces-j/blob/smoke-testing/src/org/apache/xerces/t=
ests/ConditionalInclusionTests.java#L81" target=3D"_blank">org.apache.xerce=
s.tests.ConditionalInclusionTests.testVersionControl3(ConditionalInclusionT=
ests.java:81)</a></b><br>	at sun.reflect.NativeMethodAccessorImpl.invoke0(N=
ative Method)<br>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMeth=
odAccessorImpl.java:62)<br>	at sun.reflect.DelegatingMethodAccessorImpl.inv=
oke(DelegatingMethodAccessorImpl.java:43)<br>	at java.lang.reflect.Method.i=
nvoke(Method.java:498)<br>	at junit.framework.TestCase.runTest(TestCase.jav=
a:177)<br>	at junit.framework.TestCase.runBare(TestCase.java:142)<br>	at ju=
nit.framework.TestResult$1.protect(TestResult.java:122)<br>	at junit.framew=
ork.TestResult.runProtected(TestResult.java:142)<br>	at junit.framework.Tes=
tResult.run(TestResult.java:125)<br>	at junit.framework.TestCase.run(TestCa=
se.java:130)<br>	at junit.framework.TestSuite.runTest(TestSuite.java:241)<b=
r>	at junit.framework.TestSuite.run(TestSuite.java:236)<br>	at junit.framew=
ork.TestSuite.runTest(TestSuite.java:241)<br>	at junit.framework.TestSuite.=
run(TestSuite.java:236)<br>	at org.apache.tools.ant.taskdefs.optional.junit=
.JUnitTestRunner.run(JUnitTestRunner.java:535)<br>	at org.apache.tools.ant.=
taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1197)<b=
r>	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUn=
itTestRunner.java:1042)<br></div></div><br><div class=3D"gmail_quote"><div =
dir=3D"ltr" class=3D"gmail_attr">On Thu, 12 Sept 2024 at 08:24, Svante Schu=
bert &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">sva=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);padding-left:1ex"><div dir=3D"ltr"><div>Dear Xerces user group,</div><d=
iv><br></div>Let me add the specification reference to the <a href=3D"https=
://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/data/version-contro=
l/test37.xsd#L5" target=3D"_blank">invalidness of the test file</a>:=C2=A0<=
a href=3D"https://www.w3.org/TR/xmlschema11-1/#concepts-nameSymbolSpaces" t=
arget=3D"_blank">https://www.w3.org/TR/xmlschema11-1/#concepts-nameSymbolSp=
aces</a><div><b><i>&quot;But it is not possible for ... two distinct top-le=
vel element declarations, to share the name=C2=A0<span style=3D"color:rgb(0=
,0,0);font-family:monospace;font-size:13px">my:abc</span>&quot;</i></b></di=
v><div><br></div><div>If the build were in Maven and nightly tests were run=
 by GitHub, I would not ask this question. Perhaps it is worth considering =
a switch from Ant to Maven?</div><div>In general, invalid test files should=
 be explicitly marked as such like within a subfolder &#39;invalid&#39;.=C2=
=A0</div><div>Would be helpful to download groups of test files from Maven,=
 like versions of deliverables as well (but this might be a topic for Maven=
&#39;s user&#39;s list)...</div><div><br></div><div>Still, I believe I am d=
oing an oversight...</div><div><br></div><div>Best regards,</div><div>Svant=
e</div><div><br></div><div>PS: Used my Apache email now and am uncertain if=
 I should have started on the dev list right away instead of users - I woul=
d join these lists for software in general... (as you want to users become =
developers..)</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cl=
ass=3D"gmail_attr">On Wed, 11 Sept 2024 at 15:25, Svante Schubert &lt;<a hr=
ef=3D"mailto:[email protected]" target=3D"_blank">svante.schubert@g=
mail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D=
"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le=
ft:1ex"><div dir=3D"ltr">Dear experts,<div><br></div><div>I am in need of s=
ome advice using the <a href=3D"https://github.com/apache/xerces-j/tree/xml=
-schema-1.1-tests" target=3D"_blank">new Xerces=C2=A0xml-schema-1.1-tests</=
a>.</div><div><br></div><div>The <a href=3D"https://github.com/apache/xerce=
s-j/blob/xml-schema-1.1-tests/src/org/apache/xerces/tests/AllXercesXSD11Tes=
ts.java#L31" target=3D"_blank">test suite of org.apache.xerces.tests.AllXer=
cesXSD11Tests</a> fails for me using my Xerces Jar from a build of=C2=A0<a =
href=3D"https://github.com/apache/xerces-j/tree/xml-schema-1.1-dev" target=
=3D"_blank">Xerces 1.1 GitHub branch</a> and likely I am=C2=A0missing somet=
hing obvious.</div><div>The error given is &quot;<b><i>sch-props-correct.2:=
 An XSD schema cannot contain two global components with the same name.</i>=
</b>&quot; and <a href=3D"https://github.com/apache/xerces-j/blob/xml-schem=
a-1.1-tests/data/version-control/test37.xsd#L5" target=3D"_blank"><i><b>the=
 test file does have two global element name declarations=C2=A0with the sam=
e name</b></i></a>, still the test is not meant to fail.=C2=A0</div><div><b=
r></div><div>What did I miss?</div><div><br></div><div>My steps to do my sm=
oke testing:</div><div><ol><li>As I am not able to easily build &amp; debug=
 with my IDEs (like with Maven) using the existing ANT scripts, I generated=
 an easy build &amp; debug environment for my set of IDEs (Apache Netbeans =
&amp; Intellij IDEA) represented<a href=3D"https://github.com/svanteschuber=
t/xerces-j/commit/7e32264aabbb366360d6a354d2589e1e154fb58f" target=3D"_blan=
k"> by a single commit of noise</a>.</li><li>Instead of setting an environm=
ent=C2=A0variable, <a href=3D"https://github.com/svanteschubert/xerces-j/co=
mmit/2c50b9c6dc88c5394af95d12f6cad9cced822e9e" target=3D"_blank">I hard cod=
ed the path to my tests</a>.<br></li><li>Executed in Netbeans=C2=A0<a href=
=3D"https://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/src/org/ap=
ache/xerces/tests/AllXercesXSD11Tests.java#L31" target=3D"_blank">test suit=
e org.apache.xerces.tests.AllXercesXSD11Tests</a>=C2=A0and getting aside of=
 the above so many errors that I must have done something basic wrong.</li>=
</ol></div><div>Thanks for any help!</div><div>Svante</div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>

--00000000000015ed8d0621eed88a--