Il giorno lun 27 nov 2023 alle ore 08:59 Mukul Gandhi
<[email protected]> ha scritto:
> You may please take latest XercesJ svn updates, and let us know,
> whether the XercesJ build issues that you were experiencing have been
> resolved.

Hi Mukul, thanks for the quick feedback!

Yep, now I'm able to compile the schema-1.1 version Xerces-J by using
the xml-schema-1.1-dev branch!

I also created a GitHub Action that does it: you can see the steps I do at
https://github.com/mlocati/compile-xercesj-schema-1.1/blob/main/.github/workflows/compile.yml

And you can see at
https://github.com/mlocati/compile-xercesj-schema-1.1/actions
everything works, thank you!

Just a couple of notes though.

First of all, could you change the svn:eol-style property of the
build.sh file from "native" to "LF"?
I'm asking because I think the source distribution files available at
https://xerces.apache.org/mirrors.cgi#source have been built using
Windows, so the build.sh script included in those tarballs have
Windows line endings, and that breaks shell scripts.
Indeed, if I try to execute the build.sh script included in those
tarballs I have this error:

: not found 20:
: not found 21: echo
Xerces-Java Build System
------------------------
: not found 24:
./build.sh: 35: Syntax error: word unexpected (expecting "in")

In order to fix it, I have to replace \r\n with \n, for example with
sed -i 's/\r$//' ./build.sh


Furthermore, there are two "strange" characters in
src/org/apache/xerces/impl/xs/models/XS11CMRestriction.java that break
the compilation unless you launch build.sh with the LC_ALL environment
variable set to C.UTF-8 (see for example
https://github.com/mlocati/compile-xercesj-schema-1.1/actions/runs/7003512616/job/19049394085
).
Since those two strange characters are in comments, I think we can
safely remove them (see attached
remove-strange-chars-from-XS11CMRestriction.java.patch).

Thank you again!
Michele
Index: XS11CMRestriction.java
===================================================================
--- XS11CMRestriction.java      (revision 1914151)
+++ XS11CMRestriction.java      (working copy)
@@ -490,8 +490,8 @@
             return false;
         }
 
-        // 4.5 S's declared {type definition} is ·validly substitutable as
-        // a restriction· for G's declared {type definition}.
+        // 4.5 S's declared {type definition} is validly substitutable as
+        // a restriction for G's declared {type definition}.
         if (!xsc.checkTypeDerivationOk(ed.fType, eb.fType,
                 
(short)(XSConstants.DERIVATION_EXTENSION|XSConstants.DERIVATION_LIST|XSConstants.DERIVATION_UNION)))
 {
             return false;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to