diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2013-07-03 10:17:02 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2013-07-03 10:17:02 +0000 |
commit | e2e8ddc90ea26475394d491fd4ccfad4c3a31b81 (patch) | |
tree | 73aa7ec1d463a5d68c01181f11bc5309bd0d2e47 /share | |
parent | a69e3a3e5e46d597b09ce1f9431d57e7c4a9e5b2 (diff) | |
download | doc-e2e8ddc90ea26475394d491fd4ccfad4c3a31b81.tar.gz doc-e2e8ddc90ea26475394d491fd4ccfad4c3a31b81.zip |
- Add constraint to check the required title element
- Add constraint to check colname and spanname attributes on table entries
Notes
Notes:
svn path=/head/; revision=42129
Diffstat (limited to 'share')
-rw-r--r-- | share/xml/freebsd.sch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/share/xml/freebsd.sch b/share/xml/freebsd.sch index 5c5cd0075a..2d03a8e400 100644 --- a/share/xml/freebsd.sch +++ b/share/xml/freebsd.sch @@ -39,6 +39,33 @@ </rule> </pattern> + <pattern name="Check title"> + <rule context="//book"> + <assert test="title or bookinfo/title">There must be a title either in book or in bookinfo.</assert> + </rule> + <rule context="//article"> + <assert test="title or articleinfo/title">There must be a title either in article or in articleinfo.</assert> + </rule> + <rule context="//chapter"> + <assert test="title or chapterinfo/title">There must be a title either in chapter (<xsl:value-of select="@id"/>) or in chapterinfo.</assert> + </rule> + <rule context="//sect1"> + <assert test="title or sect1info/title">There must be a title either in sect1 (<xsl:value-of select="@id"/>) or in sect1info.</assert> + </rule> + <rule context="//sect2"> + <assert test="title or sect2info/title">There must be a title either in sect2 (<xsl:value-of select="@id"/>) or in sect2info.</assert> + </rule> + <rule context="//sect3"> + <assert test="title or sect3info/title">There must be a title either in sect3 (<xsl:value-of select="@id"/>) or in sect3info.</assert> + </rule> + </pattern> + + <pattern name="Check table entries"> + <rule context="//entry"> + <report test="@colname and @spanname">You cannot use both colname and spanname attributes on table entries.</report> + </rule> + </pattern> + <!-- Backported constraints from DocBook 5.0 --> |