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/version-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 on
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 <svante.schub...@gmail.com>
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/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
>

Reply via email to