svn commit: r42107 - projects/db5/share/xml
Gabor Kovesdan
gabor at FreeBSD.org
Tue Jul 2 09:20:09 UTC 2013
Author: gabor
Date: Tue Jul 2 09:20:09 2013
New Revision: 42107
URL: http://svnweb.freebsd.org/changeset/doc/42107
Log:
- Add a constraint to check the validity of titles
Modified:
projects/db5/share/xml/freebsd.sch
Modified: projects/db5/share/xml/freebsd.sch
==============================================================================
--- projects/db5/share/xml/freebsd.sch Mon Jul 1 17:03:36 2013 (r42106)
+++ projects/db5/share/xml/freebsd.sch Tue Jul 2 09:20:09 2013 (r42107)
@@ -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">
More information about the svn-doc-projects
mailing list