- Add constraints for profiling attributes

This commit is contained in:
Gabor Kovesdan 2013-03-15 08:37:25 +00:00
parent 12a63b01e2
commit 1a1367cdbc
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/xml-tools/; revision=41222

View file

@ -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>