Commit 9b51bb6d authored by Shaun McCance's avatar Shaun McCance

Schematron rules for desc elements

parent 9f5b9712
......@@ -8,4 +8,15 @@
<assert test="xi:include[@href='legal.xml']">Must include legal.xml</assert>
<pattern name="Desc checks">
<rule context="mal:page/mal:info">
<assert test="normalize-space(mal:desc) != ''">Must have non-empty desc</assert>
<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 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>
......@@ -4,7 +4,7 @@
<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">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment