Seek for advice with Xerces xml-schema-1.1-tests
Svante Schubert <[email protected]> Wed, 11 Sep 2024 15:25:20 +0200
| Newsgroups | gmane.text.xml.xerces-j.user |
|---|---|
| Message-ID | <CAHNbw8nYEDCTL1Y=Qp4v9E0XL6NtN=U56pnVTKRCw31b4w769Q@mail.gmail.com> |
--000000000000a371880621d7ecb0 Content-Type: text/plain; charset="UTF-8" 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/apache/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/version-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 & debug environment for my set of IDEs (Apache Netbeans & Intellij IDEA) represented by a single commit of noise <https://github.com/svanteschubert/xerces-j/commit/7e32264aabbb366360d6a354d2589e1e154fb58f> . 2. Instead of setting an environment variable, I hard coded the path to my tests <https://github.com/svanteschubert/xerces-j/commit/2c50b9c6dc88c5394af95d12f6cad9cced822e9e> . 3. Executed in Netbeans test suite org.apache.xerces.tests.AllXercesXSD11Tests <https://github.com/apache/xerces-j/blob/xml-schema-1.1-tests/src/org/apache/xerces/tests/AllXercesXSD11Tests.java#L31> and getting aside of the above so many errors that I must have done something basic wrong. Thanks for any help! Svante --000000000000a371880621d7ecb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Dear experts,<div><br></div><div>I am in need of some advi= ce using the <a href=3D"https://github.com/apache/xerces-j/tree/xml-schema-= 1.1-tests">new Xerces=C2=A0xml-schema-1.1-tests</a>.</div><div><br></div><d= iv>The <a href=3D"https://github.com/apache/xerces-j/blob/xml-schema-1.1-te= sts/src/org/apache/xerces/tests/AllXercesXSD11Tests.java#L31">test suite of= org.apache.xerces.tests.AllXercesXSD11Tests</a> fails for me using my Xerc= es Jar from a build of=C2=A0<a href=3D"https://github.com/apache/xerces-j/t= ree/xml-schema-1.1-dev">Xerces 1.1 GitHub branch</a> and likely I am=C2=A0m= issing something obvious.</div><div>The error given is "<b><i>sch-prop= s-correct.2: An XSD schema cannot contain two global components with the sa= me name.</i></b>" and <a href=3D"https://github.com/apache/xerces-j/bl= ob/xml-schema-1.1-tests/data/version-control/test37.xsd#L5"><i><b>the test = file does have two global element name declarations=C2=A0with the same name= </b></i></a>, still the test is not meant to fail.=C2=A0</div><div><br></di= v><div>What did I miss?</div><div><br></div><div>My steps to do my smoke te= sting:</div><div><ol><li>As I am not able to easily build & debug with = my IDEs (like with Maven) using the existing ANT scripts, I generated an ea= sy build & debug environment for my set of IDEs (Apache Netbeans & = Intellij IDEA) represented<a href=3D"https://github.com/svanteschubert/xerc= es-j/commit/7e32264aabbb366360d6a354d2589e1e154fb58f"> by a single commit o= f noise</a>.</li><li>Instead of setting an environment=C2=A0variable, <a hr= ef=3D"https://github.com/svanteschubert/xerces-j/commit/2c50b9c6dc88c5394af= 95d12f6cad9cced822e9e">I hard coded the path to my tests</a>.<br></li><li>E= xecuted in Netbeans=C2=A0<a href=3D"https://github.com/apache/xerces-j/blob= /xml-schema-1.1-tests/src/org/apache/xerces/tests/AllXercesXSD11Tests.java#= L31">test suite org.apache.xerces.tests.AllXercesXSD11Tests</a>=C2=A0and ge= tting aside of the above so many errors that I must have done something bas= ic wrong.</li></ol></div><div>Thanks for any help!</div><div>Svante</div></= div> --000000000000a371880621d7ecb0--