- Add constraints for profiling attributes
This commit is contained in:
parent
12a63b01e2
commit
1a1367cdbc
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/projects/xml-tools/; revision=41222
1 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue