Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xerces-j2 for openSUSE:Factory checked in at 2021-12-31 13:44:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xerces-j2 (Old) and /work/SRC/openSUSE:Factory/.xerces-j2.new.1896 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "xerces-j2" Fri Dec 31 13:44:19 2021 rev:44 rq:943172 version:2.12.1 Changes: -------- --- /work/SRC/openSUSE:Factory/xerces-j2/xerces-j2.changes 2019-04-19 18:35:28.298962842 +0200 +++ /work/SRC/openSUSE:Factory/.xerces-j2.new.1896/xerces-j2.changes 2021-12-31 13:44:24.833263822 +0100 @@ -1,0 +2,45 @@ +Tue Dec 28 17:26:24 UTC 2021 - David Anes <david.anes@suse.com> + +- Removed patch xerces-2_11_0-jdk7.patch: + * this patch is already applied upstream +- Upgrade to upstream 2.12.1: + * This release is a bug fix release. It fixes few bugs which were + present in Xerces-J 2.12.0 and also includes a few other minor + enhancements. + + Implemented few fixes for XML Schema identity constraints, + within Xerces's XML Schema 1.0 and 1.1 validators. + + When XML Schema 1.1 validations are done, where xs:assert + are contained within xs:override, the XPath expressions + within xs:assert can't see XML namespace bindings specified + at certain locations in schema documents. + + When XML Schema 1.1 validations are done, when the schema + document is specified via xsi:schemaLocation attribute in + the XML document, when full XPath 2.0 is used with CTA, for + certain use cases validation was not occurring correctly. + + For certain cases, while doing XML Schema 1.1 xs:assert + validations, error messages appeared like following + 'FOAR0001 - Division by zero'. Modified such error messages, + to now contain the character ':' instead of '-' (since, the + character '-' can be confused with a negation symbol). + + The 'XML Schema 1.1 structures' REC in the section, "3.2.3 + Constraints on XML Representations of Attribute Declarations + (Schema Representation Constraint: Attribute Declaration + Representation)" mentions, '5 If fixed and use are both + present, use must not have the actual value prohibited'. + This functionality is newly introduced in XML Schema 1.1. + Fixed a runtime validation issue for this XSD clause, when + XSD 1.1 implementation is invoked in XSD 1.0 mode. + + Xerces-J was previously not building from sources when Java + 9+ was used. + + XML Schema 1.1 has introduced the attribute 'ref' on xs:key, + xs:unique and xs:keyref. When certain suchschema documents + were processed by Xerces-J's XSD 1.1 implementation in XSD + 1.0 mode, a java.lang.NullPointerException was displayed to + the user when the schema document is processed with Xerces + sample jaxp.SourceValidator. + + Fixed minor bugs and made various improvements. + + Added many new tests to the regression since the previous + Xerces release, for Xerces's XML Schema 1.0 and 1.1 + implementations. + +------------------------------------------------------------------- Old: ---- Xerces-J-src.2.12.0.tar.gz xerces-2_11_0-jdk7.patch xercesImpl-2.12.0.pom New: ---- Xerces-J-src.2.12.1.tar.gz xercesImpl-2.12.1.pom ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xerces-j2.spec ++++++ --- /var/tmp/diff_new_pack.2sh5zf/_old 2021-12-31 13:44:26.497265241 +0100 +++ /var/tmp/diff_new_pack.2sh5zf/_new 2021-12-31 13:44:26.501265244 +0100 @@ -1,7 +1,7 @@ # # spec file for package xerces-j2 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,26 +16,25 @@ # -%global cvs_version 2_12_0 +%global cvs_version 2_12_1 %define __requires_exclude system.bundle Name: xerces-j2 -Version: 2.12.0 +Version: 2.12.1 Release: 0 Summary: Java XML parser License: Apache-2.0 AND W3C Group: Development/Libraries/Java -URL: http://xerces.apache.org/xerces2-j/ -Source0: http://www.eu.apache.org/dist/xerces/j/source/Xerces-J-src.%{version}.tar.gz +URL: https://xerces.apache.org/xerces2-j/ +Source0: https://dlcdn.apache.org//xerces/j/source/Xerces-J-src.%{version}.tar.gz Source1: %{name}-version.sh Source2: %{name}-constants.sh Source3: %{name}-version.1 Source4: %{name}-constants.1 -Source5: http://repo.maven.apache.org/maven2/xerces/xercesImpl/%{version}/xercesImpl-%{version}.pom +Source5: https://repo.maven.apache.org/maven2/xerces/xercesImpl/%{version}/xercesImpl-%{version}.pom # Patch the build so that it doesn't try to use bundled xml-commons source # Also remove the use of the special taglets and xjavac task Patch0: %{name}-build.patch -Patch1: xerces-2_11_0-jdk7.patch -Patch2: %{name}-manifest.patch +Patch1: %{name}-manifest.patch BuildRequires: ant BuildRequires: dos2unix BuildRequires: fdupes @@ -88,9 +87,9 @@ %setup -q -n xerces-%{cvs_version} find "(" -name "*.class" -o -name "*.jar" ")" -delete find -type f -exec dos2unix {} \; + %patch0 -p1 -%patch1 -p1 -%patch2 +%patch1 %build mkdir -p tools ++++++ Xerces-J-src.2.12.0.tar.gz -> Xerces-J-src.2.12.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/NOTICE new/xerces-2_12_1/NOTICE --- old/xerces-2_12_0/NOTICE 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/NOTICE 2020-01-01 07:58:54.000000000 +0100 @@ -4,7 +4,7 @@ ========================================================================= Apache Xerces Java - Copyright 1999-2018 The Apache Software Foundation + Copyright 1999-2020 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/build.xml new/xerces-2_12_1/build.xml --- old/xerces-2_12_0/build.xml 2018-04-21 06:02:16.000000000 +0200 +++ new/xerces-2_12_1/build.xml 2020-01-01 07:58:54.000000000 +0100 @@ -24,7 +24,7 @@ Anupam Bagchi <abagchi@apache.org> Andy Clark, IBM - $Id: build.xml 1829239 2018-04-16 06:17:53Z mukulg $ + $Id: build.xml 1871489 2019-12-14 12:42:17Z mukulg $ ==================================================================== --> <project default="usage" basedir="."> @@ -57,9 +57,9 @@ <property name='parser.Name' value='Xerces-J'/> <property name='parser.name' value='xerces-j'/> <property name='parser.shortname' value='xerces'/> - <property name='parser.Version' value='2.12.0'/> - <property name='parser.version' value='2.12.0'/> - <property name='parser_version' value='2_12_0'/> + <property name='parser.Version' value='2.12.1'/> + <property name='parser.version' value='2.12.1'/> + <property name='parser_version' value='2_12_1'/> <property name='deprecatedjar.parser' value='xerces.jar'/> <property name='jar.apis' value='xml-apis.jar'/> @@ -76,7 +76,7 @@ <property name='default.parser.config.name' value='XIncludeAwareParserConfiguration'/> <property name='default.parser.config.qualified' value='org.apache.xerces.parsers.XIncludeAwareParserConfiguration'/> - <property name="year" value="1999-2018"/> + <property name="year" value="1999-2020"/> <property name="copyright" value="Copyright © ${year} The Apache Software Foundation. All Rights Reserved."/> <echo message= "---------------- ${parser.Name} ${parser.Version} [${year}] ---------------"/> @@ -920,6 +920,12 @@ classname="dom.dom3.Test" failOnError="yes"> <jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/> + </java> + <echo message="Running idc.AllTests ..." /> + <java fork="yes" + classname="idc.AllTests" + failOnError="yes"> + <jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${tools.dir}/${jar.junit}${path.separator}${build.dir}/classes${path.separator}${build.dir}/tests"/> </java> </target> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/docs/api.xml new/xerces-2_12_1/docs/api.xml --- old/xerces-2_12_0/docs/api.xml 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/docs/api.xml 2020-01-01 07:58:53.000000000 +0100 @@ -158,7 +158,9 @@ specification defines a set of interfaces for accessing and querying the post schema validation infoset (PSVI) defined in <jump href="http://www.w3.org/TR/xmlschema-1/#PSVI_contributions">Contributions - to the post-schema-validation infoset (Appendix C.2)</jump>. These interfaces + to the post-schema-validation infoset (Appendix C.2) [XML Schema 1.0]</jump> and + <jump href="http://www.w3.org/TR/xmlschema11-1/#PSVI_contributions">Contributions + to the post-schema-validation infoset (Appendix B.2) [XML Schema 1.1]</jump>. These interfaces provide access to the XML Schema components, which follow as a consequence of validation and/or assessment and also provide a means for accessing the PSVI from a document instance. @@ -195,4 +197,12 @@ <li><jump href='javadocs/other/index.html'>Other Classes</jump></li> </ul> </s2> + <s2 title='XML Schema 1.1 API Documentation'> + <p> + Xerces-J's XML Schema 1.1 API documentation would have some differences as compared to + API documentation of XML Schema 1.0 implementation. To view the API documentation of + Xerces-J's XML Schema 1.1 implementation, you would have to view 'docs' folder within + Xerces's XML Schema 1.1 download package. + </p> + </s2> </s1> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/docs/docs-book.xml new/xerces-2_12_1/docs/docs-book.xml --- old/xerces-2_12_0/docs/docs-book.xml 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/docs/docs-book.xml 2020-01-01 07:58:53.000000000 +0100 @@ -17,7 +17,7 @@ --> <!DOCTYPE book SYSTEM 'dtd/book.dtd'> <book title='&ParserName; Documentation' - copyright='1999-2018 The Apache Software Foundation'> + copyright='1999-2020 The Apache Software Foundation'> <external label='Home' href='http://xerces.apache.org/'/> <separator/> <document label='Readme' title='&ParserNameLong; Readme' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/docs/faq-common.xml new/xerces-2_12_1/docs/faq-common.xml --- old/xerces-2_12_0/docs/faq-common.xml 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/docs/faq-common.xml 2020-01-01 07:58:53.000000000 +0100 @@ -17,7 +17,7 @@ --> <!DOCTYPE faqs SYSTEM 'dtd/faqs.dtd'> <faqs title='Common Problems FAQs'> - <faq title='Parsing HTML Generated an Error.'> + <faq title='Parsing HTML Generated an Error'> <q> I tried to use &ParserName; to parse an HTML file and it generated an error. What did I do wrong? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/docs/faq-xs.xml new/xerces-2_12_1/docs/faq-xs.xml --- old/xerces-2_12_0/docs/faq-xs.xml 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/docs/faq-xs.xml 2020-01-01 07:58:53.000000000 +0100 @@ -51,8 +51,8 @@ and do the subsequent validation. </p> <p>You can also refer to the JAXP sample, SourceValidator, where you - can validate XML documents against 1.1 schemas by specifying the "-xsd11" - flag when running the sample.</p> + can validate XML documents against 1.1 schemas by specifying an option "-xsd11" + when running the sample.</p> <p>Each document that uses XML Schema grammars must specify the location of the grammars it uses by using an xsi:schemaLocation attribute if they use namespaces, and an xsi:noNamespaceSchemaLocation attribute @@ -78,6 +78,23 @@ </a> </faq> + <faq title="Using Entities and CDATA Sections"> + <q>How does the XML Schema processor treat entities and CDATA sections?</q> + <a> + <p>According to the XML Infoset the infoset items contributing to the + <jump href='http://www.w3.org/TR/xml-infoset/#infoitem.character'>[character + information item]</jump> are: characters in the document, whether literally, as + a character reference, or within a CDATA section, or within Entity + Reference. The XML Schema specification + "requires as a precondition for assessment + an information set as defined in [XML-Infoset]" + <jump href='http://www.w3.org/TR/xmlschema-1/#infoset'>(Appendix D)</jump> and thus Xerces might attempt to normalize data in an entity + reference or CDATA section. To preserve character data within entity references and + CDATA sections, + turn off http://apache.org/xml/features/validation/schema/normalized-value feature. + </p> + </a> + </faq> <faq title="XPath 2.0 support for XML Schema 1.1 validation"> <q>How an XPath 2.0 engine is used for XML Schema 1.1 assertions and CTAs?</q> <a> @@ -103,23 +120,6 @@ </p> </a> </faq> - <faq title="Using Entities and CDATA Sections"> - <q>How does the XML Schema processor treat entities and CDATA sections?</q> - <a> - <p>According to the XML Infoset the infoset items contributing to the - <jump href='http://www.w3.org/TR/xml-infoset/#infoitem.character'>[character - information item]</jump> are: characters in the document, whether literally, as - a character reference, or within a CDATA section, or within Entity - Reference. The XML Schema specification - "requires as a precondition for assessment - an information set as defined in [XML-Infoset]" - <jump href='http://www.w3.org/TR/xmlschema-1/#infoset'>(Appendix D)</jump> and thus Xerces might attempt to normalize data in an entity - reference or CDATA section. To preserve character data within entity references and - CDATA sections, - turn off http://apache.org/xml/features/validation/schema/normalized-value feature. - </p> - </a> - </faq> <faq title="User defined error messages, for XML Schema 1.1 assertion failures"> <q>How to specify a user defined error message, when an XML Schema 1.1 assertion returns a 'false' result?</q> <a> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/docs/features.xml new/xerces-2_12_1/docs/features.xml --- old/xerces-2_12_0/docs/features.xml 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/docs/features.xml 2020-01-01 07:58:53.000000000 +0100 @@ -320,6 +320,37 @@ <see idref='validation'/> <see idref='validation.schema'/> </feature> + <feature name='http://apache.org/xml/features/validation/cta-full-xpath-checking' + id='validation.xs11-cta-fullxpath-checking'> + <true>Enable XSD 1.1 CTA full XPath 2.0 checking.</true> + <false>Disable XSD 1.1 CTA full XPath 2.0 checking.</false> + <default value='false'/> + <access parsing='read-only' not-parsing='read-write'/> + <since value='&ParserName; 2.12.0'/> + <note> + Setting this feature to 'true', would allow CTA XPath expressions to have full XPath 2.0 syntax. The default + is to recognize the CTA XPath subset, defined by XSD 1.1 language. If the CTA XPath expressions in a schema document + falls within the XPath subset, then the use of default Xerces CTA XPath processor may result in an efficient schema + processing. + </note> + <see idref='validation'/> + <see idref='validation.schema'/> + </feature> + <feature name='http://apache.org/xml/features/validation/assert-comments-and-pi-checking' + id='validation.xs11-assert-comments-pi-checking'> + <true>Enable occurrence of comments and PIs within XPath Data Model (XDM) instance, for XSD 1.1 assertion processing.</true> + <false>Disable occurrence of comments and PIs within XPath Data Model (XDM) instance, for XSD 1.1 assertion processing.</false> + <default value='false'/> + <access parsing='read-only' not-parsing='read-write'/> + <since value='&ParserName; 2.12.0'/> + <note> + Setting this feature to 'true', would allow assertions to access comments and PIs from an XML instance document + and correspondingly test for their absence, presence or do string processing on them for the purpose of XSD + validation. + </note> + <see idref='validation'/> + <see idref='validation.schema'/> + </feature> <feature name='http://apache.org/xml/features/validation/unparsed-entity-checking' id='validation.unparsed-entity-checking'> <true>Check that each value of type ENTITY matches the name of an unparsed entity declared in the DTD.</true> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/docs/readme.xml new/xerces-2_12_1/docs/readme.xml --- old/xerces-2_12_0/docs/readme.xml 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/docs/readme.xml 2020-01-01 07:58:53.000000000 +0100 @@ -19,12 +19,11 @@ <s1 title='&ParserNameLong; Readme'> <s2 title='&ParserNameLong; &ParserVersion; Release'> <p> - Welcome to the future! Xerces2 is the next generation of - high performance, fully compliant XML parsers in the Apache - Xerces family. This new version of Xerces introduces the - Xerces Native Interface (XNI), a complete framework for - building parser components and configurations that is - extremely modular and easy to program. + Welcome to the home of Xerces Java. Xerces2 provides high performance, + fully compliant XML parsers in the Apache Xerces family. This new version + of Xerces continues to build upon the Xerces Native Interface (XNI), a + complete framework for building parser components and configurations that + is extremely modular and easy to program. </p> <p> The Apache Xerces2 parser is the reference implementation @@ -34,7 +33,7 @@ <link idref='xni'>XNI Manual</link>. </p> <p> - Xerces2 is a fully conforming XML Schema 1.0 and 1.1 processor. An experimental implementation of the + Xerces2 provides fully conforming XML Schema 1.0 and 1.1 processors. An experimental implementation of the <jump href='http://www.w3.org/TR/2010/CR-xmlschema-ref-20100119/'>XML Schema Definition Language (XSD): Component Designators</jump> (SCD) Candidate Recommendation (January 2010) is also provided for evaluation. For more information, refer to the <link idref='xml-schema'> @@ -149,11 +148,10 @@ </s2> <s2 title='Changes from Previous Release'> - <p> - The &ParserNameLong; &ParserVersion; expands on its experimental support for XML Schema 1.1 - by providing fully compliant XML Schema 1.1 implementation. It fixes several bugs which - were present in the previous release and also includes a few other minor enhancements. + The &ParserNameLong; &ParserVersion; is a bug fix release, and is largely compatible with + the previous release in terms of broad functionality offered. It fixes few bugs which were + present in the previous release and also includes a few other minor enhancements. </p> <p> For a more complete list of changes, refer to the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/docs/releases.xml new/xerces-2_12_1/docs/releases.xml --- old/xerces-2_12_0/docs/releases.xml 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/docs/releases.xml 2020-01-01 07:58:53.000000000 +0100 @@ -15,15 +15,94 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<!-- $Id: releases.xml 1829634 2018-04-20 08:38:24Z mukulg $ --> +<!-- $Id: releases.xml 1872100 2019-12-30 08:33:21Z mukulg $ --> <!DOCTYPE releases SYSTEM 'dtd/releases.dtd'> <releases> + <release version='&ParserName; 2.12.1'> + <desc> + <p> + This release is a bug fix release. It fixes few bugs which were present in Xerces-J 2.12.0 + and also includes a few other minor enhancements. + </p> + </desc> + <changes> + <fix> + <note> + Implemented few fixes for XML Schema identity constraints, within Xerces's XML Schema 1.0 and 1.1 + validators. + </note> + <submitter name='Sandy Gao, Mukul Gandhi'/> + </fix> + <fix> + <note> + When XML Schema 1.1 validations are done, where xs:assert are contained within xs:override, the XPath + expressions within xs:assert can't see XML namespace bindings specified at certain locations in schema + documents. This release fixes this. + </note> + <submitter name='Mukul Gandhi, Patrick Gratz'/> + </fix> + <fix> + <note> + When XML Schema 1.1 validations are done, when the schema document is specified via xsi:schemaLocation + attribute in the XML document, when full XPath 2.0 is used with CTA, for certain use cases + validation was not occurring correctly. This release fixes this. + </note> + <submitter name='Mukul Gandhi, Yitzhak Khabinsky'/> + </fix> + <fix> + <note> + For certain cases, while doing XML Schema 1.1 xs:assert validations, error messages appeared + like following 'FOAR0001 - Division by zero'. Modified such error messages, to now contain + the character ':' instead of '-' (since, the character '-' can be confused with a negation symbol). + </note> + <submitter name='Mukul Gandhi'/> + </fix> + <fix> + <note> + The 'XML Schema 1.1 structures' REC in the section, "3.2.3 Constraints on XML Representations of + Attribute Declarations (Schema Representation Constraint: Attribute Declaration + Representation)" mentions, '5 If fixed and use are both present, use must not have the actual value + prohibited'. This functionality is newly introduced in XML Schema 1.1. Fixed a runtime validation issue + for this XSD clause, when XSD 1.1 implementation is invoked in XSD 1.0 mode. + </note> + <submitter name='Mukul Gandhi'/> + </fix> + <fix> + <note> + Xerces-J was previously not building from sources when Java 9+ was used. This release fixes this. + </note> + <submitter name='Mukul Gandhi, Michael Glavassevich, Thomas Pasch'/> + </fix> + <fix> + <note> + XML Schema 1.1 has introduced the attribute 'ref' on xs:key, xs:unique and xs:keyref. When certain such + schema documents were processed by Xerces-J's XSD 1.1 implementation in XSD 1.0 mode, a + java.lang.NullPointerException was displayed to the user when the schema document is processed with Xerces + sample jaxp.SourceValidator. This release fixes this. + </note> + <submitter name='Michael Glavassevich, Mukul Gandhi'/> + </fix> + <fix> + <note> + Fixed minor bugs and made various improvements. + </note> + <submitter name='Michael Glavassevich, Mukul Gandhi, Octavian Nadolu'/> + </fix> + <add> + <note> + Added many new tests to the regression since the previous Xerces release, for Xerces's + XML Schema 1.0 and 1.1 implementations. + </note> + <submitter name='Mukul Gandhi'/> + </add> + </changes> + </release> <release version='&ParserName; 2.12.0'> <desc> <p> - This release expands on Xerces-J's experimental support for XML Schema 1.1 - by providing a fully compliant XML Schema 1.1 implementation. It fixes several bugs - which were present in &ParserName; 2.11.0 and also includes a few other minor enhancements. + This release expands on Xerces-J's experimental support for XML Schema 1.1 by providing a + fully compliant XML Schema 1.1 implementation. It fixes several bugs which were present in + Xerces-J 2.11.0 and also includes a few other enhancements and performance improvements. </p> </desc> <changes> @@ -65,6 +144,14 @@ </fix> <fix> <note> + Fixed possible security issue: an implementation of the NamedNodeMapImpl class in the JAXP component did not + limit the amount of memory allocated when creating object instance from a serialized form. A specially-crafted + input could cause a java application to use an excessive amount of memory when deserialized. + </note> + <submitter name='David Dillard, Michael Glavassevich, Mukul Gandhi'/> + </fix> + <fix> + <note> Implemented minor and major fixes in certain areas, to XML Schema 1.0 and 1.1 implementations. </note> <submitter name='Michael Glavassevich, Khaled Noaman, Sandy Gao, Mukul Gandhi'/> @@ -95,10 +182,9 @@ </fix> <fix> <note> - Octavian and Radu, from Oxygen XML Editor team have contributed much by way of intimating numerous bugs - and implementation ideas, for Xerces-J's XML Schema 1.0 and 1.1 implementations. + Fixed various bugs and made various improvements. </note> - <submitter name='Octavian Nadolu, Radu Coravu'/> + <submitter name='Mukul Gandhi, Jorge L. Williams, Octavian Nadolu, Radu Coravu'/> </fix> </changes> </release> @@ -2875,4 +2961,4 @@ <release version='&ParserName; 2.0.0 (alpha)'> <desc>Initial alpha release of Xerces2 code.</desc> </release> -</releases> +</releases> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/docs/xml-schema.xml new/xerces-2_12_1/docs/xml-schema.xml --- old/xerces-2_12_0/docs/xml-schema.xml 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/docs/xml-schema.xml 2020-01-01 07:58:53.000000000 +0100 @@ -128,13 +128,14 @@ Javadoc for javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING for more details. </li> - <li> The JAXP class javax.xml.validation.Schema is defined to be thread safe, i.e. - applications are encouraged to share it across many threads. There are few cases - observed while doing XML Schema 1.1 validation, where the thread safe definition - of javax.xml.validation.Schema is not honored. This problem is observed, while - using the XSD 1.1 syntax <assert> in the XSD documents. But there are also, various - cases observed while using XSD 1.1 syntax <assert>, when thread safety of javax.xml.validation.Schema - is honored correctly. + <li> The JAXP class javax.xml.validation.Schema is defined to be thread + safe. That is, applications are encouraged to share javax.xml.validation.Schema objects + across multiple threads. Some Xerces users have reported that, while doing XML Schema 1.1 + validation javax.xml.validation.Schema is seen to be not thread safe. This problem was + observed in certain use cases, while using the XSD 1.1 construct <assert> in the + XSD documents. But there are also, various cases observed while using XSD 1.1 + construct <assert>, when thread safety of javax.xml.validation.Schema is + seen to be working correctly. </li> </ul> </s2> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/samples/jaxp/SourceValidator.java new/xerces-2_12_1/samples/jaxp/SourceValidator.java --- old/xerces-2_12_0/samples/jaxp/SourceValidator.java 2018-04-21 06:02:15.000000000 +0200 +++ new/xerces-2_12_1/samples/jaxp/SourceValidator.java 2020-01-01 07:58:54.000000000 +0100 @@ -65,10 +65,9 @@ * * @author Michael Glavassevich, IBM * - * @version $Id: SourceValidator.java 1335920 2012-05-09 04:15:35Z mrglavas $ + * @version $Id: SourceValidator.java 1838308 2018-08-18 05:47:11Z mukulg $ */ -public class SourceValidator - implements ErrorHandler { +public class SourceValidator implements ErrorHandler { // // Constants diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/src/org/apache/html/dom/HTMLFrameElementImpl.java new/xerces-2_12_1/src/org/apache/html/dom/HTMLFrameElementImpl.java --- old/xerces-2_12_0/src/org/apache/html/dom/HTMLFrameElementImpl.java 2018-04-21 06:02:12.000000000 +0200 +++ new/xerces-2_12_1/src/org/apache/html/dom/HTMLFrameElementImpl.java 2020-01-01 07:58:52.000000000 +0100 @@ -16,11 +16,12 @@ */ package org.apache.html.dom; +import org.w3c.dom.Document; import org.w3c.dom.html.HTMLFrameElement; /** * @xerces.internal - * @version $Revision: 1029415 $ $Date: 2010-10-31 22:32:22 +0530 (Sun, 31 Oct 2010) $ + * @version $Revision: 1866821 $ $Date: 2019-09-12 09:55:36 +0530 (Thu, 12 Sep 2019) $ * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a> * @see org.w3c.dom.html.HTMLFrameElement * @see org.apache.xerces.dom.ElementImpl @@ -126,6 +127,12 @@ { setAttribute( "src", src ); } + + + // method added, so that xerces can be built with JDK 9 & above + public Document getContentDocument() { + return null; + } /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/src/org/apache/html/dom/HTMLIFrameElementImpl.java new/xerces-2_12_1/src/org/apache/html/dom/HTMLIFrameElementImpl.java --- old/xerces-2_12_0/src/org/apache/html/dom/HTMLIFrameElementImpl.java 2018-04-21 06:02:12.000000000 +0200 +++ new/xerces-2_12_1/src/org/apache/html/dom/HTMLIFrameElementImpl.java 2020-01-01 07:58:52.000000000 +0100 @@ -16,11 +16,12 @@ */ package org.apache.html.dom; +import org.w3c.dom.Document; import org.w3c.dom.html.HTMLIFrameElement; /** * @xerces.internal - * @version $Revision: 1029415 $ $Date: 2010-10-31 22:32:22 +0530 (Sun, 31 Oct 2010) $ + * @version $Revision: 1866821 $ $Date: 2019-09-12 09:55:36 +0530 (Thu, 12 Sep 2019) $ * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a> * @see org.w3c.dom.html.HTMLIFrameElement * @see org.apache.xerces.dom.ElementImpl @@ -149,6 +150,12 @@ { setAttribute( "width", width ); } + + + // method added, so that xerces can be built with JDK 9 & above + public Document getContentDocument() { + return null; + } /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/src/org/apache/html/dom/HTMLObjectElementImpl.java new/xerces-2_12_1/src/org/apache/html/dom/HTMLObjectElementImpl.java --- old/xerces-2_12_0/src/org/apache/html/dom/HTMLObjectElementImpl.java 2018-04-21 06:02:09.000000000 +0200 +++ new/xerces-2_12_1/src/org/apache/html/dom/HTMLObjectElementImpl.java 2020-01-01 07:58:49.000000000 +0100 @@ -16,11 +16,12 @@ */ package org.apache.html.dom; +import org.w3c.dom.Document; import org.w3c.dom.html.HTMLObjectElement; /** * @xerces.internal - * @version $Revision: 1029415 $ $Date: 2010-10-31 22:32:22 +0530 (Sun, 31 Oct 2010) $ + * @version $Revision: 1866821 $ $Date: 2019-09-12 09:55:36 +0530 (Thu, 12 Sep 2019) $ * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a> * @see org.w3c.dom.html.HTMLObjectElement * @see org.apache.xerces.dom.ElementImpl @@ -240,6 +241,11 @@ } + // method added, so that xerces can be built with JDK 9 & above + public Document getContentDocument() { + return null; + } + /** * Constructor requires owner document. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties new/xerces-2_12_1/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties --- old/xerces-2_12_0/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties 2018-04-21 06:02:14.000000000 +0200 +++ new/xerces-2_12_1/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties 2020-01-01 07:58:50.000000000 +0100 @@ -18,7 +18,7 @@ # This file contains error and warning messages related to XML Schema # The messages are arranged in key and value tuples in a ListResourceBundle. # -# @version $Id: XMLSchemaMessages.properties 1631026 2014-10-11 07:30:37Z mukulg $ +# @version $Id: XMLSchemaMessages.properties 1869198 2019-10-31 05:21:00Z mukulg $ BadMessageKey = The error message corresponding to the message key can not be found. FormatFailed = An internal error occurred while formatting the following message:\n @@ -33,14 +33,15 @@ AbsentKeyValue = cvc-identity-constraint.4.2.1.a: Element \"{0}\" has no value for the key \"{1}\". DuplicateField = Duplicate match in scope for field \"{0}\". - DuplicateKey = cvc-identity-constraint.4.2.2: Duplicate key value [{0}] declared for identity constraint \"{2}\" of element \"{1}\". - DuplicateUnique = cvc-identity-constraint.4.1: Duplicate unique value [{0}] declared for identity constraint \"{2}\" of element \"{1}\". + DuplicateKey = cvc-identity-constraint.4.2.2: Duplicate key value [{0}] found for identity constraint \"{2}\" of element \"{1}\". + DuplicateUnique = cvc-identity-constraint.4.1: Duplicate unique value [{0}] found for identity constraint \"{2}\" of element \"{1}\". FieldMultipleMatch = cvc-identity-constraint.3: Field \"{0}\" of identity constraint \"{1}\" matches more than one value within the scope of its selector; fields must match unique values. FixedDiffersFromActual = The content of this element is not equivalent to the value of the \"fixed\" attribute in the element's declaration in the schema. KeyMatchesNillable = cvc-identity-constraint.4.2.3: Element \"{0}\" has the key \"{1}\" which matches an element which has nillable set to true. KeyNotEnoughValues = cvc-identity-constraint.4.2.1.b: Not enough values specified for <key name=\"{1}\"> identity constraint specified for element \"{0}\". KeyNotFound = cvc-identity-constraint.4.3: Key ''{0}'' with value ''{1}'' not found for identity constraint of element ''{2}''. - KeyRefOutOfScope = Identity Constraint error: identity constraint \"{0}\" has a keyref which refers to a key or unique that is out of scope. + ## KeyRefOutOfScope = Identity Constraint error: identity constraint \"{0}\" has a keyref which refers to a key or unique that is out of scope. + KeyRefOutOfScope = Identity Constraint error: the keyref identity constraint \"{0}\" refers to a key or unique that is out of scope. KeyRefReferNotFound = Key reference declaration \"{0}\" refers to unknown key with name \"{1}\". UnknownField = Internal identity constraint error; unknown field \"{0}\" for identity constraint \"{2}\" specified for element \"{1}\". @@ -117,9 +118,9 @@ src-attribute.4 = src-attribute.4: Attribute ''{0}'' has both a ''type'' attribute and an anonymous ''simpleType'' child. Only one of these is allowed for an attribute. src-attribute_group.2 = src-attribute_group.2: The intersection of wildcards is not expressible for attribute group ''{0}''. src-attribute_group.3 = src-attribute_group.3: Circular definitions detected for attribute group ''{0}''. Recursively following attribute group references eventually leads back to itself. - src-ct.1 = src-ct.1: Complex Type Definition Representation Error for type ''{0}''. When <complexContent> is used, the base type must be a complexType. ''{1}'' is a simpleType. - src-ct.2.1 = src-ct.2.1: Complex Type Definition Representation Error for type ''{0}''. When <simpleContent> is used, the base type must be a complexType whose content type is simple, or, only if restriction is specified, a complex type with mixed content and emptiable particle, or, only if extension is specified, a simple type. ''{1}'' satisfies none of these conditions. - src-ct.2.2 = src-ct.2.2: Complex Type Definition Representation Error for type ''{0}''. When a complexType with simpleContent restricts a complexType with mixed content and emptiable particle, then there must be a <simpleType> among the children of <restriction>. + src-ct.1 = src-ct.1: Complex Type Definition Representation Error for type ''{0}''. When <complexContent> is used, the base type must be a complexType. ''{1}'' is a simpleType. + src-ct.2.1 = src-ct.2.1: Complex Type Definition Representation Error for type ''{0}''. When <simpleContent> is used, the base type must be a complexType whose content type is simple, or, only if restriction is specified, a complex type with mixed content and emptiable particle, or, only if extension is specified, a simple type. ''{1}'' satisfies none of these conditions. + src-ct.2.2 = src-ct.2.2: Complex Type Definition Representation Error for type ''{0}''. When a complexType with simpleContent restricts a complexType with mixed content and emptiable particle, then there must be a <simpleType> among the children of <restriction>. src-ct.4 = src-ct.4: Complex Type Definition Representation Error for type ''{0}''. The intersection of wildcards is not expressible. src-ct.5 = src-ct.5: Complex Type Definition Representation Error for type ''{0}''. The union of wildcards is not expressible. src-element.1 = src-element.1: The properties ''default'' and ''fixed'' cannot both be present in element declaration ''{0}''. Use only one of them. @@ -161,15 +162,15 @@ #constraint valid (3.X.6) - ag-props-correct.2 = ag-props-correct.2: Error for attribute group ''{0}''. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is ''{1}''. - ag-props-correct.3 = ag-props-correct.3: Error for attribute group ''{0}''. Two attribute declarations, ''{1}'' and ''{2}'' have types which are derived from ID. + ag-props-correct.2 = ag-props-correct.2: Error for attribute group ''{0}''. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is ''{1}''. + ag-props-correct.3 = ag-props-correct.3: Error for attribute group ''{0}''. Two attribute declarations, ''{1}'' and ''{2}'' have types which are derived from ID. a-props-correct.2 = a-props-correct.2: Invalid value constraint value ''{1}'' in attribute ''{0}''. a-props-correct.3 = a-props-correct.3: Attribute ''{0}'' cannot use ''fixed'' or ''default'', because the attribute''s '{'type definition'}' is ID, or is derived from ID. au-props-correct.2 = au-props-correct.2: In the attribute declaration of ''{0}'', a fixed value of ''{1}'' was specified. So if the attribute use referring to ''{0}'' also has a '{'value constraint'}', it must be fixed and its value must be ''{1}''. cos-all-limited.1.2 = cos-all-limited.1.2: An 'all' model group must appear in a particle with '{'min occurs'}' = '{'max occurs'}' = 1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition. cos-all-limited.2 = cos-all-limited.2: The '{'max occurs'}' of an element in an ''all'' model group must be 0 or 1. The value ''{0}'' for element ''{1}'' is invalid. cos-applicable-facets = cos-applicable-facets: Facet ''{0}'' is not allowed by type {1}. - cos-ct-extends.1.1 = cos-ct-extends.1.1: Type ''{0}'' was derived by extension from type ''{1}''. However, the ''final'' attribute of ''{1}'' forbids derivation by extension. + cos-ct-extends.1.1 = cos-ct-extends.1.1: Type ''{0}'' was derived by extension from type ''{1}''. However, the ''final'' attribute of ''{1}'' forbids derivation by extension. cos-ct-extends.1.4.3.2.2.1.a = cos-ct-extends.1.4.3.2.2.1.a: The content type of a derived type and that of its base must both be mixed or both be element-only. Type ''{0}'' is element only, but its base type is not. cos-ct-extends.1.4.3.2.2.1.b = cos-ct-extends.1.4.3.2.2.1.b: The content type of a derived type and that of its base must both be mixed or both be element-only. Type ''{0}'' is mixed, but its base type is not. cos-element-consistent = cos-element-consistent: Error for type ''{0}''. Multiple elements with name ''{1}'', with different types, appear in the model group. @@ -186,23 +187,23 @@ cos-valid-default.2.2.2 = cos-valid-default.2.2.2: Since element ''{0}'' has a '{'value constraint'}' and its type definition has mixed '{'content type'}', then the particle of the '{'content type'}' must be emptiable. c-props-correct.2 = c-props-correct.2: Cardinality of Fields for keyref ''{0}'' and key ''{1}'' must match each other. ct-props-correct.3 = ct-props-correct.3: Circular definitions detected for complex type ''{0}''. This means that ''{0}'' is contained in its own type hierarchy, which is an error. - ct-props-correct.4 = ct-props-correct.4: Error for type ''{0}''. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is ''{1}''. + ct-props-correct.4 = ct-props-correct.4: Error for type ''{0}''. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is ''{1}''. ct-props-correct.5 = ct-props-correct.5: Error for type ''{0}''. Two attribute declarations, ''{1}'' and ''{2}'' have types which are derived from ID. - derivation-ok-restriction.1 = derivation-ok-restriction.1: Type ''{0}'' was derived by restriction from type ''{1}''. However, ''{1}'' has a '{'final'}' property that forbids derivation by restriction. - derivation-ok-restriction.2.1.1 = derivation-ok-restriction.2.1.1: Error for type ''{0}''. The attribute use ''{1}'' in this type has a ''use'' value of ''{2}'', which is inconsistent with the value of ''required'' in a matching attribute use in the base type. - derivation-ok-restriction.2.1.2 = derivation-ok-restriction.2.1.2: Error for type ''{0}''. The attribute use ''{1}'' in this type has type ''{2}'', which is not validly derived from ''{3}'', the type of the matching attribute use in the base type. - derivation-ok-restriction.2.1.3.a = derivation-ok-restriction.2.1.3.a: Error for type ''{0}''. The attribute use ''{1}'' in this type has an effective value constraint which is not fixed, and the effective value constraint of the matching attribute use in the base type is fixed. - derivation-ok-restriction.2.1.3.b = derivation-ok-restriction.2.1.3.b: Error for type ''{0}''. The attribute use ''{1}'' in this type has an effective value constraint fixed with a value of ''{2}'', which is not consistent with the value of ''{3}'' for the fixed effective value constraint of the matching attribute use in the base type. - derivation-ok-restriction.2.2.a = derivation-ok-restriction.2.2.a: Error for type ''{0}''. The attribute use ''{1}'' in this type does not have a matching attribute use in the base, and the base type does not have a wildcard attribute. - derivation-ok-restriction.2.2.b = derivation-ok-restriction.2.2.b: Error for type ''{0}''. The attribute use ''{1}'' in this type does not have a matching attribute use in the base, and the wildcard in the base type does not allow the namespace ''{2}'' of this attribute use. - derivation-ok-restriction.3 = derivation-ok-restriction.3: Error for type ''{0}''. The attribute use ''{1}'' in the base type has REQUIRED as true, but there is no matching attribute use in the derived type. - derivation-ok-restriction.4.1 = derivation-ok-restriction.4.1: Error for type ''{0}''. The derivation has an attribute wildcard, but the base does not have one. - derivation-ok-restriction.4.2 = derivation-ok-restriction.4.2: Error for type ''{0}''. The wildcard in the derivation is not a valid wildcard subset of the one in the base. - derivation-ok-restriction.4.3 = derivation-ok-restriction.4.3: Error for type ''{0}''. The process contents of the wildcard in the derivation ({1}) is weaker than that in the base ({2}). - derivation-ok-restriction.5.2.2.1 = derivation-ok-restriction.5.2.2.1: Error for type ''{0}''. The simple content type of this type, ''{1}'', is not a valid restriction of the simple content type of the base, ''{2}''. - derivation-ok-restriction.5.3.2 = derivation-ok-restriction.5.3.2: Error for type ''{0}''. The content type of this type is empty, but the content type of the base, ''{1}'', is not empty or emptiable. - derivation-ok-restriction.5.4.1.2 = derivation-ok-restriction.5.4.1.2: Error for type ''{0}''. The content type of this type is mixed, but the content type of the base, ''{1}'', is not. - derivation-ok-restriction.5.4.2 = derivation-ok-restriction.5.4.2: Error for type ''{0}''. The particle of the type is not a valid restriction of the particle of the base. + derivation-ok-restriction.1 = derivation-ok-restriction.1: Type ''{0}'' was derived by restriction from type ''{1}''. However, ''{1}'' has a '{'final'}' property that forbids derivation by restriction. + derivation-ok-restriction.2.1.1 = derivation-ok-restriction.2.1.1: Error for type ''{0}''. The attribute use ''{1}'' in this type has a ''use'' value of ''{2}'', which is inconsistent with the value of ''required'' in a matching attribute use in the base type. + derivation-ok-restriction.2.1.2 = derivation-ok-restriction.2.1.2: Error for type ''{0}''. The attribute use ''{1}'' in this type has type ''{2}'', which is not validly derived from ''{3}'', the type of the matching attribute use in the base type. + derivation-ok-restriction.2.1.3.a = derivation-ok-restriction.2.1.3.a: Error for type ''{0}''. The attribute use ''{1}'' in this type has an effective value constraint which is not fixed, and the effective value constraint of the matching attribute use in the base type is fixed. + derivation-ok-restriction.2.1.3.b = derivation-ok-restriction.2.1.3.b: Error for type ''{0}''. The attribute use ''{1}'' in this type has an effective value constraint fixed with a value of ''{2}'', which is not consistent with the value of ''{3}'' for the fixed effective value constraint of the matching attribute use in the base type. + derivation-ok-restriction.2.2.a = derivation-ok-restriction.2.2.a: Error for type ''{0}''. The attribute use ''{1}'' in this type does not have a matching attribute use in the base, and the base type does not have a wildcard attribute. + derivation-ok-restriction.2.2.b = derivation-ok-restriction.2.2.b: Error for type ''{0}''. The attribute use ''{1}'' in this type does not have a matching attribute use in the base, and the wildcard in the base type does not allow the namespace ''{2}'' of this attribute use. + derivation-ok-restriction.3 = derivation-ok-restriction.3: Error for type ''{0}''. The attribute use ''{1}'' in the base type has REQUIRED as true, but there is no matching attribute use in the derived type. + derivation-ok-restriction.4.1 = derivation-ok-restriction.4.1: Error for type ''{0}''. The derivation has an attribute wildcard, but the base does not have one. + derivation-ok-restriction.4.2 = derivation-ok-restriction.4.2: Error for type ''{0}''. The wildcard in the derivation is not a valid wildcard subset of the one in the base. + derivation-ok-restriction.4.3 = derivation-ok-restriction.4.3: Error for type ''{0}''. The process contents of the wildcard in the derivation ({1}) is weaker than that in the base ({2}). + derivation-ok-restriction.5.2.2.1 = derivation-ok-restriction.5.2.2.1: Error for type ''{0}''. The simple content type of this type, ''{1}'', is not a valid restriction of the simple content type of the base, ''{2}''. + derivation-ok-restriction.5.3.2 = derivation-ok-restriction.5.3.2: Error for type ''{0}''. The content type of this type is empty, but the content type of the base, ''{1}'', is not empty or emptiable. + derivation-ok-restriction.5.4.1.2 = derivation-ok-restriction.5.4.1.2: Error for type ''{0}''. The content type of this type is mixed, but the content type of the base, ''{1}'', is not. + derivation-ok-restriction.5.4.2 = derivation-ok-restriction.5.4.2: Error for type ''{0}''. The particle of the type is not a valid restriction of the particle of the base. enumeration-required-notation = enumeration-required-notation: The NOTATION type, ''{0}'' used by {2} ''{1}'', must have an enumeration facet value which specifies the notation elements used by this type. enumeration-valid-restriction = enumeration-valid-restriction: Enumeration value ''{0}'' is not in the value space of the base type, {1}. e-props-correct.2 = e-props-correct.2: Invalid value constraint value ''{1}'' in element ''{0}''. @@ -288,8 +289,8 @@ s4s-elt-must-match.1 = s4s-elt-must-match.1: The content of ''{0}'' must match {1}. A problem was found starting at: {2}. s4s-elt-must-match.2 = s4s-elt-must-match.2: The content of ''{0}'' must match {1}. Not enough elements were found. # the "invalid-content" messages provide less information than the "must-match" counterparts above. They're used for complex types when providing a "match" would be an information dump - s4s-elt-invalid-content.1 = s4s-elt-invalid-content.1: The content of ''{0}'' is invalid. Element ''{1}'' is invalid, misplaced, or occurs too often. - s4s-elt-invalid-content.2 = s4s-elt-invalid-content.2: The content of ''{0}'' is invalid. Element ''{1}'' cannot be empty. + s4s-elt-invalid-content.1 = s4s-elt-invalid-content.1: The content of ''{0}'' is invalid. Element ''{1}'' is invalid, misplaced, or occurs too often. + s4s-elt-invalid-content.2 = s4s-elt-invalid-content.2: The content of ''{0}'' is invalid. Element ''{1}'' cannot be empty. s4s-elt-invalid-content.3 = s4s-elt-invalid-content.3: Elements of type ''{0}'' cannot appear after declarations as children of a <schema> element. s4s-elt-schema-ns = s4s-elt-schema-ns: The namespace of element ''{0}'' must be from the schema namespace, ''http://www.w3.org/2001/XMLSchema''. s4s-elt-character = s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than ''xs:appinfo'' and ''xs:documentation''. Saw ''{0}''. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java new/xerces-2_12_1/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java --- old/xerces-2_12_0/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java 2018-04-21 06:02:14.000000000 +0200 +++ new/xerces-2_12_1/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java 2020-01-01 07:58:46.000000000 +0100 @@ -107,7 +107,7 @@ * @author Elena Litani IBM * @author Andy Clark IBM * @author Neeraj Bajaj, Sun Microsystems, inc. - * @version $Id: XMLSchemaValidator.java 1428379 2013-01-03 14:55:20Z mukulg $ + * @version $Id: XMLSchemaValidator.java 1871903 2019-12-22 06:45:03Z mukulg $ */ public class XMLSchemaValidator implements XMLComponent, XMLDocumentFilter, FieldActivator, RevalidationHandler, XSElementDeclHelper { @@ -2442,7 +2442,7 @@ fValueStoreCache.getValueStoreFor(id, selMatcher.getInitialDepth()); // nothing to do if nothing matched, or if not all // fields are present. - if (values != null && values.fValuesCount == values.fFieldCount) + if (values != null && values.fHasValue) values.endDocumentFragment(); } } @@ -3714,6 +3714,7 @@ /** Current data value count. */ protected int fValuesCount; + protected boolean fHasValue = false; /** global data */ public final Vector fValues = new Vector(); @@ -3881,6 +3882,7 @@ } else { fValuesCount++; + fHasValue = true; } fLocalValues[i] = actualValue; fLocalValueTypes[i] = valueType; @@ -4248,7 +4250,7 @@ if (fKeyValueStore == null) { // report error String code = "KeyRefOutOfScope"; - String value = fIdentityConstraint.toString(); + String value = fIdentityConstraint.getName(); reportSchemaError(code, new Object[] { value }); return; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java new/xerces-2_12_1/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java --- old/xerces-2_12_0/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java 2018-04-21 06:02:12.000000000 +0200 +++ new/xerces-2_12_1/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java 2020-01-01 07:58:49.000000000 +0100 @@ -58,7 +58,7 @@ * * @xerces.internal * - * @version $Id: XSDComplexTypeTraverser.java 1631026 2014-10-11 07:30:37Z mukulg $ + * @version $Id: XSDComplexTypeTraverser.java 1867108 2019-09-18 09:31:04Z mukulg $ */ class XSDComplexTypeTraverser extends XSDAbstractParticleTraverser { @@ -1237,7 +1237,7 @@ if(annotation == null) return; // it isn't very likely that there will be more than one annotation - // in a complexType decl. This saves us fromhaving to push/pop + // in a complexType decl. This saves us from having to push/pop // one more object from the fGlobalStore, and that's bound // to be a savings for most applications if(fAnnotations == null) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java new/xerces-2_12_1/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java --- old/xerces-2_12_0/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java 2018-04-21 06:02:11.000000000 +0200 +++ new/xerces-2_12_1/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java 2020-01-01 07:58:49.000000000 +0100 @@ -123,7 +123,7 @@ * @author Neil Graham, IBM * @author Pavani Mukthipudi, Sun Microsystems * - * @version $Id: XSDHandler.java 1371253 2012-08-09 15:23:06Z sandygao $ + * @version $Id: XSDHandler.java 1868534 2019-10-17 05:36:40Z mukulg $ */ public class XSDHandler { @@ -1623,22 +1623,21 @@ } // since it is forbidden for traversers to talk to each other - // directly (except wen a traverser encounters a local declaration), + // directly (except when a traverser encounters a local declaration), // this provides a generic means for a traverser to call // for the traversal of some declaration. An XSDocumentInfo is // required because the XSDocumentInfo that the traverser is traversing // may bear no relation to the one the handler is operating on. // This method will: - // 1. See if a global definition matching declToTraverse exists; + // 1. see if a global definition matching declToTraverse exists. // 2. if so, determine if there is a path from currSchema to the // schema document where declToTraverse lives (i.e., do a lookup - // in DependencyMap); + // in DependencyMap). // 3. depending on declType (which will be relevant to step 1 as // well), call the appropriate traverser with the appropriate // XSDocumentInfo object. - // This method returns whatever the traverser it called returned; - // this will be an Object of some kind - // that lives in the Grammar. + // This method returns whatever the traverser it called returned. + // This will be an Object of some kind that lives in the Grammar. protected Object getGlobalDecl(XSDocumentInfo currSchema, int declType, QName declToTraverse, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xerces-2_12_0/src/org/apache/xerces/util/SymbolHash.java new/xerces-2_12_1/src/org/apache/xerces/util/SymbolHash.java --- old/xerces-2_12_0/src/org/apache/xerces/util/SymbolHash.java 2018-04-21 06:02:13.000000000 +0200 +++ new/xerces-2_12_1/src/org/apache/xerces/util/SymbolHash.java 2020-01-01 07:58:53.000000000 +0100 @@ -18,13 +18,13 @@ package org.apache.xerces.util; /** - * This class is an unsynchronized hash table primary used for String + * This class is an unsynchronized hash table primarily used for String * to Object mapping. * <p> * The hash code uses the same algorithm as SymbolTable class. * * @author Elena Litani - * @version $Id: SymbolHash.java 1357381 2012-07-04 19:56:10Z mrglavas $ + * @version $Id: SymbolHash.java 1867092 2019-09-18 03:54:53Z mukulg $ */ public class SymbolHash { ++++++ xerces-j2-build.patch ++++++ --- /var/tmp/diff_new_pack.2sh5zf/_old 2021-12-31 13:44:26.789265490 +0100 +++ /var/tmp/diff_new_pack.2sh5zf/_new 2021-12-31 13:44:26.789265490 +0100 @@ -1,6 +1,8 @@ ---- xerces-2_12_0/build.xml 2018-11-18 20:10:36.933534130 +0100 -+++ xerces-2_12_0/build.xml 2018-11-18 20:12:28.714126419 +0100 -@@ -38,13 +38,6 @@ +Index: xerces-2_12_1/build.xml +=================================================================== +--- xerces-2_12_1.orig/build.xml ++++ xerces-2_12_1/build.xml +@@ -38,13 +38,6 @@ Authors: <property name="tests.dir" value="./tests"/> <property name="tools.dir" value="./tools"/> @@ -14,7 +16,7 @@ <!-- Allow properties following these statements to be overridden --> <!-- Note that all of these don't have to exist. They've just been defined incase they are used. --> -@@ -71,7 +64,6 @@ +@@ -71,7 +64,6 @@ Authors: <property name='jar.junit' value='junit.jar'/> <property name='jar.ant' value='ant.jar'/> <property name='jar.ant.nodeps' value='ant-nodeps.jar'/> @@ -22,7 +24,7 @@ <property name='default.parser.config.name' value='XIncludeAwareParserConfiguration'/> <property name='default.parser.config.qualified' value='org.apache.xerces.parsers.XIncludeAwareParserConfiguration'/> -@@ -108,7 +100,6 @@ +@@ -108,7 +100,6 @@ Authors: <property name="distsrc.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/> <property name="disttools.dir" value="${build.dir}/tools"/> <property name="distbin.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/> @@ -30,7 +32,7 @@ <filter token="year" value="${year}"/> <filter token="version" value="${parser.Version}"/> -@@ -135,7 +126,6 @@ +@@ -135,7 +126,6 @@ Authors: <echo message=" jars --> generates xercesImpl & xercesSamples jars"/> <echo message=" jar-schema11 --> 'jar' + XML Schema 1.1 support"/> <echo message=" jars-schema11 --> 'jars' + XML Schema 1.1 support"/> @@ -38,7 +40,7 @@ <echo message=" docs --> generates the HTML documentation"/> <echo message=" javadocs --> generates the API docs (needs Java 1.2 or higher)"/> <echo message=" samples --> compiles the samples source code"/> -@@ -247,30 +237,6 @@ +@@ -247,30 +237,6 @@ Authors: <copy file="${src.dir}/org/apache/xerces/impl/xpath/regex/message.properties" tofile="${build.src}/org/apache/xerces/impl/xpath/regex/message_en.properties"/> @@ -69,7 +71,7 @@ <!-- substitute tokens as needed --> <replace file="${build.dir}/src/org/apache/xerces/impl/Version.java" token="@@VERSION@@" value="${parser.Name} ${parser.Version}"/> -@@ -286,7 +252,7 @@ +@@ -286,7 +252,7 @@ Authors: </fileset> </copy> @@ -78,7 +80,7 @@ destdir="${build.dest}" source="${javac.source}" target="${javac.target}" -@@ -354,7 +320,7 @@ +@@ -354,7 +320,7 @@ Authors: <copy todir="${build.samples}" > <fileset dir="${samples.dir}"/> </copy> @@ -87,7 +89,7 @@ destdir="${build.dest}" source="${javac.source}" target="${javac.target}" -@@ -374,7 +340,7 @@ +@@ -374,7 +340,7 @@ Authors: <fileset dir="${tests.dir}" excludes="dom/rename/**" /> </copy> @@ -96,7 +98,7 @@ destdir="${build.dest}" source="${javac.source}" target="${javac.target}" -@@ -438,7 +404,7 @@ +@@ -438,7 +404,7 @@ Authors: </target> @@ -105,7 +107,7 @@ <replace token="@xerces.internal" dir="${build.src}"> <replacevalue><![CDATA[<DL><DT><H1 style="font-size:110%">INTERNAL:</H1><DD>Usage of this class is not supported. It may be altered or removed at any time.</DD></DT></DL>]]></replacevalue> </replace> -@@ -453,46 +419,33 @@ +@@ -453,46 +419,33 @@ Authors: <!-- =================================================================== --> <target name="javadocs" depends="prepare-src"> @@ -155,7 +157,7 @@ /> <mkdir dir='${build.dir}/docs/javadocs/xerces2'/> -@@ -504,25 +457,23 @@ +@@ -504,25 +457,23 @@ Authors: org.apache.xerces.util, org.apache.xerces.xinclude, org.apache.xerces.xpointer' @@ -183,7 +185,7 @@ /> </target> -@@ -998,7 +949,7 @@ +@@ -1004,7 +955,7 @@ Authors: </fileset> </copy> @@ -192,7 +194,7 @@ destdir="${build.dest}" source="${javac.source}" target="${javac.target}" -@@ -1233,30 +1184,6 @@ +@@ -1239,30 +1190,6 @@ Authors: <replace file="${build.dir}/src/org/apache/xerces/parsers/AbstractSAXParser.java" token="return (fConfiguration instanceof XML11Configurable);" value="return false;"/> @@ -223,7 +225,7 @@ <!-- substitute tokens as needed --> <replace file="${build.dir}/src/org/apache/xerces/impl/Version.java" -@@ -1297,7 +1224,7 @@ +@@ -1303,7 +1230,7 @@ Authors: </fileset> </copy> @@ -232,7 +234,7 @@ destdir="${build.dest}" source="${javac.source}" target="${javac.target}" -@@ -1448,7 +1375,7 @@ +@@ -1454,7 +1381,7 @@ Authors: </fileset> </copy> @@ -241,7 +243,7 @@ destdir="${build.dest}" source="${javac.source}" target="${javac.target}" -@@ -1512,36 +1439,4 @@ +@@ -1518,36 +1445,4 @@ Authors: <copy file="${tools.dir}/${jar.serializer}" tofile="${build.dir}/${jar.serializer}"/> </target> ++++++ xercesImpl-2.12.0.pom -> xercesImpl-2.12.1.pom ++++++ --- /work/SRC/openSUSE:Factory/xerces-j2/xercesImpl-2.12.0.pom 2018-12-14 20:44:43.029730527 +0100 +++ /work/SRC/openSUSE:Factory/.xerces-j2.new.1896/xercesImpl-2.12.1.pom 2021-12-31 13:44:24.925263901 +0100 @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> - <version>2.12.0</version> + <version>2.12.1</version> <description> Xerces2 is the next generation of high performance, fully compliant XML parsers in the Apache Xerces family. This new version of Xerces introduces the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program. @@ -25,7 +25,7 @@ </licenses> <scm> <url>https://svn.apache.org/repos/asf/xerces/java/</url> - <connection>https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_2_12_0/</connection> + <connection>https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_2_12_1/</connection> </scm> <dependencies> <dependency>