~ubuntu-branches/ubuntu/vivid/ubuntu-kylin-docs/vivid

« back to all changes in this revision

Viewing changes to ubuntu-kylin-help/C/gnome-help.sct

  • Committer: Package Import Robot
  • Author(s): Lei Luo
  • Date: 2014-04-10 14:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20140410145812-9mfgq3xleqy0l89f
Tags: 14.04.3

* Add "Replaces" field in debian control file to automatically remove
  ubuntu-docs before installation.
* Merge ubuntu-docs changes.
* Update zh_CN tranlation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
9
    </rule>
 
10
  </pattern>
 
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>
 
14
    </rule>
 
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>
 
17
    </rule>
 
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>
 
20
    </rule>
 
21
  </pattern>
 
22
</schema>