Maps each validity rule (R1-R15) to the validation rule class that checks it.
1. Existing rules (DOC-001 to DOC-091)
| Rule | Validation Code | Rule Class | What it checks |
|---|---|---|---|
R10 |
DOC-001..DOC-003 |
|
Style references exist in styles.xml |
R4,R5 |
DOC-010..DOC-012 |
|
Numbering definitions properly referenced |
R9 |
DOC-020..DOC-022 |
|
Footnote consistency |
R15 |
DOC-030,DOC-031 |
|
Header/footer targets exist |
_ |
DOC-040..DOC-042 |
|
Bookmark pairing and uniqueness |
_ |
DOC-050..DOC-052 |
|
Image reference targets |
_ |
DOC-060,DOC-061 |
|
Table grid and merge cells |
R13 |
DOC-070,DOC-071 |
|
Font references |
R3 |
DOC-080,DOC-081 |
|
Theme presence and completeness |
R2,R8 |
DOC-090,DOC-091 |
|
Settings completeness |
2. New rules (DOC-100 to DOC-109)
| Rule | Validation Code | Rule Class | What it checks |
|---|---|---|---|
R1 |
DOC-100 |
|
mc:Ignorable prefixes have xmlns declarations in scope |
R2 |
DOC-101 |
|
w15:docId is GUID, w14:docId is hex |
R3 |
DOC-102 |
|
fmtScheme has minimum child counts |
R4,R5 |
DOC-103 |
|
Level and lvlOverride/startOverride elements preserved |
R11 |
DOC-104 |
|
sectPr exists with pgSz and pgMar |
R14 |
DOC-105 |
|
dc/dcterms/xsi namespaces declared, xsi:type on dates |
R7 |
DOC-106 |
|
Every ZIP entry has content type |
R13 |
DOC-107 |
|
sig elements have valid attributes |
R6 |
DOC-108 |
|
rId references resolve to existing parts |
R12 |
DOC-109 |
|
Paragraphs have rsidR and rsidRDefault (warning) |
3. Layer validators
| Layer | Validator | Rules covered |
|---|---|---|
1 |
|
File exists, readable |
2 |
|
Valid ZIP archive |
3 |
|
R8 (required parts) |
4 |
|
Well-formed XML |
5 |
|
R6 (relationship targets) |
6 |
|
R7 (content type declarations) |
7 |
|
R1-R15 (semantic rules) |