Skip to content

Validator module: php-core (default), SaxonC (official), remote API; Parser; rules:update - #1

Merged
zifengw merged 4 commits into
mainfrom
val/validator
Nov 25, 2026
Merged

zifengw merged 4 commits into
mainfrom
val/validator

Conversation

@zifengw

@zifengw zifengw commented Nov 25, 2026

Copy link
Copy Markdown

Validator stream (Validator*, Parser::parse(), rules:update).

  • php-core (default, pure PHP): evaluates the bundled official KoSIT/CEN schematron files with a PHP XPath 2.0 engine. Results labelled engine php-core / conformance pre-check / checked core-subset.
  • saxonc (optional SaxonC-HE ext): official rules, results identical to the W System engine (195/195 golden cases incl. messages/locations).
  • HttpValidator (engine remote, opt-in, file leaves the machine).
  • Shared corpus wsystemdev/einvoice-validator fixtures (17): verdicts pass for php-core and saxonc.
  • Parser::parse(): identical to the engine on 198 files (one engine bug not copied, see ParserTest).
  • CI: new saxonc job (8.1-8.4) builds SaxonC-HE 13.1.1 and runs tests with WSYSTEM_REQUIRE_SAXONC=1 plus the php-core vs SaxonC differential.
  • Docs: docs/validator.md, docs/saxonc.md, docs/validator-rules.md (TK4-05 wording).

W System added 4 commits November 25, 2026 18:44
…ng, SaxonC backend (official KoSIT/CEN rules), SK/NO national checks; parity corpus (195 cases) identical to the W System engine
…dled official KoSIT/CEN schematron files), RuleEvaluationError, SaxonC crash-safe invocation, shared einvoice-validator corpus tests for both engines
…LT pattern errors), HttpValidator (remote), RuleUpdater (rules:update), Parser::parse(), SaxonC CI job, docs; shared-corpus, XPath-vs-Saxon, parser parity tests
…diff differential on 3 seeds; CI: SaxonC-HE build without install target; regenerated rule coverage
@zifengw
zifengw merged commit 975c3c5 into main Nov 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant