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 and david-waltermire committed Mar 9, 2023
1 parent 0b37fb4 commit c36358d
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 c36358d

Please sign in to comment.