Skip to content

Commit

Permalink
Add docs check for usnistgov/OSCAL#801 (#246)
Browse files Browse the repository at this point in the history
Relocated from usnistgov/OSCAL@ef8fa01
as previously coded in usnistgov/OSCAL#1501 for usnistgov/OSCAL#801. Relocated
per feedback from Dave in that PR.
  • Loading branch information
aj-stein-nist authored Nov 1, 2022
1 parent 71a49f1 commit d3d5394
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toolchains/xslt-M4/validate/metaschema-composition-check.sch
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@
<sch:rule context="m:p | m:li | m:pre">
<sch:assert test="matches(.,'\S')" id="discourage-whitespace-only">Empty <name/> (is likely to distort rendition)</sch:assert>
</sch:rule>

<sch:rule context="m:description">
<sch:assert role="error" test="ends-with(.,'.')" id="description-ends-with-dot">Description should end with a period.</sch:assert>
<sch:assert role="error" test="string-length(.) gt 6" id="description-long-enough">Description is too short.</sch:assert>
</sch:rule>
</sch:pattern>


Expand Down

0 comments on commit d3d5394

Please sign in to comment.