You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2022/01/26 11:09:27 UTC
svn commit: r1897495 [1/4] - in /xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite: ./ impl/ impl/xsl/ reports/
Author: mukulg
Date: Wed Jan 26 11:09:27 2022
New Revision: 1897495
URL: http://svn.apache.org/viewvc?rev=1897495&view=rev
Log:
committing files, for xercesj's implementation of w3c xml schema 1.0 test suite
Added:
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/LICENSE
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/README
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper$XSDTestSuiteErrorHandler.class (with props)
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.class (with props)
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.java
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/compile_java_classes.bat
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-all.bat
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-boeing.bat
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-ms.bat
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-nist.bat
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-sun.bat
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.boeing.xml
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.ms.xml
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.nist.xml
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.sun.xml
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/xsl/
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/xsl/run-schema10-tests.xsl
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/boeing_xsd10_testsuite_results.html
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/ms_xsd10_testsuite_results.html
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/nist_xsd10_testsuite_results.html
xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/sun_xsd10_testsuite_results.html
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/LICENSE
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/LICENSE?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/LICENSE (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/LICENSE Wed Jan 26 11:09:27 2022
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/README
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/README?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/README (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/README Wed Jan 26 11:09:27 2022
@@ -0,0 +1,9 @@
+To run the W3C XML Schema 1.0 test suite, on Apache Xerces XSD 1.0 processor, please go to the
+folder "impl" and run the batch script "run-suite-all.bat".
+
+The test results would be, produced within the folder w3c_xmlschema10-testsuite/reports.
+
+Currently, the batch scripts for this test suite utility, only supports Windows platform.
+
+
+Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper$XSDTestSuiteErrorHandler.class
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper%24XSDTestSuiteErrorHandler.class?rev=1897495&view=auto
==============================================================================
Binary file - no diff available.
Propchange: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper$XSDTestSuiteErrorHandler.class
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.class
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.class?rev=1897495&view=auto
==============================================================================
Binary file - no diff available.
Propchange: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.class
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.java?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.java (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/XMLValidatorHelper.java Wed Jan 26 11:09:27 2022
@@ -0,0 +1,113 @@
+import javax.xml.XMLConstants;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.validation.Schema;
+import javax.xml.validation.SchemaFactory;
+import javax.xml.validation.Validator;
+import org.xml.sax.ErrorHandler;
+import org.xml.sax.SAXException;
+import org.xml.sax.SAXParseException;
+import org.xml.sax.SAXNotRecognizedException;
+import org.xml.sax.SAXNotSupportedException;
+import org.apache.xerces.impl.Constants;
+
+/*
+ Class providing support for determining "XSD Schema document" and
+ "XML instance document" validity for Xerces-J, for W3C XML Schema 1.0
+ test-suite.
+
+ @author: Mukul Gandhi, mukulg@apache.org
+
+ @creation date: 2022-01-21
+*/
+public class XMLValidatorHelper {
+
+ /*
+ Method to check for validity of an XML schema document.
+ */
+ public static boolean isSchemaValid(String schemaUri, String testSetName) throws SAXNotRecognizedException, SAXNotSupportedException {
+
+ boolean isSchemaDocValid = true;
+ SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+
+ if ("XmlVersions".equals(testSetName)) {
+ System.setProperty("org.apache.xerces.xni.parser.XMLParserConfiguration", "org.apache.xerces.parsers.XML11Configuration");
+ }
+
+ try {
+ Schema schema = schemaFactory.newSchema(new StreamSource(schemaUri));
+ }
+ catch(SAXException saxException) {
+ isSchemaDocValid = false;
+ saxException.printStackTrace();
+ }
+
+ return isSchemaDocValid;
+
+ }
+
+
+ /*
+ Method to check for validity of an XML document with an XML schema.
+ */
+ public static String getInstanceDocValidity(String xmlDocUri, String schemaUri, String vendorId, String testSetName) throws SAXNotRecognizedException, SAXNotSupportedException {
+
+ SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+ Schema schema = null;
+ String validityStatus = "valid";
+
+ if ("XmlVersions".equals(testSetName)) {
+ System.setProperty("org.apache.xerces.xni.parser.XMLParserConfiguration", "org.apache.xerces.parsers.XML11Configuration");
+ }
+
+ try {
+ if ("null".equals(schemaUri)) {
+ schemaFactory.setFeature("http://apache.org/xml/features/honour-all-schemaLocations", true);
+ schema = schemaFactory.newSchema();
+ }
+ else {
+ schema = schemaFactory.newSchema(new StreamSource(schemaUri));
+ }
+ Validator validator = schema.newValidator();
+ XSDTestSuiteErrorHandler errorHandler = new XSDTestSuiteErrorHandler();
+ errorHandler.reset();
+ validator.setErrorHandler(errorHandler);
+ validator.validate(new StreamSource(xmlDocUri));
+ validityStatus = errorHandler.getValidityStatus();
+ }
+ catch (Exception ex) {
+ validityStatus = "notKnown";
+ }
+
+ return validityStatus;
+
+ }
+
+ /*
+ Class implementing an Error Handler for a schema validation episode.
+ */
+ static class XSDTestSuiteErrorHandler implements ErrorHandler {
+
+ private String validityStatus = "notKnown";
+
+ public void error(SAXParseException exception) throws SAXException {
+ validityStatus = "invalid";
+ }
+
+ public void fatalError(SAXParseException exception) throws SAXException {
+ validityStatus = "fatalerror";
+ }
+
+ public void warning(SAXParseException exception) throws SAXException {
+ // NO OP
+ }
+
+ public String getValidityStatus() {
+ return validityStatus;
+ }
+
+ public void reset() {
+ validityStatus = "valid";
+ }
+ }
+
+}
\ No newline at end of file
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/compile_java_classes.bat
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/compile_java_classes.bat?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/compile_java_classes.bat (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/compile_java_classes.bat Wed Jan 26 11:09:27 2022
@@ -0,0 +1,9 @@
+@echo off
+
+REM set these variables for local environment
+
+SET JAVA_HOME=d:/jdk1.7.0_80
+
+SET XERCES_BUILD=d:/xerces-2_12_2
+
+%JAVA_HOME%/bin/javac -classpath %XERCES_BUILD%/xercesImpl.jar;%XERCES_BUILD%/xml-apis.jar *.java
\ No newline at end of file
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-all.bat
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-all.bat?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-all.bat (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-all.bat Wed Jan 26 11:09:27 2022
@@ -0,0 +1,29 @@
+@echo off
+
+REM set these variables for local environment
+
+SET JAVA_HOME=d:/jdk1.7.0_80
+
+SET XERCES_BUILD=d:/eclipseWorkspaces/xercesj/xerces-java-trunk/build
+SET XALAN_HOME=d:/xalan-j_2_7_2
+
+echo ##### Running W3C XML Schema 1.0 test suite, on Apache Xerces XML Schema 1.0 processor #####
+echo.
+
+echo Running NIST XML Schema 1.0 tests
+echo.
+call run-suite-nist.bat
+
+echo Running Sun Microsystems XML Schema 1.0 tests
+echo.
+call run-suite-sun.bat
+
+echo Running Microsoft XML Schema 1.0 tests
+echo.
+call run-suite-ms.bat
+
+echo Running Boeing XML Schema 1.0 tests
+echo.
+call run-suite-boeing.bat
+
+echo All the tests have been run successfully. The reports are available within the folder ../reports.
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-boeing.bat
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-boeing.bat?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-boeing.bat (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-boeing.bat Wed Jan 26 11:09:27 2022
@@ -0,0 +1,3 @@
+@echo off
+
+%JAVA_HOME%/bin/java -Djava.endorsed.dirs=%XERCES_BUILD%;%XALAN_HOME% org.apache.xalan.xslt.Process -in suite.boeing.xml -xsl xsl/run-schema10-tests.xsl -param vendorId Boeing -param vendorUrl https://www.boeing.com > ../reports/boeing_xsd10_testsuite_results.html 2>NUL
\ No newline at end of file
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-ms.bat
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-ms.bat?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-ms.bat (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-ms.bat Wed Jan 26 11:09:27 2022
@@ -0,0 +1,3 @@
+@echo off
+
+%JAVA_HOME%/bin/java -Djava.endorsed.dirs=%XERCES_BUILD%;%XALAN_HOME% org.apache.xalan.xslt.Process -in suite.ms.xml -xsl xsl/run-schema10-tests.xsl -param vendorId Microsoft -param vendorUrl https://www.microsoft.com > ../reports/ms_xsd10_testsuite_results.html 2>NUL
\ No newline at end of file
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-nist.bat
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-nist.bat?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-nist.bat (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-nist.bat Wed Jan 26 11:09:27 2022
@@ -0,0 +1,3 @@
+@echo off
+
+%JAVA_HOME%/bin/java -Djava.endorsed.dirs=%XERCES_BUILD%;%XALAN_HOME% org.apache.xalan.xslt.Process -in suite.nist.xml -xsl xsl/run-schema10-tests.xsl -param vendorId NIST -param vendorUrl https://www.nist.gov > ../reports/nist_xsd10_testsuite_results.html 2>NUL
\ No newline at end of file
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-sun.bat
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-sun.bat?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-sun.bat (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/run-suite-sun.bat Wed Jan 26 11:09:27 2022
@@ -0,0 +1,3 @@
+@echo off
+
+%JAVA_HOME%/bin/java -Djava.endorsed.dirs=%XERCES_BUILD%;%XALAN_HOME% org.apache.xalan.xslt.Process -in suite.sun.xml -xsl xsl/run-schema10-tests.xsl -param vendorId "Sun Microsystems" -param vendorUrl https://www.oracle.com > ../reports/sun_xsd10_testsuite_results.html 2>NUL
\ No newline at end of file
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.boeing.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.boeing.xml?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.boeing.xml (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.boeing.xml Wed Jan 26 11:09:27 2022
@@ -0,0 +1,24 @@
+<?xml version='1.0'?>
+<ts:testSuite xmlns:ts="http://www.w3.org/XML/2004/xml-schema-test-suite/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.w3.org/XML/2004/xml-schema-test-suite/ nistMeta/AnnotatedTSSchema.xsd" name="TS_2006" releaseDate="2007-06-15" schemaVersion="W3C XML Schema 1.0 2nd edition">
+ <ts:annotation>
+ <ts:documentation>The entire contents of this directory and all its
+sub-directories are © copyright World Wide Web Consortium 2006, 2007, and
+are made available under the terms of the W3C DOCUMENT NOTICE AND LICENSE,
+available online at
+http://www.w3.org/Consortium/Legal/copyright-documents-19990405.html.</ts:documentation>
+ <ts:documentation>The first testSet was contributed by NIST in 2004. It was
+published in the previous release of the suite, and is included here
+unchanged.</ts:documentation>
+ <ts:documentation>The second testSet is an updated and extended version of
+one originally contributed by Sun in 2004.</ts:documentation>
+ <ts:documentation>The next twelve testSets were all contributed by Sun in
+2006.</ts:documentation>
+ <ts:documentation>The next 17 testSets were contributed by Microsoft in
+2006. They supersede and significantly extend the Microsoft contribution
+of 2004.</ts:documentation>
+ <ts:documentation>The final test set was contributed by Boeing in 2007.</ts:documentation>
+ </ts:annotation>
+
+ <ts:testSetRef xlink:href="../boeingMeta/BoeingXSDTestSet.testSet"/>
+
+</ts:testSuite>
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.ms.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.ms.xml?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.ms.xml (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.ms.xml Wed Jan 26 11:09:27 2022
@@ -0,0 +1,40 @@
+<?xml version='1.0'?>
+<ts:testSuite xmlns:ts="http://www.w3.org/XML/2004/xml-schema-test-suite/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.w3.org/XML/2004/xml-schema-test-suite/ nistMeta/AnnotatedTSSchema.xsd" name="TS_2006" releaseDate="2007-06-15" schemaVersion="W3C XML Schema 1.0 2nd edition">
+ <ts:annotation>
+ <ts:documentation>The entire contents of this directory and all its
+sub-directories are © copyright World Wide Web Consortium 2006, 2007, and
+are made available under the terms of the W3C DOCUMENT NOTICE AND LICENSE,
+available online at
+http://www.w3.org/Consortium/Legal/copyright-documents-19990405.html.</ts:documentation>
+ <ts:documentation>The first testSet was contributed by NIST in 2004. It was
+published in the previous release of the suite, and is included here
+unchanged.</ts:documentation>
+ <ts:documentation>The second testSet is an updated and extended version of
+one originally contributed by Sun in 2004.</ts:documentation>
+ <ts:documentation>The next twelve testSets were all contributed by Sun in
+2006.</ts:documentation>
+ <ts:documentation>The next 17 testSets were contributed by Microsoft in
+2006. They supersede and significantly extend the Microsoft contribution
+of 2004.</ts:documentation>
+ <ts:documentation>The final test set was contributed by Boeing in 2007.</ts:documentation>
+ </ts:annotation>
+
+ <ts:testSetRef xlink:href="../msMeta/Additional_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Annotations_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/AttributeGroup_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Attribute_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/ComplexType_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/DataTypes_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Element_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Errata10_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Group_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/IdentityConstraint_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/ModelGroups_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Notations_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Particles_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Regex_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Schema_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/SimpleType_w3c.xml"/>
+ <ts:testSetRef xlink:href="../msMeta/Wildcards_w3c.xml"/>
+
+</ts:testSuite>
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.nist.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.nist.xml?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.nist.xml (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.nist.xml Wed Jan 26 11:09:27 2022
@@ -0,0 +1,24 @@
+<?xml version='1.0'?>
+<ts:testSuite xmlns:ts="http://www.w3.org/XML/2004/xml-schema-test-suite/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.w3.org/XML/2004/xml-schema-test-suite/ nistMeta/AnnotatedTSSchema.xsd" name="TS_2006" releaseDate="2007-06-15" schemaVersion="W3C XML Schema 1.0 2nd edition">
+ <ts:annotation>
+ <ts:documentation>The entire contents of this directory and all its
+sub-directories are © copyright World Wide Web Consortium 2006, 2007, and
+are made available under the terms of the W3C DOCUMENT NOTICE AND LICENSE,
+available online at
+http://www.w3.org/Consortium/Legal/copyright-documents-19990405.html.</ts:documentation>
+ <ts:documentation>The first testSet was contributed by NIST in 2004. It was
+published in the previous release of the suite, and is included here
+unchanged.</ts:documentation>
+ <ts:documentation>The second testSet is an updated and extended version of
+one originally contributed by Sun in 2004.</ts:documentation>
+ <ts:documentation>The next twelve testSets were all contributed by Sun in
+2006.</ts:documentation>
+ <ts:documentation>The next 17 testSets were contributed by Microsoft in
+2006. They supersede and significantly extend the Microsoft contribution
+of 2004.</ts:documentation>
+ <ts:documentation>The final test set was contributed by Boeing in 2007.</ts:documentation>
+ </ts:annotation>
+
+ <ts:testSetRef xlink:href="../nistMeta/NISTXMLSchemaDatatypes.testSet"/>
+
+</ts:testSuite>
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.sun.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.sun.xml?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.sun.xml (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/suite.sun.xml Wed Jan 26 11:09:27 2022
@@ -0,0 +1,36 @@
+<?xml version='1.0'?>
+<ts:testSuite xmlns:ts="http://www.w3.org/XML/2004/xml-schema-test-suite/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.w3.org/XML/2004/xml-schema-test-suite/ nistMeta/AnnotatedTSSchema.xsd" name="TS_2006" releaseDate="2007-06-15" schemaVersion="W3C XML Schema 1.0 2nd edition">
+ <ts:annotation>
+ <ts:documentation>The entire contents of this directory and all its
+sub-directories are © copyright World Wide Web Consortium 2006, 2007, and
+are made available under the terms of the W3C DOCUMENT NOTICE AND LICENSE,
+available online at
+http://www.w3.org/Consortium/Legal/copyright-documents-19990405.html.</ts:documentation>
+ <ts:documentation>The first testSet was contributed by NIST in 2004. It was
+published in the previous release of the suite, and is included here
+unchanged.</ts:documentation>
+ <ts:documentation>The second testSet is an updated and extended version of
+one originally contributed by Sun in 2004.</ts:documentation>
+ <ts:documentation>The next twelve testSets were all contributed by Sun in
+2006.</ts:documentation>
+ <ts:documentation>The next 17 testSets were contributed by Microsoft in
+2006. They supersede and significantly extend the Microsoft contribution
+of 2004.</ts:documentation>
+ <ts:documentation>The final test set was contributed by Boeing in 2007.</ts:documentation>
+ </ts:annotation>
+
+ <ts:testSetRef xlink:href="../sunMeta/suntest.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/AGroupDef.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/AttrDecl.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/AttrUse.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/CType.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/ElemDecl.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/IdConstrDefs.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/MGroup.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/MGroupDef.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/Notation.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/SType.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/Schema.testSet"/>
+ <ts:testSetRef xlink:href="../sunMeta/Wildcard.testSet"/>
+
+</ts:testSuite>
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/xsl/run-schema10-tests.xsl
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/xsl/run-schema10-tests.xsl?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/xsl/run-schema10-tests.xsl (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/impl/xsl/run-schema10-tests.xsl Wed Jan 26 11:09:27 2022
@@ -0,0 +1,260 @@
+<!--
+ XML Schema 1.0 test-suite XSLT stylesheet.
+
+ @author: Mukul Gandhi, mukulg@apache.org
+
+ @creation date: 2022-01-21
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ts="http://www.w3.org/XML/2004/xml-schema-test-suite/"
+ xmlns:java="http://xml.apache.org/xalan/java"
+ xmlns:exslt="http://exslt.org/common"
+ exclude-result-prefixes="xlink xsi ts java exslt"
+ version="1.0">
+
+ <xsl:output method="html"/>
+
+ <xsl:param name="vendorId"/>
+
+ <xsl:param name="vendorUrl"/>
+
+ <xsl:variable name="testColorCode">
+ <pass>#CCFF99</pass>
+ <fail>#FFCC99</fail>
+ <undecided>yellow</undecided>
+ </xsl:variable>
+
+ <xsl:variable name="dateFormatter" select="java:java.text.SimpleDateFormat.new('yyyy-MM-dd HH:mm:ss')"/>
+ <xsl:variable name="currentDate" select="java:java.util.Date.new()"/>
+
+ <!--
+ The starting template.
+ -->
+ <xsl:template match="ts:testSuite">
+ <html>
+ <head>
+ <title>XML Schema 1.0 test suite results</title>
+ </head>
+ <body>
+ <h3><u>Apache Xerces XML Schema 1.0 test suite results</u></h3>
+ <h3><a href="{$vendorUrl}"><xsl:value-of select="$vendorId" /></a> XML Schema 1.0 tests</h3>
+ <p>Report generated on : <xsl:value-of select="java:format($dateFormatter, $currentDate)" /></p>
+ <xsl:variable name="testSuiteResults">
+ <xsl:apply-templates select="ts:testSetRef/@xlink:href" mode="testSet" />
+ </xsl:variable>
+ <h3><font color="green">Test-suite run summary :</font></h3>
+ <table border="1">
+ <tr>
+ <td align="center">Total tests</td>
+ <td align="center">Tests passed</td>
+ <td align="center">Success %</td>
+ </tr>
+ <xsl:variable name="totalTests">
+ <xsl:value-of select="count(document(ts:testSetRef/@xlink:href)//ts:schemaTest |
+ document(ts:testSetRef/@xlink:href)//ts:instanceTest)" />
+ </xsl:variable>
+ <xsl:variable name="testsPassed" select="count(exslt:node-set($testSuiteResults)/tr/td[@id = 'pass'])" />
+ <tr>
+ <td align="center"><xsl:value-of select="$totalTests" /></td>
+ <td align="center"><xsl:value-of select="$testsPassed" /></td>
+ <td align="center"><xsl:value-of select="format-number(($testsPassed * 100) div $totalTests, '##.##')" /></td>
+ </tr>
+ </table>
+ <br/>
+ <h3><font color="green">Detailed tests status :</font></h3>
+ <table border="1">
+ <xsl:call-template name="generateReportHeader" />
+ <!-- render table contents -->
+ <xsl:call-template name="renderTableContents">
+ <xsl:with-param name="tableRows" select="exslt:node-set($testSuiteResults)/tr" />
+ </xsl:call-template>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+
+ <!--
+ Render table rows. Leave-out last "td" cell designated to track schema and "instance document" validity.
+ -->
+ <xsl:template name="renderTableContents">
+ <xsl:param name="tableRows" />
+
+ <xsl:for-each select="$tableRows">
+ <tr>
+ <xsl:copy-of select="td[not(@id = 'pass')]" />
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+
+ <!--
+ Template to process a testSet (identified by the URI of test-set).
+ -->
+ <xsl:template match="@xlink:href" mode="testSet">
+ <xsl:variable name="testSetDoc" select="document(.)" />
+ <tr>
+ <td> </td>
+ <td align="center" bgcolor="#FFFF99"><xsl:value-of select="$testSetDoc/ts:testSet/@name" /></td>
+ <td> </td>
+ <td> </td>
+ <td> </td>
+ <td> </td>
+ <td> </td>
+ </tr>
+ <xsl:apply-templates select="$testSetDoc/ts:testSet/ts:testGroup" />
+ </xsl:template>
+
+
+ <!--
+ Template to process a testGroup.
+ -->
+ <xsl:template match="ts:testGroup">
+ <xsl:variable name="testSetContextNode" select="/ts:testSet"/>
+ <tr>
+ <td> </td>
+ <td> </td>
+ <!--<td align="center" bgcolor="{normalize-space($testGroupClrCode)}"><xsl:value-of select="@name" /></td>-->
+ <td align="center"><xsl:value-of select="@name" /></td>
+ <td> </td>
+ <td> </td>
+ <td> </td>
+ <td> </td>
+ </tr>
+ <xsl:variable name="schemaTestResult">
+ <xsl:apply-templates select="ts:schemaTest" />
+ </xsl:variable>
+ <tr>
+ <!-- don't produce the element node "schDocValidity" in HTML output. it's an internal meta data. -->
+ <xsl:copy-of select="exslt:node-set($schemaTestResult)/tr/*[position() < last()]"/>
+ </tr>
+ <xsl:apply-templates select="ts:instanceTest">
+ <xsl:with-param name="schDocValidity" select="exslt:node-set($schemaTestResult)/tr/schDocValidity"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
+
+ <!--
+ Template to invoke a "schema test".
+ -->
+ <xsl:template match="ts:schemaTest">
+ <tr>
+ <!-- generating serial no for the test case -->
+ <td align="center"><xsl:value-of select="count(preceding::ts:schemaTest | preceding::ts:instanceTest) + 1" />.</td>
+ <td> </td>
+ <td> </td>
+ <td align="center"><xsl:value-of select="@name" /></td>
+ <td> </td>
+ <xsl:variable name="schemaDocValidity">
+ <xsl:choose>
+ <xsl:when test="java:XMLValidatorHelper.isSchemaValid(ts:schemaDocument[1]/@xlink:href, /ts:testSet/@name)">
+ valid
+ </xsl:when>
+ <xsl:otherwise>
+ invalid
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="clrStatus">
+ <xsl:call-template name="getTestCaseColorStatus">
+ <xsl:with-param name="expectedValidity" select="normalize-space(ts:expected/@validity)" />
+ <xsl:with-param name="actualValidity" select="normalize-space($schemaDocValidity)" />
+ </xsl:call-template>
+ </xsl:variable>
+ <td align="center" bgcolor="{normalize-space($clrStatus)}"><xsl:value-of select="normalize-space(ts:expected/@validity)" /></td>
+ <td align="center" bgcolor="{normalize-space($clrStatus)}"><xsl:value-of select="normalize-space($schemaDocValidity)" /></td>
+ <!-- a hidden table cell is kept here to track test result -->
+ <xsl:if test="normalize-space($schemaDocValidity) = normalize-space(ts:expected/@validity)">
+ <td id="pass" />
+ </xsl:if>
+ <!-- save internal meta data, to prohibit instance tests to run if schema test has failed -->
+ <schDocValidity><xsl:value-of select="normalize-space($schemaDocValidity)"/></schDocValidity>
+ </tr>
+ </xsl:template>
+
+ <!--
+ Template to invoke an instance test.
+ -->
+ <xsl:template match="ts:instanceTest">
+ <xsl:param name="schDocValidity"/>
+
+ <tr>
+ <!-- generating serial no for the test case -->
+ <td align="center"><xsl:value-of select="count(preceding::ts:schemaTest | preceding::ts:instanceTest) + 1" />.</td>
+ <td> </td>
+ <td> </td>
+ <td> </td>
+ <td align="center"><xsl:value-of select="@name" /></td>
+ <xsl:choose>
+ <xsl:when test="$schDocValidity = 'valid'">
+ <xsl:variable name="instanceDocValidity">
+ <xsl:choose>
+ <xsl:when test="document(ts:instanceDocument/@xlink:href)/*/@xsi:schemaLocation or
+ document(ts:instanceDocument/@xlink:href)/*/@xsi:noNamespaceSchemaLocation">
+ <xsl:value-of select="java:XMLValidatorHelper.getInstanceDocValidity(ts:instanceDocument/@xlink:href, 'null', $vendorId, /ts:testSet/@name)" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="java:XMLValidatorHelper.getInstanceDocValidity(ts:instanceDocument/@xlink:href,
+ preceding-sibling::ts:schemaTest[1]/ts:schemaDocument[1]/@xlink:href, $vendorId, /ts:testSet/@name)" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="clrStatus">
+ <xsl:call-template name="getTestCaseColorStatus">
+ <xsl:with-param name="expectedValidity" select="normalize-space(ts:expected/@validity)" />
+ <xsl:with-param name="actualValidity" select="normalize-space($instanceDocValidity)" />
+ </xsl:call-template>
+ </xsl:variable>
+ <td align="center" bgcolor="{normalize-space($clrStatus)}"><xsl:value-of select="normalize-space(ts:expected/@validity)" /></td>
+ <td align="center" bgcolor="{normalize-space($clrStatus)}"><xsl:value-of select="normalize-space($instanceDocValidity)" /></td>
+ <!-- a hidden table cell to track test result, status -->
+ <xsl:if test="normalize-space($instanceDocValidity) = normalize-space(ts:expected/@validity)">
+ <td id="pass" />
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- if schema is 'invalid', don't run the corresponding instance tests and set instance test results as 'pass' -->
+ <td align="center" bgcolor="{exslt:node-set($testColorCode)/pass}"><xsl:value-of select="normalize-space(ts:expected/@validity)" /></td>
+ <td align="center" bgcolor="{exslt:node-set($testColorCode)/pass}"><xsl:value-of select="normalize-space(ts:expected/@validity)" /></td>
+ <!-- a hidden table cell to track test result, status -->
+ <td id="pass" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ </xsl:template>
+
+ <!--
+ Generate report header.
+ -->
+ <xsl:template name="generateReportHeader">
+ <tr>
+ <td align="center"><b>SL. No.</b></td>
+ <td align="center"><b>TestSet name</b></td>
+ <td align="center"><b>TestGroup name</b></td>
+ <td align="center"><b>Schema Test name</b></td>
+ <td align="center"><b>Instance Test name</b></td>
+ <td align="center"><b>Expected Test status</b></td>
+ <td align="center"><b>Actual Test status</b></td>
+ </tr>
+ </xsl:template>
+
+ <!--
+ Get color code value to display, for a test-case success or failure.
+ -->
+ <xsl:template name="getTestCaseColorStatus">
+ <xsl:param name="expectedValidity" />
+ <xsl:param name="actualValidity" />
+
+ <xsl:choose>
+ <xsl:when test="$expectedValidity = $actualValidity">
+ <xsl:value-of select="exslt:node-set($testColorCode)/pass"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="exslt:node-set($testColorCode)/fail"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/boeing_xsd10_testsuite_results.html
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/boeing_xsd10_testsuite_results.html?rev=1897495&view=auto
==============================================================================
--- xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/boeing_xsd10_testsuite_results.html (added)
+++ xerces/java/branches/xml-schema-1.0-tests/w3c_xmlschema10-testsuite/reports/boeing_xsd10_testsuite_results.html Wed Jan 26 11:09:27 2022
@@ -0,0 +1,109 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>XML Schema 1.0 test suite results</title>
+</head>
+<body>
+<h3>
+<u>Apache Xerces XML Schema 1.0 test suite results</u>
+</h3>
+<h3>
+<a href="https://www.boeing.com">Boeing</a> XML Schema 1.0 tests</h3>
+<p>Report generated on : 2022-01-26 15:37:29</p>
+<h3>
+<font color="green">Test-suite run summary :</font>
+</h3>
+<table border="1">
+<tr>
+<td align="center">Total tests</td><td align="center">Tests passed</td><td align="center">Success %</td>
+</tr>
+<tr>
+<td align="center">18</td><td align="center">18</td><td align="center">100</td>
+</tr>
+</table>
+<br>
+<h3>
+<font color="green">Detailed tests status :</font>
+</h3>
+<table border="1">
+<tr>
+<td align="center"><b>SL. No.</b></td><td align="center"><b>TestSet name</b></td><td align="center"><b>TestGroup name</b></td><td align="center"><b>Schema Test name</b></td><td align="center"><b>Instance Test name</b></td><td align="center"><b>Expected Test status</b></td><td align="center"><b>Actual Test status</b></td>
+</tr>
+<tr>
+<td> </td><td bgcolor="#FFFF99" align="center">BoeingXSDTestCases</td><td> </td><td> </td><td> </td><td> </td><td> </td>
+</tr>
+<tr>
+<td> </td><td> </td><td align="center">ipo1</td><td> </td><td> </td><td> </td><td> </td>
+</tr>
+<tr>
+<td align="center">1.</td><td> </td><td> </td><td align="center">ipo1</td><td> </td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">2.</td><td> </td><td> </td><td> </td><td align="center">ipo_1</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">3.</td><td> </td><td> </td><td> </td><td align="center">ipo_2</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td> </td><td> </td><td align="center">ipo2</td><td> </td><td> </td><td> </td><td> </td>
+</tr>
+<tr>
+<td align="center">4.</td><td> </td><td> </td><td align="center">ipo2</td><td> </td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">5.</td><td> </td><td> </td><td> </td><td align="center">ipo_1</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">6.</td><td> </td><td> </td><td> </td><td align="center">ipo_2</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td> </td><td> </td><td align="center">ipo3</td><td> </td><td> </td><td> </td><td> </td>
+</tr>
+<tr>
+<td align="center">7.</td><td> </td><td> </td><td align="center">ipo3</td><td> </td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">8.</td><td> </td><td> </td><td> </td><td align="center">ipo_1</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">9.</td><td> </td><td> </td><td> </td><td align="center">ipo_2</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td> </td><td> </td><td align="center">ipo4</td><td> </td><td> </td><td> </td><td> </td>
+</tr>
+<tr>
+<td align="center">10.</td><td> </td><td> </td><td align="center">ipo4</td><td> </td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">11.</td><td> </td><td> </td><td> </td><td align="center">ipo_1</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">12.</td><td> </td><td> </td><td> </td><td align="center">ipo_2</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td> </td><td> </td><td align="center">ipo5</td><td> </td><td> </td><td> </td><td> </td>
+</tr>
+<tr>
+<td align="center">13.</td><td> </td><td> </td><td align="center">ipo5</td><td> </td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">14.</td><td> </td><td> </td><td> </td><td align="center">ipo_1</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">15.</td><td> </td><td> </td><td> </td><td align="center">ipo_2</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td> </td><td> </td><td align="center">ipo6</td><td> </td><td> </td><td> </td><td> </td>
+</tr>
+<tr>
+<td align="center">16.</td><td> </td><td> </td><td align="center">ipo6</td><td> </td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">17.</td><td> </td><td> </td><td> </td><td align="center">ipo_1</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+<tr>
+<td align="center">18.</td><td> </td><td> </td><td> </td><td align="center">ipo_2</td><td bgcolor="#CCFF99" align="center">valid</td><td bgcolor="#CCFF99" align="center">valid</td>
+</tr>
+</table>
+</body>
+</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org