[gnome-user-docs] Adding schematron checks
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-user-docs] Adding schematron checks
- Date: Fri, 8 Apr 2011 14:23:31 +0000 (UTC)
commit a27b723764915cd5bfba89a593742cdaf3981858
Author: Shaun McCance <shaunm gnome org>
Date: Fri Apr 8 10:26:53 2011 -0400
Adding schematron checks
gnome-help/C/gnome-help.sct | 11 +++++++++++
gnome-help/C/schematron.sh | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gnome-help/C/gnome-help.sct b/gnome-help/C/gnome-help.sct
new file mode 100644
index 0000000..2f2f9c0
--- /dev/null
+++ b/gnome-help/C/gnome-help.sct
@@ -0,0 +1,11 @@
+<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>
+</schema>
diff --git a/gnome-help/C/schematron.sh b/gnome-help/C/schematron.sh
new file mode 100755
index 0000000..8c3a4b9
--- /dev/null
+++ b/gnome-help/C/schematron.sh
@@ -0,0 +1 @@
+xmllint --noout --schematron gnome-help.sct *.page 2>&1 | grep -v validates
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]