PureXML/Tests/Fixtures/xsts/README.md
Mihaela Mihaljevic 925172cd84
chore(test): vendor the XSTS archive (unmodified) under Tests/Fixtures (#322)
Saves the W3C XML Schema Test Suite (2006-11-06) in the repo as the
complete, unmodified xsts-2007-06-20.tar.gz (4.4 MB), the only form the
W3C Document License permits redistributing. The extracted 39,399 files
are still never committed (that would be a modified redistribution).

A README records the provenance, SHA-256, and license. scripts/fetch-xsts.sh
now extracts this vendored archive when present (no network) and only
downloads as a fallback. The archive is excluded from the test bundle in
Package.swift since the runner reads it off disk via XSTS_ROOT, not from
resources.
2026-06-26 09:20:37 +02:00

1.3 KiB

W3C XML Schema Test Suite (XSTS): vendored archive

xsts-2007-06-20.tar.gz is the complete, unmodified W3C XML Schema Test Suite, 2006-11-06 release (14,383 settled cases across roughly 39,399 files), exactly as published by the W3C.

License

The suite is published under the W3C Document License, which permits redistribution only as the complete, unmodified archive. This file is that archive, byte for byte, kept in its original .tar.gz form for that reason.

Do not commit the extracted files. Extracting them and committing the loose files is a modified redistribution and is not permitted by the license. Keep the archive sealed; extract it locally instead (see below).

Use

Extract it to the path the conformance runner expects, then point XSTS_ROOT at the result:

bash scripts/fetch-xsts.sh
export XSTS_ROOT=/private/tmp/xsts/xmlschema2006-11-06
XSTS_ROOT=$XSTS_ROOT swift test -c release --filter XSTSSuiteTests

scripts/fetch-xsts.sh extracts this vendored archive when it is present (no network needed) and falls back to downloading it from the W3C otherwise.