- Add a constraint to check the validity of titles
This commit is contained in:
parent
4db9d86d82
commit
11421c72e2
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/projects/db5/; revision=42107
1 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,13 @@
|
|||
</rule>
|
||||
</pattern>
|
||||
|
||||
<pattern name="Check titles">
|
||||
<rule context="//db:book|//db:article|//db:chapter|//db:section|//db:sect1|//db:sect2|//db:sect3|//db:sect4|//db:sect5">
|
||||
<assert test="db:title or db:info/db:title">There must be a title either in the the doc component (<xsl:value-of select="@id"/>) or in the info element.</assert>
|
||||
<report test="db:title and db:info/db:title">There must be exactly one title for a doc component (<xsl:value-of select="@id"/>).</report>
|
||||
</rule>
|
||||
</pattern>
|
||||
|
||||
<!-- DB 5.0 constraints -->
|
||||
|
||||
<pattern name="Glossary 'firstterm' type constraint">
|
||||
|
|
Loading…
Reference in a new issue