[gnome-user-docs] Schematron rules for desc elements



commit 9b51bb6dfe4cc826053675f3d57bd0e92822840a
Author: Shaun McCance <shaunm gnome org>
Date:   Fri Apr 8 12:57:25 2011 -0400

    Schematron rules for desc elements

 gnome-help/C/gnome-help.sct              |   11 +++++++++++
 gnome-help/C/user-forgottenpassword.page |    2 +-
 2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/gnome-help/C/gnome-help.sct b/gnome-help/C/gnome-help.sct
index 2f2f9c0..0c1e623 100644
--- a/gnome-help/C/gnome-help.sct
+++ b/gnome-help/C/gnome-help.sct
@@ -8,4 +8,15 @@
       <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>
diff --git a/gnome-help/C/user-forgottenpassword.page b/gnome-help/C/user-forgottenpassword.page
index 66b8360..bb32323 100644
--- a/gnome-help/C/user-forgottenpassword.page
+++ b/gnome-help/C/user-forgottenpassword.page
@@ -4,7 +4,7 @@
 
   <info>
     <link type="guide" xref="user-accounts#passwords"/>
-    <desc>Advanced techniques for resetting your password</desc>
+    <desc>Advanced techniques for resetting your password.</desc>
     <revision pkgversion="3.0" date="2011-02-22" status="final"/>
     <revision pkgversion="3.0" version="3.0.1" date="2011-04-06" status="outdated"/>
     <credit type="author">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]