svn commit: r41222 - projects/xml-tools/share/xml

Gabor Kovesdan gabor at FreeBSD.org
Fri Mar 15 08:37:26 UTC 2013


Author: gabor
Date: Fri Mar 15 08:37:25 2013
New Revision: 41222
URL: http://svnweb.freebsd.org/changeset/doc/41222

Log:
  - Add constraints for profiling attributes

Modified:
  projects/xml-tools/share/xml/freebsd.sch

Modified: projects/xml-tools/share/xml/freebsd.sch
==============================================================================
--- projects/xml-tools/share/xml/freebsd.sch	Fri Mar 15 08:36:58 2013	(r41221)
+++ projects/xml-tools/share/xml/freebsd.sch	Fri Mar 15 08:37:25 2013	(r41222)
@@ -16,4 +16,13 @@
       <report test="//graphicco">Callouts on graphics are not supported.</report>
     </rule>
   </pattern>
+
+  <pattern name="Check profiling attributes">
+    <rule context="//*/@edition">
+      <assert test="(. = 'online') or (. = 'print')">The edition attribute can only be set to 'online' or "print".</assert>
+    </rule>
+    <rule context="//*/@os">
+      <assert test="(. = 'freebsd8') or (. = 'freebsd9') or (. = 'freebsd10')">The os attribute can only be set to 'freebsd8', 'freebsd9' or 'freebsd10'.</assert>
+    </rule>
+  </pattern>
 </schema>


More information about the svn-doc-projects mailing list