Skip to content

fix(dtd): correct schema gaps so valid documents validate - #162

Merged
PeterMosmans merged 1 commit into
mainfrom
fix/dtd-schema-completeness
Jun 30, 2026
Merged

fix(dtd): correct schema gaps so valid documents validate#162
PeterMosmans merged 1 commit into
mainfrom
fix/dtd-schema-completeness

Conversation

@gronke

@gronke gronke commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

The XSD schemas were stricter and less complete than the tooling and templates, so valid PenText documents failed XSD validation. Align the schemas with what the XSLT actually supports:

  • common.xsd: remove the duplicate global 'location' element.
  • pentestreport.xsd: make finding @Prefix optional, make optional, and allow in technicaldescription, section and appendix.
  • offerte.xsd: add the placeholder elements the stylesheet resolves (p_draftdue, p_duration, p_location, p_participants) and allow participants, location and duration inside activityinfo.

Schema-only change; every edit is a relaxation or addition, so documents that validated before still validate.

The XSD schemas were stricter and less complete than the tooling and
templates, so valid PenText documents failed XSD validation. Align the
schemas with what the XSLT actually supports:

- common.xsd: remove the duplicate global 'location' element.
- pentestreport.xsd: make finding @Prefix optional, make <impact> optional,
  and allow <code> in technicaldescription, section and appendix.
- offerte.xsd: add the placeholder elements the stylesheet resolves
  (p_draftdue, p_duration, p_location, p_participants) and allow
  participants, location and duration inside activityinfo.

Schema-only change; every edit is a relaxation or addition, so documents
that validated before still validate.
@PeterMosmans
PeterMosmans merged commit 8cb666d into main Jun 30, 2026
1 check passed
@PeterMosmans

Copy link
Copy Markdown
Contributor

Huge thanks for this @gronke - as my validation tools ran into the exact same issue(s)

@PeterMosmans
PeterMosmans deleted the fix/dtd-schema-completeness branch June 30, 2026 10:45
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.

2 participants