Skip to content

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

Open
gronke wants to merge 1 commit into
mainfrom
fix/dtd-schema-completeness
Open

fix(dtd): correct schema gaps so valid documents validate#162
gronke wants to merge 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.
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