summaryrefslogtreecommitdiffstats
path: root/help/C/gnome-help.sct
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:32:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:32:59 +0000
commitadb934701975f6b0214475d1a8d0d1ce727b9d4d (patch)
tree5688c745d10b64c8856586864ec416a6bdae881d /help/C/gnome-help.sct
parentInitial commit. (diff)
downloadgedit-adb934701975f6b0214475d1a8d0d1ce727b9d4d.tar.xz
gedit-adb934701975f6b0214475d1a8d0d1ce727b9d4d.zip
Adding upstream version 3.38.1.upstream/3.38.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--help/C/gnome-help.sct22
1 files changed, 22 insertions, 0 deletions
diff --git a/help/C/gnome-help.sct b/help/C/gnome-help.sct
new file mode 100644
index 0000000..0c1e623
--- /dev/null
+++ b/help/C/gnome-help.sct
@@ -0,0 +1,22 @@
+<schema xmlns="http://www.ascc.net/xml/schematron" >
+ <title>Some sanity checks for the GNOME desktop help</title>
+ <ns prefix="mal" uri="http://projectmallard.org/1.0/"/>
+ <ns prefix="xi" uri="http://www.w3.org/2001/XInclude"/>
+ <pattern name="Info element checks">
+ <rule context="mal:page/mal:info">
+ <assert test="not(mal:license)">Must not include license directly</assert>
+ <assert test="xi:include[@href='legal.xml']">Must include legal.xml</assert>
+ </rule>
+ </pattern>
+ <pattern name="Desc checks">
+ <rule context="mal:page/mal:info">
+ <assert test="normalize-space(mal:desc) != ''">Must have non-empty desc</assert>
+ </rule>
+ <rule context="mal:page/mal:info/mal:desc">
+ <assert test="substring(normalize-space(.), string-length(normalize-space(.))) = '.'">Desc must end with a period</assert>
+ </rule>
+ <rule context="mal:page/mal:info/mal:desc/mal:link">
+ <assert test="substring(normalize-space(..), string-length(normalize-space(..)) - 2) = '...'">Desc with links must end with an ellipsis</assert>
+ </rule>
+ </pattern>
+</schema>