Skip to content

docs(schematron): README rule tables match the 11 patterns; count SVRL by @role - #26

Merged
karlkauc merged 1 commit into
mainfrom
docs/schematron-readme-pattern-tables
Aug 30, 2026
Merged

docs(schematron): README rule tables match the 11 patterns; count SVRL by @role#26
karlkauc merged 1 commit into
mainfrom
docs/schematron-readme-pattern-tables

Conversation

@karlkauc

Copy link
Copy Markdown
Contributor

Summary

Follow-up deferred from #25 (would have conflicted with #23):

  • Rule tables rewritten — "Validation Rules Summary" still described the pre-split ruleset (7 sections; percentage/position rules folded into "Pattern 3"). Now one section per <pattern> in basic_checks.sch, in file order, with pattern id, real rule contexts, and a note on each pattern that exists only to avoid ISO rule shadowing (4, 6, 8).
  • SVRL counting fixed — the PowerShell/Bash/Python/Java snippets treated failed-assert = ERROR and successful-report = WARNING. Severity is @role: most warnings here are <assert role="warning"> (→ failed-assert), only the rounding checks are <report>, so the snippets printed Warnings: 0 on the canonical sample. All four now classify by @role; SVRL example + "Key Elements" table updated.
  • Tolerance section cross-references the Basic XSLT report (bands must stay in sync).

Verification

xmllint --xpath counts from the Bash snippet on a real SVRL of the negative fixture: 1 error / 12 warnings — identical to the Java runner's summary. Docs-only change; CI unaffected.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YXZWhwE5EbHSybt55K6oUZ

…L by @ROLE

The "Validation Rules Summary" still described the pre-split ruleset
(7 sections, percentage/position rules folded into "Pattern 3"). Rewrite it
as one section per <pattern> in basic_checks.sch, in file order, with the
pattern id, the actual rule contexts, and a note on each pattern that exists
only to avoid ISO rule shadowing.

The PowerShell/Bash/Python/Java result-counting snippets classified
failed-assert as ERROR and successful-report as WARNING. In this ruleset
severity is the @ROLE attribute: most warnings are <assert role="warning">
(=> failed-assert) and only the rounding checks are <report>, so those
snippets printed "Warnings: 0" for the canonical sample. Count by @ROLE;
verified against a real SVRL of the negative fixture: 1 error, 12 warnings
(same as the Java runner's summary). SVRL example and "Key Elements" table
updated to match; PowerShell sample path gained the missing positions\.

Cross-reference the tolerance bands shared with the Basic XSLT report.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YXZWhwE5EbHSybt55K6oUZ
@karlkauc
karlkauc merged commit c5a3c03 into main Aug 30, 2026
4 checks passed
@karlkauc
karlkauc deleted the docs/schematron-readme-pattern-tables branch August 30, 2026 13:11
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