Skip to content

Conformance: LogicalStructureRule cites ISO 19005-2 6.8 for a clause-6.7 check, in its emitted rule id #447

Open

Description

@Tim81

src/VellumPdf.Conformance/Rules/Structure/LogicalStructureRule.cs checks the catalog's /MarkInfo /Marked flag, the presence of /StructTreeRoot, and that the structure tree's /RoleMap has no cycles. It cites ISO 19005-2 §6.8 in its summary, its RuleId (ISO19005-2:6.8-logical-structure) and its Clause.

In ISO 19005-2, §6.7 is Logical structure and §6.8 is Embedded files. The rule sits directly beside EmbeddedFileRule and EmbeddedFilePdfaRule, which cite 6.8 correctly.

Two things make this worth its own issue rather than folding it into a sweep batch.

The RuleId is emitted output a caller can match on, so correcting it is a behaviour change in the same sense the font-embedding id change in #445 was.

And the rule's XML-doc claims it was "derived from the specification text", which cannot be true: ISO 19005-2 was neither held nor readable here when the rule was written. That is the same defect class as the five citations corrected in #445, and the same class #418 exists to sweep.

What needs deciding, not just fixing

The correct sub-clause has to be read rather than assumed. A2aContentItemTaggingRule already cites §6.7.3.3 for structure hierarchy, and this rule's /StructTreeRoot check overlaps that. Whether the three checks here belong under one sub-clause or split across several is a reading, and it should happen in the batch that re-derives clause 6.7 rather than as a spot fix.

Provenance

The clause headings come from eng/data/iso19005-2-clauses.yml, read from the standard through a licensed single-user viewer, and were confirmed again first-hand on 2026-09-08. That reading is verified by a person and is not reproducible by CI or from a clone, which is the standing condition for all ISO 19005-2 citations here.

Refs #418.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions