Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Appendix B: Conformance

sxml is tested against the test suites of the W3C and others, which check each specification rule by rule. These are the counts of a release build on 20 October 2026. A test case counts as run unless it needs a feature sxml does not claim, such as static typing or a network connection. A test case that expects an error and gets a different error code counts as passed, as the QT4 catalog allows.

Test suiteRunPassedRate
QT4: XPath 4.0 and F&O 4.032,84132,81599.92 %
QT4: XQuery 4.0, with Update and Full Text46,23246,15899.84 %
XSLT 4.012,51812,26898.00 %
XSD 1.141,61041,59999.97 %
Test suitePassed
W3C XML Conformance Test Suite, XML 1.0 and 1.12,237 of 2,237
html5lib: tokenizer7,045 of 7,045
html5lib: tree construction1,749 of 1,753
html5lib: encoding82 of 82
Invisible XML community test suite886 of 886 run
tree-sitter grammars' own tests: parse trees and highlights1,410 of 1,419 run

The repository's README has the current counts, and docs/CONFORMANCE.md has the results by test set.

The specifications

sxml follows these specifications. The 4.0 specifications are drafts of the W3C's QT4 community group, which sxml tracks as they change.

AreaSpecification
DocumentsXML 1.0 (Fifth Edition), XML 1.1, Namespaces in XML 1.0 and 1.1
Data modelXQuery and XPath Data Model (XDM) 4.0
ExpressionsXPath 4.0; XPath and XQuery Functions and Operators (F&O) 4.0
QueriesXQuery 4.0; XQuery Update Facility 3.0; XQuery and XPath Full Text 3.0
TransformationsXSLT 4.0, which runs XSLT 1.0, 2.0 and 3.0 stylesheets; EXSLT Common
SchemasW3C XML Schema Definition Language (XSD) 1.1, Parts 1 and 2; DTDs
OutputXSLT and XQuery Serialization 4.0
Other formatsThe HTML Living Standard (parsing) and the Encoding Standard; Invisible XML 1.0; JSON (RFC 8259); CSV (RFC 4180)
ExtensionsEXPath Binary 4.0; EXPath File 4.0
TextUnicode 16.0; the Unicode Collation Algorithm and the Unicode CLDR; the IANA Time Zone Database