Skip to content

Commit

Permalink
Merge pull request #66 from msDesc/dimensions-warning
Browse files Browse the repository at this point in the history
warn about empty height and width elements
  • Loading branch information
andrew-morrison authored Nov 20, 2023
2 parents f486f16 + 7588df7 commit 801933f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions msdesc.odd
Original file line number Diff line number Diff line change
Expand Up @@ -5190,6 +5190,20 @@
</constraint>
</constraintSpec>

<!-- Warn about empty dimension elements -->
<constraintSpec ident="emptyDimensions.warn" scheme="schematron">
<constraint>
<sch:rule
context="tei:height|tei:width">
<sch:assert
test="string-length(normalize-space(string())) gt 1"
role="warn">
For dimensions the website displays the content of height and width elements. Attribute values are not displayed. Empty elements will not display correctly.
</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>

</classSpec>


Expand Down

0 comments on commit 801933f

Please sign in to comment.