1
<schema xmlns="http://www.ascc.net/xml/schematron" >
2
<title>Some sanity checks for the GNOME desktop help</title>
3
<ns prefix="mal" uri="http://projectmallard.org/1.0/"/>
4
<ns prefix="xi" uri="http://www.w3.org/2001/XInclude"/>
5
<pattern name="Info element checks">
6
<rule context="mal:page/mal:info">
7
<assert test="not(mal:license)">Must not include license directly</assert>
8
<assert test="xi:include[@href='legal.xml']">Must include legal.xml</assert>
11
<pattern name="Desc checks">
12
<rule context="mal:page/mal:info">
13
<assert test="normalize-space(mal:desc) != ''">Must have non-empty desc</assert>
15
<rule context="mal:page/mal:info/mal:desc">
16
<assert test="substring(normalize-space(.), string-length(normalize-space(.))) = '.'">Desc must end with a period</assert>
18
<rule context="mal:page/mal:info/mal:desc/mal:link">
19
<assert test="substring(normalize-space(..), string-length(normalize-space(..)) - 2) = '...'">Desc with links must end with an ellipsis</assert>