Skip to content

Fix #443: add missing % to nonNegativePercent pattern in ODF 1.4 schema - #444

Merged
svanteschubert merged 1 commit into
tdf:masterfrom
foolfitz:fix-1.4-nonnegativepercent
Aug 23, 2026
Merged

Fix #443: add missing % to nonNegativePercent pattern in ODF 1.4 schema#444
svanteschubert merged 1 commit into
tdf:masterfrom
foolfitz:fix-1.4-nonnegativepercent

Conversation

@foolfitz

Copy link
Copy Markdown
Contributor

The pattern for nonNegativePercent in validator/src/main/resources/schema/odf1.4/OpenDocument-v1.4-schema.rng is missing the % sign. This is the same fix Regina Henschel made in LibreOffice core for tdf#162687.

I ran into this because LibreOffice writes draw:extrusion-specularity="0%" whenever a shape has a 3D extrusion, so any ODF 1.4 document with an extruded shape gets reported as invalid.

I tested with odfvalidator 0.13.0 on a small .odt from LibreOffice 26.2 containing one extruded rectangle — it fails before this change and passes after. Happy to attach the file if it's useful.

@sonarqubecloud

Copy link
Copy Markdown

@svanteschubert svanteschubert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted!

I remember the issue and a quick compare with the published RNG at OASIS:
https://docs.oasis-open.org/office/OpenDocument/v1.4/os/schemas/OpenDocument-v1.4-schema-rng.html#7078

proofed your claim!

Thank you very much!
Svante

@svanteschubert
svanteschubert merged commit c7646a3 into tdf:master Aug 23, 2026
5 checks passed
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