Skip to content

Commit fac3caa

Browse files
rmrayaCopilot
andcommitted
Improved semantic validation
Co-authored-by: Copilot <copilot@github.com>
1 parent 2a12e6e commit fac3caa

6 files changed

Lines changed: 59 additions & 1529 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ TypesXML supports three grammar types with different capabilities:
7474

7575
- **DTD**: Full validation when `setValidating(true)` is enabled. Default attributes merge automatically regardless of validation mode.
7676
- **RelaxNG**: Default attributes are extracted and merged during parsing. No validation—defaults only.
77-
- **XML Schema**: Full validation when `setValidating(true)` is enabled, passing 95.8% of the W3C XML Schema Test Suite (2006 edition). Default attributes are also extracted and merged during parsing regardless of validation mode.
77+
- **XML Schema**: Full validation when `setValidating(true)` is enabled, passing 96.3% of the W3C XML Schema Test Suite (2006 edition). Default attributes are also extracted and merged during parsing regardless of validation mode.
7878

7979
All grammars are loaded automatically when referenced in XML documents (via DOCTYPE, `xsi:schemaLocation`, or processing instructions) and resolved through the catalog if configured. Use `parser.processedSchemaLocations` and `parser.processedNamespaces` to confirm which grammars loaded successfully.
8080

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Core capabilities for parsing, validation, and integration of XML documents:
6060
### Compliance
6161

6262
* 100% W3C XML DTD test suite
63-
* 95.8% W3C XML Schema test suite
63+
* 96.3% W3C XML Schema test suite
6464

6565
## SAX Parser
6666

@@ -218,7 +218,7 @@ The script compiles the TypeScript sources and executes `ts/tests/DTDTestSuite.t
218218

219219
### XML Schema
220220

221-
TypesXML currently passes **95.8%** of the W3C XML Schema Test Suite (2006 edition, ~40,000 tests), the only native TypeScript implementation of XML Schema 1.0 validated against the official W3C test suite.
221+
TypesXML currently passes **96.3%** of the W3C XML Schema Test Suite (2006 edition, ~40,000 tests), the only native TypeScript implementation of XML Schema 1.0 validated against the official W3C test suite.
222222

223223
1. Download the latest archive from the [XML Schema Version 1.0, 2nd Edition](https://www.w3.org/XML/2004/xml-schema-test-suite/xmlschema2006-11-06/xsts-2007-06-20.tar.gz).
224224
2. Extract the archive into `./tests/` so the test cases are available under `./tests/xmlschema2006-11-06`.

0 commit comments

Comments
 (0)