Debian Codegraph @

schemas/oval/5.6/oval-results-schematron.xsl

raw symbols SCIP
1 <?xml version="1.0" standalone="yes"?>
2 <axsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/Transform" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:iso="http://purl.oclc.org/dsdl/schematron" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:oval-res="http://oval.mitre.org/XMLSchema/oval-results-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" version="1.0"><!--Implementers: please note that overriding process-prolog or process-root is
3 the preferred method for meta-stylesheets to use where possible. -->
4 <axsl:param name="archiveDirParameter"/><axsl:param name="archiveNameParameter"/><axsl:param name="fileNameParameter"/><axsl:param name="fileDirParameter"/>
5
6 <!--PHASES-->
7
8
9 <!--PROLOG-->
10
11
12 <!--KEYS-->
13
14
15 <!--DEFAULT RULES-->
16
17
18 <!--MODE: SCHEMATRON-SELECT-FULL-PATH-->
19 <!--This mode can be used to generate an ugly though full XPath for locators-->
20 <axsl:template match="*" mode="schematron-select-full-path"><axsl:apply-templates select="." mode="schematron-get-full-path"/></axsl:template>
21
22 <!--MODE: SCHEMATRON-FULL-PATH-->
23 <!--This mode can be used to generate an ugly though full XPath for locators-->
24 <axsl:template match="*" mode="schematron-get-full-path"><axsl:apply-templates select="parent::*" mode="schematron-get-full-path"/><axsl:text>/</axsl:text><axsl:choose><axsl:when test="namespace-uri()=''"><axsl:value-of select="name()"/><axsl:variable name="p_1" select="1+ count(preceding-sibling::*[name()=name(current())])"/><axsl:if test="$p_1&gt;1 or following-sibling::*[name()=name(current())]">[<axsl:value-of select="$p_1"/>]</axsl:if></axsl:when><axsl:otherwise><axsl:text>*[local-name()='</axsl:text><axsl:value-of select="local-name()"/><axsl:text>' and namespace-uri()='</axsl:text><axsl:value-of select="namespace-uri()"/><axsl:text>']</axsl:text><axsl:variable name="p_2" select="1+ count(preceding-sibling::*[local-name()=local-name(current())])"/><axsl:if test="$p_2&gt;1 or following-sibling::*[local-name()=local-name(current())]">[<axsl:value-of select="$p_2"/>]</axsl:if></axsl:otherwise></axsl:choose></axsl:template><axsl:template match="@*" mode="schematron-get-full-path"><axsl:text>/</axsl:text><axsl:choose><axsl:when test="namespace-uri()=''">@<axsl:value-of select="name()"/></axsl:when><axsl:otherwise><axsl:text>@*[local-name()='</axsl:text><axsl:value-of select="local-name()"/><axsl:text>' and namespace-uri()='</axsl:text><axsl:value-of select="namespace-uri()"/><axsl:text>']</axsl:text></axsl:otherwise></axsl:choose></axsl:template>
25
26 <!--MODE: SCHEMATRON-FULL-PATH-2-->
27 <!--This mode can be used to generate prefixed XPath for humans-->
28 <axsl:template match="node() | @*" mode="schematron-get-full-path-2"><axsl:for-each select="ancestor-or-self::*"><axsl:text>/</axsl:text><axsl:value-of select="name(.)"/><axsl:if test="preceding-sibling::*[name(.)=name(current())]"><axsl:text>[</axsl:text><axsl:value-of select="count(preceding-sibling::*[name(.)=name(current())])+1"/><axsl:text>]</axsl:text></axsl:if></axsl:for-each><axsl:if test="not(self::*)"><axsl:text/>/@<axsl:value-of select="name(.)"/></axsl:if></axsl:template>
29
30 <!--MODE: GENERATE-ID-FROM-PATH -->
31 <axsl:template match="/" mode="generate-id-from-path"/><axsl:template match="text()" mode="generate-id-from-path"><axsl:apply-templates select="parent::*" mode="generate-id-from-path"/><axsl:value-of select="concat('.text-', 1+count(preceding-sibling::text()), '-')"/></axsl:template><axsl:template match="comment()" mode="generate-id-from-path"><axsl:apply-templates select="parent::*" mode="generate-id-from-path"/><axsl:value-of select="concat('.comment-', 1+count(preceding-sibling::comment()), '-')"/></axsl:template><axsl:template match="processing-instruction()" mode="generate-id-from-path"><axsl:apply-templates select="parent::*" mode="generate-id-from-path"/><axsl:value-of select="concat('.processing-instruction-', 1+count(preceding-sibling::processing-instruction()), '-')"/></axsl:template><axsl:template match="@*" mode="generate-id-from-path"><axsl:apply-templates select="parent::*" mode="generate-id-from-path"/><axsl:value-of select="concat('.@', name())"/></axsl:template><axsl:template match="*" mode="generate-id-from-path" priority="-0.5"><axsl:apply-templates select="parent::*" mode="generate-id-from-path"/><axsl:text>.</axsl:text><axsl:value-of select="concat('.',name(),'-',1+count(preceding-sibling::*[name()=name(current())]),'-')"/></axsl:template><!--MODE: SCHEMATRON-FULL-PATH-3-->
32 <!--This mode can be used to generate prefixed XPath for humans
33 (Top-level element has index)-->
34 <axsl:template match="node() | @*" mode="schematron-get-full-path-3"><axsl:for-each select="ancestor-or-self::*"><axsl:text>/</axsl:text><axsl:value-of select="name(.)"/><axsl:if test="parent::*"><axsl:text>[</axsl:text><axsl:value-of select="count(preceding-sibling::*[name(.)=name(current())])+1"/><axsl:text>]</axsl:text></axsl:if></axsl:for-each><axsl:if test="not(self::*)"><axsl:text/>/@<axsl:value-of select="name(.)"/></axsl:if></axsl:template>
35
36 <!--MODE: GENERATE-ID-2 -->
37 <axsl:template match="/" mode="generate-id-2">U</axsl:template><axsl:template match="*" mode="generate-id-2" priority="2"><axsl:text>U</axsl:text><axsl:number level="multiple" count="*"/></axsl:template><axsl:template match="node()" mode="generate-id-2"><axsl:text>U.</axsl:text><axsl:number level="multiple" count="*"/><axsl:text>n</axsl:text><axsl:number count="node()"/></axsl:template><axsl:template match="@*" mode="generate-id-2"><axsl:text>U.</axsl:text><axsl:number level="multiple" count="*"/><axsl:text>_</axsl:text><axsl:value-of select="string-length(local-name(.))"/><axsl:text>_</axsl:text><axsl:value-of select="translate(name(),':','.')"/></axsl:template><!--Strip characters--><axsl:template match="text()" priority="-1"/>
38
39 <!--SCHEMA METADATA-->
40 <axsl:template match="/"><axsl:apply-templates select="/" mode="M6"/><axsl:apply-templates select="/" mode="M7"/><axsl:apply-templates select="/" mode="M8"/><axsl:apply-templates select="/" mode="M9"/><axsl:apply-templates select="/" mode="M10"/><axsl:apply-templates select="/" mode="M11"/><axsl:apply-templates select="/" mode="M12"/><axsl:apply-templates select="/" mode="M13"/><axsl:apply-templates select="/" mode="M14"/><axsl:apply-templates select="/" mode="M15"/><axsl:apply-templates select="/" mode="M16"/><axsl:apply-templates select="/" mode="M17"/><axsl:apply-templates select="/" mode="M18"/><axsl:apply-templates select="/" mode="M19"/><axsl:apply-templates select="/" mode="M20"/><axsl:apply-templates select="/" mode="M21"/><axsl:apply-templates select="/" mode="M22"/><axsl:apply-templates select="/" mode="M23"/><axsl:apply-templates select="/" mode="M24"/><axsl:apply-templates select="/" mode="M25"/><axsl:apply-templates select="/" mode="M26"/><axsl:apply-templates select="/" mode="M27"/><axsl:apply-templates select="/" mode="M28"/><axsl:apply-templates select="/" mode="M29"/><axsl:apply-templates select="/" mode="M30"/><axsl:apply-templates select="/" mode="M31"/><axsl:apply-templates select="/" mode="M32"/><axsl:apply-templates select="/" mode="M33"/><axsl:apply-templates select="/" mode="M34"/><axsl:apply-templates select="/" mode="M35"/><axsl:apply-templates select="/" mode="M36"/><axsl:apply-templates select="/" mode="M37"/><axsl:apply-templates select="/" mode="M38"/><axsl:apply-templates select="/" mode="M39"/><axsl:apply-templates select="/" mode="M40"/><axsl:apply-templates select="/" mode="M41"/><axsl:apply-templates select="/" mode="M42"/><axsl:apply-templates select="/" mode="M43"/><axsl:apply-templates select="/" mode="M44"/><axsl:apply-templates select="/" mode="M45"/><axsl:apply-templates select="/" mode="M46"/><axsl:apply-templates select="/" mode="M47"/><axsl:apply-templates select="/" mode="M48"/><axsl:apply-templates select="/" mode="M49"/><axsl:apply-templates select="/" mode="M50"/><axsl:apply-templates select="/" mode="M51"/><axsl:apply-templates select="/" mode="M52"/><axsl:apply-templates select="/" mode="M53"/><axsl:apply-templates select="/" mode="M54"/><axsl:apply-templates select="/" mode="M55"/><axsl:apply-templates select="/" mode="M56"/><axsl:apply-templates select="/" mode="M57"/><axsl:apply-templates select="/" mode="M58"/><axsl:apply-templates select="/" mode="M59"/><axsl:apply-templates select="/" mode="M60"/><axsl:apply-templates select="/" mode="M61"/><axsl:apply-templates select="/" mode="M62"/><axsl:apply-templates select="/" mode="M63"/><axsl:apply-templates select="/" mode="M64"/><axsl:apply-templates select="/" mode="M65"/><axsl:apply-templates select="/" mode="M66"/><axsl:apply-templates select="/" mode="M67"/><axsl:apply-templates select="/" mode="M68"/><axsl:apply-templates select="/" mode="M69"/><axsl:apply-templates select="/" mode="M70"/><axsl:apply-templates select="/" mode="M71"/><axsl:apply-templates select="/" mode="M72"/><axsl:apply-templates select="/" mode="M73"/><axsl:apply-templates select="/" mode="M74"/><axsl:apply-templates select="/" mode="M75"/><axsl:apply-templates select="/" mode="M76"/><axsl:apply-templates select="/" mode="M77"/><axsl:apply-templates select="/" mode="M78"/><axsl:apply-templates select="/" mode="M79"/><axsl:apply-templates select="/" mode="M80"/><axsl:apply-templates select="/" mode="M81"/><axsl:apply-templates select="/" mode="M82"/><axsl:apply-templates select="/" mode="M83"/><axsl:apply-templates select="/" mode="M84"/><axsl:apply-templates select="/" mode="M85"/><axsl:apply-templates select="/" mode="M86"/><axsl:apply-templates select="/" mode="M87"/><axsl:apply-templates select="/" mode="M88"/><axsl:apply-templates select="/" mode="M89"/><axsl:apply-templates select="/" mode="M90"/><axsl:apply-templates select="/" mode="M91"/><axsl:apply-templates select="/" mode="M92"/><axsl:apply-templates select="/" mode="M93"/><axsl:apply-templates select="/" mode="M94"/><axsl:apply-templates select="/" mode="M95"/><axsl:apply-templates select="/" mode="M96"/><axsl:apply-templates select="/" mode="M97"/><axsl:apply-templates select="/" mode="M98"/><axsl:apply-templates select="/" mode="M99"/><axsl:apply-templates select="/" mode="M100"/><axsl:apply-templates select="/" mode="M101"/><axsl:apply-templates select="/" mode="M102"/><axsl:apply-templates select="/" mode="M103"/><axsl:apply-templates select="/" mode="M104"/><axsl:apply-templates select="/" mode="M105"/><axsl:apply-templates select="/" mode="M106"/><axsl:apply-templates select="/" mode="M107"/><axsl:apply-templates select="/" mode="M108"/><axsl:apply-templates select="/" mode="M109"/><axsl:apply-templates select="/" mode="M110"/><axsl:apply-templates select="/" mode="M111"/></axsl:template>
41
42 <!--SCHEMATRON PATTERNS-->
43
44
45 <!--PATTERN none_exist_value_dep-->
46
47
48 <!--RULE -->
49 <axsl:template match="/oval-def:oval_definitions/oval-def:tests/child::*" priority="1000" mode="M6">
50
51 <!--REPORT -->
52 <axsl:if test="@check='none exist'"> DEPRECATED ATTRIBUTE VALUE IN: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ATTRIBUTE VALUE: <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M6"/></axsl:template><axsl:template match="text()" priority="-1" mode="M6"/><axsl:template match="@*|node()" priority="-2" mode="M6"><axsl:apply-templates select="@*|*" mode="M6"/></axsl:template>
53
54 <!--PATTERN system-->
55
56
57 <!--RULE -->
58 <axsl:template match="oval-res:system[oval-res:tests]" priority="1001" mode="M7">
59
60 <!--ASSERT -->
61 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@content='full' or /oval-res:oval_results/oval-res:directives/oval-res:definition_false/@content='full' or /oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@content='full' or /oval-res:oval_results/oval-res:directives/oval-res:definition_error/@content='full' or /oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@content='full' or /oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@content='full'"/><axsl:otherwise>the tests element should not be included unless full results are to be provided (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M7"/></axsl:template>
62
63 <!--RULE -->
64 <axsl:template match="oval-res:system[not(oval-res:tests)]" priority="1000" mode="M7">
65
66 <!--ASSERT -->
67 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@content='thin' and /oval-res:oval_results/oval-res:directives/oval-res:definition_false/@content='thin' and /oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@content='thin' and /oval-res:oval_results/oval-res:directives/oval-res:definition_error/@content='thin' and /oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@content='thin' and /oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@content='thin'"/><axsl:otherwise>the tests element should be included when full results are specified (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M7"/></axsl:template><axsl:template match="text()" priority="-1" mode="M7"/><axsl:template match="@*|node()" priority="-2" mode="M7"><axsl:apply-templates select="@*|*" mode="M7"/></axsl:template>
68
69 <!--PATTERN directives-->
70
71
72 <!--RULE -->
73 <axsl:template match="oval-res:definition[@result='true' and oval-res:criteria]" priority="1011" mode="M8">
74
75 <!--ASSERT -->
76 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@reported='true'"/><axsl:otherwise>
77 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of TRUE should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
78
79 <!--ASSERT -->
80 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@content='full'"/><axsl:otherwise>
81 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of TRUE should contain THIN content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
82
83 <!--RULE -->
84 <axsl:template match="oval-res:definition[@result='true' and not(oval-res:criteria)]" priority="1010" mode="M8">
85
86 <!--ASSERT -->
87 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@reported='true'"/><axsl:otherwise>
88 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of TRUE should not be included (see directives) xx<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
89
90 <!--ASSERT -->
91 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@content='thin'"/><axsl:otherwise>
92 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of TRUE should contain FULL content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
93
94 <!--RULE -->
95 <axsl:template match="oval-res:definition[@result='false' and oval-res:criteria]" priority="1009" mode="M8">
96
97 <!--ASSERT -->
98 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_false/@reported='true'"/><axsl:otherwise>
99 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of FALSE should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
100
101 <!--ASSERT -->
102 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_false/@content='full'"/><axsl:otherwise>
103 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of FALSE should contain THIN content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
104
105 <!--RULE -->
106 <axsl:template match="oval-res:definition[@result='false' and not(oval-res:criteria)]" priority="1008" mode="M8">
107
108 <!--ASSERT -->
109 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_false/@reported='true'"/><axsl:otherwise>
110 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of FALSE should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
111
112 <!--ASSERT -->
113 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_false/@content='thin'"/><axsl:otherwise>
114 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of FALSE should contain FULL content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
115
116 <!--RULE -->
117 <axsl:template match="oval-res:definition[@result='unknown' and oval-res:criteria]" priority="1007" mode="M8">
118
119 <!--ASSERT -->
120 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@reported='true'"/><axsl:otherwise>
121 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of UNKNOWN should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
122
123 <!--ASSERT -->
124 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@content='full'"/><axsl:otherwise>
125 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of UNKNOWN should contain THIN content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
126
127 <!--RULE -->
128 <axsl:template match="oval-res:definition[@result='unknown' and not(oval-res:criteria)]" priority="1006" mode="M8">
129
130 <!--ASSERT -->
131 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@reported='true'"/><axsl:otherwise>
132 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of UNKNOWN should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
133
134 <!--ASSERT -->
135 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@content='thin'"/><axsl:otherwise>
136 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of UNKNOWN should contain FULL content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
137
138 <!--RULE -->
139 <axsl:template match="oval-res:definition[@result='error' and oval-res:criteria]" priority="1005" mode="M8">
140
141 <!--ASSERT -->
142 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_error/@reported='true'"/><axsl:otherwise>
143 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of ERROR should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
144
145 <!--ASSERT -->
146 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_error/@content='full'"/><axsl:otherwise>
147 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of ERROR should contain THIN content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
148
149 <!--RULE -->
150 <axsl:template match="oval-res:definition[@result='error' and not(oval-res:criteria)]" priority="1004" mode="M8">
151
152 <!--ASSERT -->
153 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_error/@reported='true'"/><axsl:otherwise>
154 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of ERROR should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
155
156 <!--ASSERT -->
157 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_error/@content='thin'"/><axsl:otherwise>
158 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of ERROR should contain FULL content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
159
160 <!--RULE -->
161 <axsl:template match="oval-res:definition[@result='not evaluated' and oval-res:criteria]" priority="1003" mode="M8">
162
163 <!--ASSERT -->
164 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@reported='true'"/><axsl:otherwise>
165 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of NOT EVALUATED should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
166
167 <!--ASSERT -->
168 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@content='full'"/><axsl:otherwise>
169 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of NOT EVALUATED should contain THIN content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
170
171 <!--RULE -->
172 <axsl:template match="oval-res:definition[@result='not evaluated' and not(oval-res:criteria)]" priority="1002" mode="M8">
173
174 <!--ASSERT -->
175 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@reported='true'"/><axsl:otherwise>
176 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of NOT EVALUATED should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
177
178 <!--ASSERT -->
179 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@content='thin'"/><axsl:otherwise>
180 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of NOT EVALUATED should contain FULL content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
181
182 <!--RULE -->
183 <axsl:template match="oval-res:definition[@result='not applicable' and oval-res:criteria]" priority="1001" mode="M8">
184
185 <!--ASSERT -->
186 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@reported='true'"/><axsl:otherwise>
187 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of NOT APPLICABLE should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
188
189 <!--ASSERT -->
190 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@content='full'"/><axsl:otherwise>
191 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of NOT APPLICABLE should contain THIN content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
192
193 <!--RULE -->
194 <axsl:template match="oval-res:definition[@result='not applicable' and not(oval-res:criteria)]" priority="1000" mode="M8">
195
196 <!--ASSERT -->
197 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@reported='true'"/><axsl:otherwise>
198 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of NOT APPLICABLE should not be included (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
199
200 <!--ASSERT -->
201 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@content='thin'"/><axsl:otherwise>
202 <axsl:text/><axsl:value-of select="@definition_id"/><axsl:text/> - definitions with a result of NOT APPLICABLE should contain FULL content (see directives)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template><axsl:template match="text()" priority="-1" mode="M8"/><axsl:template match="@*|node()" priority="-2" mode="M8"><axsl:apply-templates select="@*|*" mode="M8"/></axsl:template>
203
204 <!--PATTERN testids-->
205
206
207 <!--RULE -->
208 <axsl:template match="oval-res:test" priority="1000" mode="M9">
209
210 <!--ASSERT -->
211 <axsl:choose><axsl:when test="@test_id = ../../oval-res:definitions//oval-res:criterion/@test_ref"/><axsl:otherwise>
212 <axsl:text/><axsl:value-of select="@test_id"/><axsl:text/> - the specific test is not used in any definition's criteria<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M9"/></axsl:template><axsl:template match="text()" priority="-1" mode="M9"/><axsl:template match="@*|node()" priority="-2" mode="M9"><axsl:apply-templates select="@*|*" mode="M9"/></axsl:template>
213
214 <!--PATTERN empty_def_doc-->
215
216
217 <!--RULE -->
218 <axsl:template match="oval-def:oval_definitions" priority="1000" mode="M10">
219
220 <!--ASSERT -->
221 <axsl:choose><axsl:when test="oval-def:definitions or oval-def:tests or oval-def:objects or oval-def:states or oval-def:variables"/><axsl:otherwise>A valid OVAL Definition document must contain at least one definitions, tests, objects, states, or variables element. The optional definitions, tests, objects, states, and variables sections define the specific characteristics that should be evaluated on a system to determine the truth values of the OVAL Definition Document. To be valid though, at least one definitions, tests, objects, states, or variables element must be present.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M10"/></axsl:template><axsl:template match="text()" priority="-1" mode="M10"/><axsl:template match="@*|node()" priority="-2" mode="M10"><axsl:apply-templates select="@*|*" mode="M10"/></axsl:template>
222
223 <!--PATTERN required_criteria-->
224
225
226 <!--RULE -->
227 <axsl:template match="/oval-def:oval_definitions/oval-def:definitions/oval-def:definition[@deprecated='false' or not(@deprecated)]" priority="1000" mode="M11">
228
229 <!--ASSERT -->
230 <axsl:choose><axsl:when test="oval-def:criteria"/><axsl:otherwise>A valid OVAL Definition document must contain a criteria unless the definition is a deprecated definition.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M11"/></axsl:template><axsl:template match="text()" priority="-1" mode="M11"/><axsl:template match="@*|node()" priority="-2" mode="M11"><axsl:apply-templates select="@*|*" mode="M11"/></axsl:template>
231
232 <!--PATTERN test_type-->
233
234
235 <!--RULE -->
236 <axsl:template match="/oval-def:oval_definitions/oval-def:tests/*[@check_existence='none_exist']" priority="1000" mode="M12">
237
238 <!--ASSERT -->
239 <axsl:choose><axsl:when test="not(*[name()='state'])"/><axsl:otherwise>
240 <axsl:text/><axsl:value-of select="@id"/><axsl:text/> - No state should be referenced when check_existence has a value of 'none_exist'.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M12"/></axsl:template><axsl:template match="text()" priority="-1" mode="M12"/><axsl:template match="@*|node()" priority="-2" mode="M12"><axsl:apply-templates select="@*|*" mode="M12"/></axsl:template>
241
242 <!--PATTERN setobjref-->
243
244
245 <!--RULE -->
246 <axsl:template match="/oval-def:oval_definitions/oval-def:objects/*/oval-def:set/oval-def:object_reference" priority="1002" mode="M13">
247
248 <!--ASSERT -->
249 <axsl:choose><axsl:when test="name(./../..) = name(/oval-def:oval_definitions/oval-def:objects/*[@id=current()])"/><axsl:otherwise>
250 <axsl:text/><axsl:value-of select="../../@id"/><axsl:text/> - Each object referenced by the set must be of the same type as parent object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M13"/></axsl:template>
251
252 <!--RULE -->
253 <axsl:template match="/oval-def:oval_definitions/oval-def:objects/*/oval-def:set/oval-def:set/oval-def:object_reference" priority="1001" mode="M13">
254
255 <!--ASSERT -->
256 <axsl:choose><axsl:when test="name(./../../..) = name(/oval-def:oval_definitions/oval-def:objects/*[@id=current()])"/><axsl:otherwise>
257 <axsl:text/><axsl:value-of select="../../../@id"/><axsl:text/> - Each object referenced by the set must be of the same type as parent object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M13"/></axsl:template>
258
259 <!--RULE -->
260 <axsl:template match="/oval-def:oval_definitions/oval-def:objects/*/oval-def:set/oval-def:set/oval-def:set/oval-def:object_reference" priority="1000" mode="M13">
261
262 <!--ASSERT -->
263 <axsl:choose><axsl:when test="name(./../../../..) = name(/oval-def:oval_definitions/oval-def:objects/*[@id=current()])"/><axsl:otherwise>
264 <axsl:text/><axsl:value-of select="../../../../@id"/><axsl:text/> - Each object referenced by the set must be of the same type as parent object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M13"/></axsl:template><axsl:template match="text()" priority="-1" mode="M13"/><axsl:template match="@*|node()" priority="-2" mode="M13"><axsl:apply-templates select="@*|*" mode="M13"/></axsl:template>
265
266 <!--PATTERN value-->
267
268
269 <!--RULE -->
270 <axsl:template match="oval-def:constant_variable/oval-def:value" priority="1000" mode="M14">
271
272 <!--ASSERT -->
273 <axsl:choose><axsl:when test=".!=''"/><axsl:otherwise>The value element of the constant_variable <axsl:text/><axsl:value-of select="../../@id"/><axsl:text/> can not be empty.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M14"/></axsl:template><axsl:template match="text()" priority="-1" mode="M14"/><axsl:template match="@*|node()" priority="-2" mode="M14"><axsl:apply-templates select="@*|*" mode="M14"/></axsl:template>
274
275 <!--PATTERN literal_component-->
276
277
278 <!--RULE -->
279 <axsl:template match="oval-def:literal_component" priority="1000" mode="M15">
280
281 <!--ASSERT -->
282 <axsl:choose><axsl:when test=".!=''"/><axsl:otherwise>The literal_component of variable <axsl:text/><axsl:value-of select="../../@id"/><axsl:text/> can not be empty.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M15"/></axsl:template><axsl:template match="text()" priority="-1" mode="M15"/><axsl:template match="@*|node()" priority="-2" mode="M15"><axsl:apply-templates select="@*|*" mode="M15"/></axsl:template>
283
284 <!--PATTERN item_field-->
285
286
287 <!--RULE -->
288 <axsl:template match="oval-def:object_component" priority="1000" mode="M16">
289
290 <!--ASSERT -->
291 <axsl:choose><axsl:when test="@item_field!=''"/><axsl:otherwise>The item_field attribute of an object_component of variable <axsl:text/><axsl:value-of select="../../@id"/><axsl:text/> can not be empty.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M16"/></axsl:template><axsl:template match="text()" priority="-1" mode="M16"/><axsl:template match="@*|node()" priority="-2" mode="M16"><axsl:apply-templates select="@*|*" mode="M16"/></axsl:template>
292
293 <!--PATTERN arithmeticfunctionrules-->
294
295
296 <!--RULE -->
297 <axsl:template match="oval-def:arithmetic/oval-def:literal_component" priority="1001" mode="M17">
298
299 <!--ASSERT -->
300 <axsl:choose><axsl:when test="@datatype='float' or @datatype='int'"/><axsl:otherwise>A literal_component used by an arithmetic function must have a datatype of float or int.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M17"/></axsl:template>
301
302 <!--RULE -->
303 <axsl:template match="oval-def:arithmetic/oval-def:variable_component" priority="1000" mode="M17"><axsl:variable name="var_ref" select="@var_ref"/>
304
305 <!--ASSERT -->
306 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype='float' or //oval-def:variables/*[@id=$var_ref]/@datatype='int'"/><axsl:otherwise>The variable referenced by the arithmetic function must have a datatype of float or int.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M17"/></axsl:template><axsl:template match="text()" priority="-1" mode="M17"/><axsl:template match="@*|node()" priority="-2" mode="M17"><axsl:apply-templates select="@*|*" mode="M17"/></axsl:template>
307
308 <!--PATTERN beginfunctionrules-->
309
310
311 <!--RULE -->
312 <axsl:template match="oval-def:begin/oval-def:literal_component" priority="1001" mode="M18">
313
314 <!--ASSERT -->
315 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>A literal_component used by the begin function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M18"/></axsl:template>
316
317 <!--RULE -->
318 <axsl:template match="oval-def:begin/oval-def:variable_component" priority="1000" mode="M18"><axsl:variable name="var_ref" select="@var_ref"/>
319
320 <!--ASSERT -->
321 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype = 'string'"/><axsl:otherwise>The variable referenced by the begin function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M18"/></axsl:template><axsl:template match="text()" priority="-1" mode="M18"/><axsl:template match="@*|node()" priority="-2" mode="M18"><axsl:apply-templates select="@*|*" mode="M18"/></axsl:template>
322
323 <!--PATTERN concatfunctionrules-->
324
325
326 <!--RULE -->
327 <axsl:template match="oval-def:concat/oval-def:literal_component" priority="1001" mode="M19">
328
329 <!--ASSERT -->
330 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>A literal_component used by the concat function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M19"/></axsl:template>
331
332 <!--RULE -->
333 <axsl:template match="oval-def:concat/oval-def:variable_component" priority="1000" mode="M19"><axsl:variable name="var_ref" select="@var_ref"/>
334
335 <!--ASSERT -->
336 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype = 'string'"/><axsl:otherwise>The variable referenced by the concat function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M19"/></axsl:template><axsl:template match="text()" priority="-1" mode="M19"/><axsl:template match="@*|node()" priority="-2" mode="M19"><axsl:apply-templates select="@*|*" mode="M19"/></axsl:template>
337
338 <!--PATTERN endfunctionrules-->
339
340
341 <!--RULE -->
342 <axsl:template match="oval-def:end/oval-def:literal_component" priority="1001" mode="M20">
343
344 <!--ASSERT -->
345 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>A literal_component used by the end function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M20"/></axsl:template>
346
347 <!--RULE -->
348 <axsl:template match="oval-def:end/oval-def:variable_component" priority="1000" mode="M20"><axsl:variable name="var_ref" select="@var_ref"/>
349
350 <!--ASSERT -->
351 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype = 'string'"/><axsl:otherwise>The variable referenced by the end function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M20"/></axsl:template><axsl:template match="text()" priority="-1" mode="M20"/><axsl:template match="@*|node()" priority="-2" mode="M20"><axsl:apply-templates select="@*|*" mode="M20"/></axsl:template>
352
353 <!--PATTERN escaperegexfunctionrules-->
354
355
356 <!--RULE -->
357 <axsl:template match="oval-def:escape_regex/oval-def:literal_component" priority="1001" mode="M21">
358
359 <!--ASSERT -->
360 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>A literal_component used by the escape_regex function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M21"/></axsl:template>
361
362 <!--RULE -->
363 <axsl:template match="oval-def:escape_regex/oval-def:variable_component" priority="1000" mode="M21"><axsl:variable name="var_ref" select="@var_ref"/>
364
365 <!--ASSERT -->
366 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype = 'string'"/><axsl:otherwise>The variable referenced by the escape_regex function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M21"/></axsl:template><axsl:template match="text()" priority="-1" mode="M21"/><axsl:template match="@*|node()" priority="-2" mode="M21"><axsl:apply-templates select="@*|*" mode="M21"/></axsl:template>
367
368 <!--PATTERN splitfunctionrules-->
369
370
371 <!--RULE -->
372 <axsl:template match="oval-def:split/oval-def:literal_component" priority="1001" mode="M22">
373
374 <!--ASSERT -->
375 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>A literal_component used by the split function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M22"/></axsl:template>
376
377 <!--RULE -->
378 <axsl:template match="oval-def:split/oval-def:variable_component" priority="1000" mode="M22"><axsl:variable name="var_ref" select="@var_ref"/>
379
380 <!--ASSERT -->
381 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype = 'string'"/><axsl:otherwise>The variable referenced by the split function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M22"/></axsl:template><axsl:template match="text()" priority="-1" mode="M22"/><axsl:template match="@*|node()" priority="-2" mode="M22"><axsl:apply-templates select="@*|*" mode="M22"/></axsl:template>
382
383 <!--PATTERN substringfunctionrules-->
384
385
386 <!--RULE -->
387 <axsl:template match="oval-def:substring/oval-def:literal_component" priority="1001" mode="M23">
388
389 <!--ASSERT -->
390 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>A literal_component used by the substring function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M23"/></axsl:template>
391
392 <!--RULE -->
393 <axsl:template match="oval-def:substring/oval-def:variable_component" priority="1000" mode="M23"><axsl:variable name="var_ref" select="@var_ref"/>
394
395 <!--ASSERT -->
396 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype = 'string'"/><axsl:otherwise>The variable referenced by the substring function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M23"/></axsl:template><axsl:template match="text()" priority="-1" mode="M23"/><axsl:template match="@*|node()" priority="-2" mode="M23"><axsl:apply-templates select="@*|*" mode="M23"/></axsl:template>
397
398 <!--PATTERN timedifferencefunctionrules-->
399
400
401 <!--RULE -->
402 <axsl:template match="oval-def:time_difference/oval-def:literal_component" priority="1001" mode="M24">
403
404 <!--ASSERT -->
405 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string' or @datatype='int'"/><axsl:otherwise>A literal_component used by the time_difference function must have a datatype of string or int.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M24"/></axsl:template>
406
407 <!--RULE -->
408 <axsl:template match="oval-def:time_difference/oval-def:variable_component" priority="1000" mode="M24"><axsl:variable name="var_ref" select="@var_ref"/>
409
410 <!--ASSERT -->
411 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype='string' or //oval-def:variables/*[@id=$var_ref]/@datatype='int'"/><axsl:otherwise>The variable referenced by the time_difference function must have a datatype of string or int.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M24"/></axsl:template><axsl:template match="text()" priority="-1" mode="M24"/><axsl:template match="@*|node()" priority="-2" mode="M24"><axsl:apply-templates select="@*|*" mode="M24"/></axsl:template>
412
413 <!--PATTERN regexcapturefunctionrules-->
414
415
416 <!--RULE -->
417 <axsl:template match="oval-def:regex_capture/oval-def:literal_component" priority="1001" mode="M25">
418
419 <!--ASSERT -->
420 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>A literal_component used by the regex_capture function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M25"/></axsl:template>
421
422 <!--RULE -->
423 <axsl:template match="oval-def:regex_capture/oval-def:variable_component" priority="1000" mode="M25"><axsl:variable name="var_ref" select="@var_ref"/>
424
425 <!--ASSERT -->
426 <axsl:choose><axsl:when test="//oval-def:variables/*[@id=$var_ref]/@datatype = 'string'"/><axsl:otherwise>The variable referenced by the regex_capture function must have a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M25"/></axsl:template><axsl:template match="text()" priority="-1" mode="M25"/><axsl:template match="@*|node()" priority="-2" mode="M25"><axsl:apply-templates select="@*|*" mode="M25"/></axsl:template>
427
428 <!--PATTERN definition_entity_rules-->
429
430
431 <!--RULE -->
432 <axsl:template match="oval-def:objects/*/*[@var_ref]|oval-def:states/*/*[@var_ref]" priority="1010" mode="M26"><axsl:variable name="var_ref" select="@var_ref"/>
433
434 <!--ASSERT -->
435 <axsl:choose><axsl:when test=".=''"/><axsl:otherwise>
436 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - a var_ref has been supplied for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity so no value should be provided<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
437
438 <!--ASSERT -->
439 <axsl:choose><axsl:when test="( (not(@datatype)) and ('string' = //oval-def:variables/*[@id=$var_ref]/@datatype) ) or (@datatype = //oval-def:variables/*[@id=$var_ref]/@datatype)"/><axsl:otherwise>
440 <axsl:text/><axsl:value-of select="$var_ref"/><axsl:text/> - inconsistent datatype between the variable and an associated var_ref<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
441
442 <!--RULE -->
443 <axsl:template match="oval-def:objects/*/*[not(@datatype)]|oval-def:states/*/*[not(@datatype)]" priority="1009" mode="M26">
444
445 <!--ASSERT -->
446 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal' or @operation='case insensitive equals' or @operation='case insensitive not equal' or @operation='pattern match'"/><axsl:otherwise>
447 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given the lack of a declared datatype (hence a default datatype of string).<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
448
449 <!--RULE -->
450 <axsl:template match="oval-def:objects/*/*[@datatype='binary']|oval-def:states/*/*[@datatype='binary']" priority="1008" mode="M26">
451
452 <!--ASSERT -->
453 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal'"/><axsl:otherwise>
454 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of binary.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
455
456 <!--RULE -->
457 <axsl:template match="oval-def:objects/*/*[@datatype='boolean']|oval-def:states/*/*[@datatype='boolean']" priority="1007" mode="M26">
458
459 <!--ASSERT -->
460 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal'"/><axsl:otherwise>
461 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of boolean.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
462
463 <!--RULE -->
464 <axsl:template match="oval-def:objects/*/*[@datatype='evr_string']|oval-def:states/*/*[@datatype='evr_string']" priority="1006" mode="M26">
465
466 <!--ASSERT -->
467 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal' or @operation='greater than' or @operation='greater than or equal' or @operation='less than' or @operation='less than or equal'"/><axsl:otherwise>
468 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of evr_string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
469
470 <!--RULE -->
471 <axsl:template match="oval-def:objects/*/*[@datatype='fileset_revision']|oval-def:states/*/*[@datatype='fileset_revision']" priority="1005" mode="M26">
472
473 <!--ASSERT -->
474 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal' or @operation='greater than' or @operation='greater than or equal' or @operation='less than' or @operation='less than or equal'"/><axsl:otherwise>
475 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of fileset_revision.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
476
477 <!--RULE -->
478 <axsl:template match="oval-def:objects/*/*[@datatype='float']|oval-def:states/*/*[@datatype='float']" priority="1004" mode="M26">
479
480 <!--ASSERT -->
481 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal' or @operation='greater than' or @operation='greater than or equal' or @operation='less than' or @operation='less than or equal'"/><axsl:otherwise>
482 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of float.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
483
484 <!--RULE -->
485 <axsl:template match="oval-def:objects/*/*[@datatype='ios_version']|oval-def:states/*/*[@datatype='ios_version']" priority="1003" mode="M26">
486
487 <!--ASSERT -->
488 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal' or @operation='greater than' or @operation='greater than or equal' or @operation='less than' or @operation='less than or equal'"/><axsl:otherwise>
489 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of ios_version.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
490
491 <!--RULE -->
492 <axsl:template match="oval-def:objects/*/*[@datatype='int']|oval-def:states/*/*[@datatype='int']" priority="1002" mode="M26">
493
494 <!--ASSERT -->
495 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal' or @operation='greater than' or @operation='greater than or equal' or @operation='less than' or @operation='less than or equal' or @operation='bitwise and' or @operation='bitwise or'"/><axsl:otherwise>
496 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of int.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
497
498 <!--RULE -->
499 <axsl:template match="oval-def:objects/*/*[@datatype='string']|oval-def:states/*/*[@datatype='string']" priority="1001" mode="M26">
500
501 <!--ASSERT -->
502 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal' or @operation='case insensitive equals' or @operation='case insensitive not equal' or @operation='pattern match'"/><axsl:otherwise>
503 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of string.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
504
505 <!--RULE -->
506 <axsl:template match="oval-def:objects/*/*[@datatype='version']|oval-def:states/*/*[@datatype='version']" priority="1000" mode="M26">
507
508 <!--ASSERT -->
509 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal' or @operation='greater than' or @operation='greater than or equal' or @operation='less than' or @operation='less than or equal'"/><axsl:otherwise>
510 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of '<axsl:text/><axsl:value-of select="@operation"/><axsl:text/>' for the operation attribute of the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is not valid given a datatype of version.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template><axsl:template match="text()" priority="-1" mode="M26"/><axsl:template match="@*|node()" priority="-2" mode="M26"><axsl:apply-templates select="@*|*" mode="M26"/></axsl:template>
511
512 <!--PATTERN entityobjectbaserules-->
513
514
515 <!--RULE -->
516 <axsl:template match="oval-def:objects/*/*[@var_ref]" priority="1001" mode="M27">
517
518 <!--ASSERT -->
519 <axsl:choose><axsl:when test="@var_check"/><axsl:otherwise>
520 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - a var_ref has been supplied for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity so a var_check should also be provided<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M27"/></axsl:template>
521
522 <!--RULE -->
523 <axsl:template match="oval-def:objects/*/*[@var_check]" priority="1000" mode="M27">
524
525 <!--ASSERT -->
526 <axsl:choose><axsl:when test="@var_ref"/><axsl:otherwise>
527 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - a var_check has been supplied for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity so a var_ref should also be provided<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M27"/></axsl:template><axsl:template match="text()" priority="-1" mode="M27"/><axsl:template match="@*|node()" priority="-2" mode="M27"><axsl:apply-templates select="@*|*" mode="M27"/></axsl:template>
528
529 <!--PATTERN entitystatebaserules-->
530
531
532 <!--RULE -->
533 <axsl:template match="oval-def:states/*/*[@var_ref]" priority="1001" mode="M28">
534
535 <!--ASSERT -->
536 <axsl:choose><axsl:when test="@var_check"/><axsl:otherwise>
537 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - a var_ref has been supplied for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity so a var_check should also be provided<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M28"/></axsl:template>
538
539 <!--RULE -->
540 <axsl:template match="oval-def:states/*/*[@var_check]" priority="1000" mode="M28">
541
542 <!--ASSERT -->
543 <axsl:choose><axsl:when test="@var_ref"/><axsl:otherwise>
544 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - a var_check has been supplied for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity so a var_ref should also be provided<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M28"/></axsl:template><axsl:template match="text()" priority="-1" mode="M28"/><axsl:template match="@*|node()" priority="-2" mode="M28"><axsl:apply-templates select="@*|*" mode="M28"/></axsl:template>
545
546 <!--PATTERN sc_entity_rules-->
547
548
549 <!--RULE -->
550 <axsl:template match="oval-sc:system_data/*/*" priority="1000" mode="M29">
551
552 <!--ASSERT -->
553 <axsl:choose><axsl:when test="not(@status) or @status='exists' or .=''"/><axsl:otherwise>item <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - a value for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity should only be supplied if the status attribute is 'exists'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
554
555 <!--ASSERT -->
556 <axsl:choose><axsl:when test="not(@mask) or @mask='false' or .=''"/><axsl:otherwise>item <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - a value for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity should only be supplied if the mask attribute is 'false'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M29"/></axsl:template><axsl:template match="text()" priority="-1" mode="M29"/><axsl:template match="@*|node()" priority="-2" mode="M29"><axsl:apply-templates select="@*|*" mode="M29"/></axsl:template>
557
558 <!--PATTERN famtst-->
559
560
561 <!--RULE -->
562 <axsl:template match="ind-def:family_test/ind-def:object" priority="1001" mode="M30">
563
564 <!--ASSERT -->
565 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:family_object/@id"/><axsl:otherwise>
566 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a family_test must reference a family_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M30"/></axsl:template>
567
568 <!--RULE -->
569 <axsl:template match="ind-def:family_test/ind-def:state" priority="1000" mode="M30">
570
571 <!--ASSERT -->
572 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:family_state/@id"/><axsl:otherwise>
573 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a family_test must reference a family_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M30"/></axsl:template><axsl:template match="text()" priority="-1" mode="M30"/><axsl:template match="@*|node()" priority="-2" mode="M30"><axsl:apply-templates select="@*|*" mode="M30"/></axsl:template>
574
575 <!--PATTERN famstefamily-->
576
577
578 <!--RULE -->
579 <axsl:template match="ind-def:family_state/ind-def:family" priority="1000" mode="M31">
580
581 <!--ASSERT -->
582 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
583 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the family entity of a family_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M31"/></axsl:template><axsl:template match="text()" priority="-1" mode="M31"/><axsl:template match="@*|node()" priority="-2" mode="M31"><axsl:apply-templates select="@*|*" mode="M31"/></axsl:template>
584
585 <!--PATTERN md5tst_dep-->
586
587
588 <!--RULE -->
589 <axsl:template match="ind-def:filemd5_test" priority="1000" mode="M32">
590
591 <!--REPORT -->
592 <axsl:if test="true()"> DEPRECATED TEST: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
593 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M32"/></axsl:template><axsl:template match="text()" priority="-1" mode="M32"/><axsl:template match="@*|node()" priority="-2" mode="M32"><axsl:apply-templates select="@*|*" mode="M32"/></axsl:template>
594
595 <!--PATTERN md5tst-->
596
597
598 <!--RULE -->
599 <axsl:template match="ind-def:filemd5_test/ind-def:object" priority="1001" mode="M33">
600
601 <!--ASSERT -->
602 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:filemd5_object/@id"/><axsl:otherwise>
603 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a filemd5_test must reference a filemd5_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M33"/></axsl:template>
604
605 <!--RULE -->
606 <axsl:template match="ind-def:filemd5_test/ind-def:state" priority="1000" mode="M33">
607
608 <!--ASSERT -->
609 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:filemd5_state/@id"/><axsl:otherwise>
610 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a filemd5_test must reference a filemd5_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M33"/></axsl:template><axsl:template match="text()" priority="-1" mode="M33"/><axsl:template match="@*|node()" priority="-2" mode="M33"><axsl:apply-templates select="@*|*" mode="M33"/></axsl:template>
611
612 <!--PATTERN md5obj_dep-->
613
614
615 <!--RULE -->
616 <axsl:template match="ind-def:filemd5_object" priority="1000" mode="M34">
617
618 <!--REPORT -->
619 <axsl:if test="true()"> DEPRECATED OBJECT: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
620 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M34"/></axsl:template><axsl:template match="text()" priority="-1" mode="M34"/><axsl:template match="@*|node()" priority="-2" mode="M34"><axsl:apply-templates select="@*|*" mode="M34"/></axsl:template>
621
622 <!--PATTERN md5objpath-->
623
624
625 <!--RULE -->
626 <axsl:template match="ind-def:filemd5_object/ind-def:path" priority="1000" mode="M35">
627
628 <!--ASSERT -->
629 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
630 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a filemd5_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M35"/></axsl:template><axsl:template match="text()" priority="-1" mode="M35"/><axsl:template match="@*|node()" priority="-2" mode="M35"><axsl:apply-templates select="@*|*" mode="M35"/></axsl:template>
631
632 <!--PATTERN md5objfilename-->
633
634
635 <!--RULE -->
636 <axsl:template match="ind-def:filemd5_object/ind-def:filename" priority="1000" mode="M36">
637
638 <!--ASSERT -->
639 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
640 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a filemd5_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M36"/></axsl:template><axsl:template match="text()" priority="-1" mode="M36"/><axsl:template match="@*|node()" priority="-2" mode="M36"><axsl:apply-templates select="@*|*" mode="M36"/></axsl:template>
641
642 <!--PATTERN md5ste_dep-->
643
644
645 <!--RULE -->
646 <axsl:template match="ind-def:filemd5_state" priority="1000" mode="M37">
647
648 <!--REPORT -->
649 <axsl:if test="true()"> DEPRECATED STATE: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
650 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M37"/></axsl:template><axsl:template match="text()" priority="-1" mode="M37"/><axsl:template match="@*|node()" priority="-2" mode="M37"><axsl:apply-templates select="@*|*" mode="M37"/></axsl:template>
651
652 <!--PATTERN md5stepath-->
653
654
655 <!--RULE -->
656 <axsl:template match="ind-def:filemd5_state/ind-def:path" priority="1000" mode="M38">
657
658 <!--ASSERT -->
659 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
660 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a filemd5_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M38"/></axsl:template><axsl:template match="text()" priority="-1" mode="M38"/><axsl:template match="@*|node()" priority="-2" mode="M38"><axsl:apply-templates select="@*|*" mode="M38"/></axsl:template>
661
662 <!--PATTERN md5stefilename-->
663
664
665 <!--RULE -->
666 <axsl:template match="ind-def:filemd5_state/ind-def:filename" priority="1000" mode="M39">
667
668 <!--ASSERT -->
669 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
670 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a filemd5_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M39"/></axsl:template><axsl:template match="text()" priority="-1" mode="M39"/><axsl:template match="@*|node()" priority="-2" mode="M39"><axsl:apply-templates select="@*|*" mode="M39"/></axsl:template>
671
672 <!--PATTERN md5stemd5-->
673
674
675 <!--RULE -->
676 <axsl:template match="ind-def:filemd5_state/ind-def:md5" priority="1000" mode="M40">
677
678 <!--ASSERT -->
679 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
680 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the md5 entity of a filemd5_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M40"/></axsl:template><axsl:template match="text()" priority="-1" mode="M40"/><axsl:template match="@*|node()" priority="-2" mode="M40"><axsl:apply-templates select="@*|*" mode="M40"/></axsl:template>
681
682 <!--PATTERN hashtst-->
683
684
685 <!--RULE -->
686 <axsl:template match="ind-def:filehash_test/ind-def:object" priority="1001" mode="M41">
687
688 <!--ASSERT -->
689 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:filehash_object/@id"/><axsl:otherwise>
690 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a filehash_test must reference a filesha1_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M41"/></axsl:template>
691
692 <!--RULE -->
693 <axsl:template match="ind-def:filehash_test/ind-def:state" priority="1000" mode="M41">
694
695 <!--ASSERT -->
696 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:filehash_state/@id"/><axsl:otherwise>
697 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a filehash_test must reference a filesha1_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M41"/></axsl:template><axsl:template match="text()" priority="-1" mode="M41"/><axsl:template match="@*|node()" priority="-2" mode="M41"><axsl:apply-templates select="@*|*" mode="M41"/></axsl:template>
698
699 <!--PATTERN hashobjfilepath-->
700
701
702 <!--RULE -->
703 <axsl:template match="ind-def:filehash_object/ind-def:filepath" priority="1000" mode="M42">
704
705 <!--ASSERT -->
706 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
707 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filepath entity of a filehash_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M42"/></axsl:template><axsl:template match="text()" priority="-1" mode="M42"/><axsl:template match="@*|node()" priority="-2" mode="M42"><axsl:apply-templates select="@*|*" mode="M42"/></axsl:template>
708
709 <!--PATTERN hashobjpath-->
710
711
712 <!--RULE -->
713 <axsl:template match="ind-def:filehash_object/ind-def:path" priority="1000" mode="M43">
714
715 <!--ASSERT -->
716 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
717 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a filehash_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M43"/></axsl:template><axsl:template match="text()" priority="-1" mode="M43"/><axsl:template match="@*|node()" priority="-2" mode="M43"><axsl:apply-templates select="@*|*" mode="M43"/></axsl:template>
718
719 <!--PATTERN hashobjfilename-->
720
721
722 <!--RULE -->
723 <axsl:template match="ind-def:filehash_object/ind-def:filename" priority="1000" mode="M44">
724
725 <!--ASSERT -->
726 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
727 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a filehash_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M44"/></axsl:template><axsl:template match="text()" priority="-1" mode="M44"/><axsl:template match="@*|node()" priority="-2" mode="M44"><axsl:apply-templates select="@*|*" mode="M44"/></axsl:template>
728
729 <!--PATTERN hashstefilepath-->
730
731
732 <!--RULE -->
733 <axsl:template match="ind-def:filehash_state/ind-def:filepath" priority="1000" mode="M45">
734
735 <!--ASSERT -->
736 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
737 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filepath entity of a filehash_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M45"/></axsl:template><axsl:template match="text()" priority="-1" mode="M45"/><axsl:template match="@*|node()" priority="-2" mode="M45"><axsl:apply-templates select="@*|*" mode="M45"/></axsl:template>
738
739 <!--PATTERN hashstepath-->
740
741
742 <!--RULE -->
743 <axsl:template match="ind-def:filehash_state/ind-def:path" priority="1000" mode="M46">
744
745 <!--ASSERT -->
746 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
747 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a filehash_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M46"/></axsl:template><axsl:template match="text()" priority="-1" mode="M46"/><axsl:template match="@*|node()" priority="-2" mode="M46"><axsl:apply-templates select="@*|*" mode="M46"/></axsl:template>
748
749 <!--PATTERN hashstefilename-->
750
751
752 <!--RULE -->
753 <axsl:template match="ind-def:filehash_state/ind-def:filename" priority="1000" mode="M47">
754
755 <!--ASSERT -->
756 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
757 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a filehash_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M47"/></axsl:template><axsl:template match="text()" priority="-1" mode="M47"/><axsl:template match="@*|node()" priority="-2" mode="M47"><axsl:apply-templates select="@*|*" mode="M47"/></axsl:template>
758
759 <!--PATTERN hashstemd5-->
760
761
762 <!--RULE -->
763 <axsl:template match="ind-def:filehash_state/ind-def:md5" priority="1000" mode="M48">
764
765 <!--ASSERT -->
766 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
767 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the md5 entity of a filehash_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M48"/></axsl:template><axsl:template match="text()" priority="-1" mode="M48"/><axsl:template match="@*|node()" priority="-2" mode="M48"><axsl:apply-templates select="@*|*" mode="M48"/></axsl:template>
768
769 <!--PATTERN hashstesha1-->
770
771
772 <!--RULE -->
773 <axsl:template match="ind-def:filehash_state/ind-def:sha1" priority="1000" mode="M49">
774
775 <!--ASSERT -->
776 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
777 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the sha1 entity of a filehash_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M49"/></axsl:template><axsl:template match="text()" priority="-1" mode="M49"/><axsl:template match="@*|node()" priority="-2" mode="M49"><axsl:apply-templates select="@*|*" mode="M49"/></axsl:template>
778
779 <!--PATTERN envtst-->
780
781
782 <!--RULE -->
783 <axsl:template match="ind-def:environmentvariable_test/ind-def:object" priority="1001" mode="M50">
784
785 <!--ASSERT -->
786 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:environmentvariable_object/@id"/><axsl:otherwise>
787 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of an environmentvariable_test must reference a environmentvariable_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M50"/></axsl:template>
788
789 <!--RULE -->
790 <axsl:template match="ind-def:environmentvariable_test/ind-def:state" priority="1000" mode="M50">
791
792 <!--ASSERT -->
793 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:environmentvariable_state/@id"/><axsl:otherwise>
794 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of an environmentvariable_test must reference a environmentvariable_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M50"/></axsl:template><axsl:template match="text()" priority="-1" mode="M50"/><axsl:template match="@*|node()" priority="-2" mode="M50"><axsl:apply-templates select="@*|*" mode="M50"/></axsl:template>
795
796 <!--PATTERN envobjname-->
797
798
799 <!--RULE -->
800 <axsl:template match="ind-def:environmentvariable_object/ind-def:name" priority="1000" mode="M51">
801
802 <!--ASSERT -->
803 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
804 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the name entity of an environmentvariable_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M51"/></axsl:template><axsl:template match="text()" priority="-1" mode="M51"/><axsl:template match="@*|node()" priority="-2" mode="M51"><axsl:apply-templates select="@*|*" mode="M51"/></axsl:template>
805
806 <!--PATTERN envstename-->
807
808
809 <!--RULE -->
810 <axsl:template match="ind-def:environmentvariable_state/ind-def:name" priority="1000" mode="M52">
811
812 <!--ASSERT -->
813 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
814 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the name entity of an environmentvariable_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M52"/></axsl:template><axsl:template match="text()" priority="-1" mode="M52"/><axsl:template match="@*|node()" priority="-2" mode="M52"><axsl:apply-templates select="@*|*" mode="M52"/></axsl:template>
815
816 <!--PATTERN envstevalue-->
817
818
819 <!--RULE -->
820 <axsl:template match="ind-def:environmentvariable_state/ind-def:value" priority="1000" mode="M53">
821
822 <!--ASSERT -->
823 <axsl:choose><axsl:when test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())"/><axsl:otherwise>
824 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The datatype has been set to 'int' but the value is not an integer.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M53"/></axsl:template><axsl:template match="text()" priority="-1" mode="M53"/><axsl:template match="@*|node()" priority="-2" mode="M53"><axsl:apply-templates select="@*|*" mode="M53"/></axsl:template>
825
826 <!--PATTERN ldaptst-->
827
828
829 <!--RULE -->
830 <axsl:template match="ind-def:ldap_test/ind-def:object" priority="1001" mode="M54">
831
832 <!--ASSERT -->
833 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:ldap_object/@id"/><axsl:otherwise>
834 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of an ldap_test must reference an ldap_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M54"/></axsl:template>
835
836 <!--RULE -->
837 <axsl:template match="ind-def:ldap_test/ind-def:state" priority="1000" mode="M54">
838
839 <!--ASSERT -->
840 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:ldap_state/@id"/><axsl:otherwise>
841 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of an ldap_test must reference an ldap_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M54"/></axsl:template><axsl:template match="text()" priority="-1" mode="M54"/><axsl:template match="@*|node()" priority="-2" mode="M54"><axsl:apply-templates select="@*|*" mode="M54"/></axsl:template>
842
843 <!--PATTERN ldapobjsuffix-->
844
845
846 <!--RULE -->
847 <axsl:template match="ind-def:ldap_object/ind-def:suffix" priority="1000" mode="M55">
848
849 <!--ASSERT -->
850 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
851 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the suffix entity of an ldap_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M55"/></axsl:template><axsl:template match="text()" priority="-1" mode="M55"/><axsl:template match="@*|node()" priority="-2" mode="M55"><axsl:apply-templates select="@*|*" mode="M55"/></axsl:template>
852
853 <!--PATTERN ldapobjrelative_dn-->
854
855
856 <!--RULE -->
857 <axsl:template match="ind-def:ldap_object/ind-def:relative_dn" priority="1000" mode="M56">
858
859 <!--ASSERT -->
860 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
861 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the relative_dn entity of an ldap_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M56"/></axsl:template><axsl:template match="text()" priority="-1" mode="M56"/><axsl:template match="@*|node()" priority="-2" mode="M56"><axsl:apply-templates select="@*|*" mode="M56"/></axsl:template>
862
863 <!--PATTERN ldapobjattribute-->
864
865
866 <!--RULE -->
867 <axsl:template match="ind-def:ldap_object/ind-def:attribute" priority="1000" mode="M57">
868
869 <!--ASSERT -->
870 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
871 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the attribute entity of an ldap_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M57"/></axsl:template><axsl:template match="text()" priority="-1" mode="M57"/><axsl:template match="@*|node()" priority="-2" mode="M57"><axsl:apply-templates select="@*|*" mode="M57"/></axsl:template>
872
873 <!--PATTERN ldapstesuffix-->
874
875
876 <!--RULE -->
877 <axsl:template match="ind-def:ldap_state/ind-def:suffix" priority="1000" mode="M58">
878
879 <!--ASSERT -->
880 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
881 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the suffix entity of an ldap_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M58"/></axsl:template><axsl:template match="text()" priority="-1" mode="M58"/><axsl:template match="@*|node()" priority="-2" mode="M58"><axsl:apply-templates select="@*|*" mode="M58"/></axsl:template>
882
883 <!--PATTERN ldapsterelative_dn-->
884
885
886 <!--RULE -->
887 <axsl:template match="ind-def:ldap_state/ind-def:relative_dn" priority="1000" mode="M59">
888
889 <!--ASSERT -->
890 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
891 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the relative_dn entity of an ldap_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M59"/></axsl:template><axsl:template match="text()" priority="-1" mode="M59"/><axsl:template match="@*|node()" priority="-2" mode="M59"><axsl:apply-templates select="@*|*" mode="M59"/></axsl:template>
892
893 <!--PATTERN ldapsteattribute-->
894
895
896 <!--RULE -->
897 <axsl:template match="ind-def:ldap_state/ind-def:attribute" priority="1000" mode="M60">
898
899 <!--ASSERT -->
900 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
901 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the attribute entity of an ldap_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M60"/></axsl:template><axsl:template match="text()" priority="-1" mode="M60"/><axsl:template match="@*|node()" priority="-2" mode="M60"><axsl:apply-templates select="@*|*" mode="M60"/></axsl:template>
902
903 <!--PATTERN ldapsteobject_class-->
904
905
906 <!--RULE -->
907 <axsl:template match="ind-def:ldap_state/ind-def:object_class" priority="1000" mode="M61">
908
909 <!--ASSERT -->
910 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
911 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the object_class entity of an ldap_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M61"/></axsl:template><axsl:template match="text()" priority="-1" mode="M61"/><axsl:template match="@*|node()" priority="-2" mode="M61"><axsl:apply-templates select="@*|*" mode="M61"/></axsl:template>
912
913 <!--PATTERN ldapsteldaptype-->
914
915
916 <!--RULE -->
917 <axsl:template match="ind-def:ldap_state/ind-def:ldaptype" priority="1000" mode="M62">
918
919 <!--ASSERT -->
920 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
921 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the ldaptype entity of an ldap_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M62"/></axsl:template><axsl:template match="text()" priority="-1" mode="M62"/><axsl:template match="@*|node()" priority="-2" mode="M62"><axsl:apply-templates select="@*|*" mode="M62"/></axsl:template>
922
923 <!--PATTERN ldapstevalue-->
924
925
926 <!--RULE -->
927 <axsl:template match="ind-def:ldap_state/ind-def:value" priority="1000" mode="M63">
928
929 <!--ASSERT -->
930 <axsl:choose><axsl:when test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())"/><axsl:otherwise>
931 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The datatype has been set to 'int' but the value is not an integer.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M63"/></axsl:template><axsl:template match="text()" priority="-1" mode="M63"/><axsl:template match="@*|node()" priority="-2" mode="M63"><axsl:apply-templates select="@*|*" mode="M63"/></axsl:template>
932
933 <!--PATTERN sqltst-->
934
935
936 <!--RULE -->
937 <axsl:template match="ind-def:sql_test/ind-def:object" priority="1001" mode="M64">
938
939 <!--ASSERT -->
940 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:sql_object/@id"/><axsl:otherwise>
941 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a sql_test must reference a sql_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M64"/></axsl:template>
942
943 <!--RULE -->
944 <axsl:template match="ind-def:sql_test/ind-def:state" priority="1000" mode="M64">
945
946 <!--ASSERT -->
947 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:sql_state/@id"/><axsl:otherwise>
948 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a sql_test must reference a sql_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M64"/></axsl:template><axsl:template match="text()" priority="-1" mode="M64"/><axsl:template match="@*|node()" priority="-2" mode="M64"><axsl:apply-templates select="@*|*" mode="M64"/></axsl:template>
949
950 <!--PATTERN sqlobjdengine-->
951
952
953 <!--RULE -->
954 <axsl:template match="ind-def:sql_object/ind-def:engine" priority="1000" mode="M65">
955
956 <!--ASSERT -->
957 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
958 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the engine entity of an sql_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
959
960 <!--ASSERT -->
961 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
962 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the engine entity of an sql_object should be 'equals', note that this overrules the general operation attribute validation (i.e. follow this one)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M65"/></axsl:template><axsl:template match="text()" priority="-1" mode="M65"/><axsl:template match="@*|node()" priority="-2" mode="M65"><axsl:apply-templates select="@*|*" mode="M65"/></axsl:template>
963
964 <!--PATTERN sqlobjversion-->
965
966
967 <!--RULE -->
968 <axsl:template match="ind-def:sql_object/ind-def:version" priority="1000" mode="M66">
969
970 <!--ASSERT -->
971 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
972 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the version entity of an sql_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
973
974 <!--ASSERT -->
975 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
976 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the version entity of an sql_object should be 'equals', note that this overrules the general operation attribute validation (i.e. follow this one)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M66"/></axsl:template><axsl:template match="text()" priority="-1" mode="M66"/><axsl:template match="@*|node()" priority="-2" mode="M66"><axsl:apply-templates select="@*|*" mode="M66"/></axsl:template>
977
978 <!--PATTERN sqlobjconnection_string-->
979
980
981 <!--RULE -->
982 <axsl:template match="ind-def:sql_object/ind-def:connection_string" priority="1000" mode="M67">
983
984 <!--ASSERT -->
985 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
986 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the connection_string entity of an sql_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
987
988 <!--ASSERT -->
989 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
990 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the connection_string entity of an sql_object should be 'equals', note that this overrules the general operation attribute validation (i.e. follow this one)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M67"/></axsl:template><axsl:template match="text()" priority="-1" mode="M67"/><axsl:template match="@*|node()" priority="-2" mode="M67"><axsl:apply-templates select="@*|*" mode="M67"/></axsl:template>
991
992 <!--PATTERN sqlobjsql-->
993
994
995 <!--RULE -->
996 <axsl:template match="ind-def:sql_object/ind-def:sql" priority="1000" mode="M68">
997
998 <!--ASSERT -->
999 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1000 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the sql entity of a sql_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1001
1002 <!--ASSERT -->
1003 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1004 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the sql entity of an sql_object should be 'equals', note that this overrules the general operation attribute validation (i.e. follow this one)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M68"/></axsl:template><axsl:template match="text()" priority="-1" mode="M68"/><axsl:template match="@*|node()" priority="-2" mode="M68"><axsl:apply-templates select="@*|*" mode="M68"/></axsl:template>
1005
1006 <!--PATTERN sqlsteengine-->
1007
1008
1009 <!--RULE -->
1010 <axsl:template match="ind-def:sql_state/ind-def:engine" priority="1000" mode="M69">
1011
1012 <!--ASSERT -->
1013 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1014 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the engine entity of an sql_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M69"/></axsl:template><axsl:template match="text()" priority="-1" mode="M69"/><axsl:template match="@*|node()" priority="-2" mode="M69"><axsl:apply-templates select="@*|*" mode="M69"/></axsl:template>
1015
1016 <!--PATTERN sqlsteversion-->
1017
1018
1019 <!--RULE -->
1020 <axsl:template match="ind-def:sql_state/ind-def:version" priority="1000" mode="M70">
1021
1022 <!--ASSERT -->
1023 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1024 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the version entity of an sql_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M70"/></axsl:template><axsl:template match="text()" priority="-1" mode="M70"/><axsl:template match="@*|node()" priority="-2" mode="M70"><axsl:apply-templates select="@*|*" mode="M70"/></axsl:template>
1025
1026 <!--PATTERN sqlsteconnection_string-->
1027
1028
1029 <!--RULE -->
1030 <axsl:template match="ind-def:sql_state/ind-def:connection_string" priority="1000" mode="M71">
1031
1032 <!--ASSERT -->
1033 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1034 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the connection_string entity of an sql_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M71"/></axsl:template><axsl:template match="text()" priority="-1" mode="M71"/><axsl:template match="@*|node()" priority="-2" mode="M71"><axsl:apply-templates select="@*|*" mode="M71"/></axsl:template>
1035
1036 <!--PATTERN sqlstesql-->
1037
1038
1039 <!--RULE -->
1040 <axsl:template match="ind-def:sql_state/ind-def:sql" priority="1000" mode="M72">
1041
1042 <!--ASSERT -->
1043 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1044 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the sql entity of a sql_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M72"/></axsl:template><axsl:template match="text()" priority="-1" mode="M72"/><axsl:template match="@*|node()" priority="-2" mode="M72"><axsl:apply-templates select="@*|*" mode="M72"/></axsl:template>
1045
1046 <!--PATTERN sqlsteresult-->
1047
1048
1049 <!--RULE -->
1050 <axsl:template match="ind-def:sql_state/ind-def:result" priority="1000" mode="M73">
1051
1052 <!--ASSERT -->
1053 <axsl:choose><axsl:when test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())"/><axsl:otherwise>
1054 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The datatype has been set to 'int' but the value is not an integer.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M73"/></axsl:template><axsl:template match="text()" priority="-1" mode="M73"/><axsl:template match="@*|node()" priority="-2" mode="M73"><axsl:apply-templates select="@*|*" mode="M73"/></axsl:template>
1055
1056 <!--PATTERN txt54tst-->
1057
1058
1059 <!--RULE -->
1060 <axsl:template match="ind-def:textfilecontent54_test/ind-def:object" priority="1001" mode="M74">
1061
1062 <!--ASSERT -->
1063 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:textfilecontent54_object/@id"/><axsl:otherwise>
1064 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a textfilecontent54_test must reference a textfilecontent54_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M74"/></axsl:template>
1065
1066 <!--RULE -->
1067 <axsl:template match="ind-def:textfilecontent54_test/ind-def:state" priority="1000" mode="M74">
1068
1069 <!--ASSERT -->
1070 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:textfilecontent54_state/@id"/><axsl:otherwise>
1071 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a textfilecontent54_test must reference a textfilecontent54_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M74"/></axsl:template><axsl:template match="text()" priority="-1" mode="M74"/><axsl:template match="@*|node()" priority="-2" mode="M74"><axsl:apply-templates select="@*|*" mode="M74"/></axsl:template>
1072
1073 <!--PATTERN txt54objfilepath-->
1074
1075
1076 <!--RULE -->
1077 <axsl:template match="ind-def:textfilecontent54_object/ind-def:filepath" priority="1000" mode="M75">
1078
1079 <!--ASSERT -->
1080 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1081 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filepath entity of a textfilecontent54_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M75"/></axsl:template><axsl:template match="text()" priority="-1" mode="M75"/><axsl:template match="@*|node()" priority="-2" mode="M75"><axsl:apply-templates select="@*|*" mode="M75"/></axsl:template>
1082
1083 <!--PATTERN txt54objpath-->
1084
1085
1086 <!--RULE -->
1087 <axsl:template match="ind-def:textfilecontent54_object/ind-def:path" priority="1000" mode="M76">
1088
1089 <!--ASSERT -->
1090 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1091 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a textfilecontent54_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M76"/></axsl:template><axsl:template match="text()" priority="-1" mode="M76"/><axsl:template match="@*|node()" priority="-2" mode="M76"><axsl:apply-templates select="@*|*" mode="M76"/></axsl:template>
1092
1093 <!--PATTERN txt54objfilename-->
1094
1095
1096 <!--RULE -->
1097 <axsl:template match="ind-def:textfilecontent54_object/ind-def:filename" priority="1000" mode="M77">
1098
1099 <!--ASSERT -->
1100 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1101 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a textfilecontent54_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M77"/></axsl:template><axsl:template match="text()" priority="-1" mode="M77"/><axsl:template match="@*|node()" priority="-2" mode="M77"><axsl:apply-templates select="@*|*" mode="M77"/></axsl:template>
1102
1103 <!--PATTERN txt54objpattern-->
1104
1105
1106 <!--RULE -->
1107 <axsl:template match="ind-def:textfilecontent54_object/ind-def:pattern" priority="1000" mode="M78">
1108
1109 <!--ASSERT -->
1110 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1111 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the pattern entity of a textfilecontent54_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1112
1113 <!--ASSERT -->
1114 <axsl:choose><axsl:when test="@operation='pattern match'"/><axsl:otherwise>
1115 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the pattern entity of a textfilecontent54_object should be 'pattern match'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M78"/></axsl:template><axsl:template match="text()" priority="-1" mode="M78"/><axsl:template match="@*|node()" priority="-2" mode="M78"><axsl:apply-templates select="@*|*" mode="M78"/></axsl:template>
1116
1117 <!--PATTERN txt54objinstance-->
1118
1119
1120 <!--RULE -->
1121 <axsl:template match="ind-def:textfilecontent54_object/ind-def:instance" priority="1000" mode="M79">
1122
1123 <!--ASSERT -->
1124 <axsl:choose><axsl:when test="@datatype='int'"/><axsl:otherwise>
1125 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the instance entity of a textfilecontent54_object should be 'int'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M79"/></axsl:template><axsl:template match="text()" priority="-1" mode="M79"/><axsl:template match="@*|node()" priority="-2" mode="M79"><axsl:apply-templates select="@*|*" mode="M79"/></axsl:template>
1126
1127 <!--PATTERN txt54stefilepath-->
1128
1129
1130 <!--RULE -->
1131 <axsl:template match="ind-def:textfilecontent54_state/ind-def:filepath" priority="1000" mode="M80">
1132
1133 <!--ASSERT -->
1134 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1135 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filepath entity of a textfilecontent54_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M80"/></axsl:template><axsl:template match="text()" priority="-1" mode="M80"/><axsl:template match="@*|node()" priority="-2" mode="M80"><axsl:apply-templates select="@*|*" mode="M80"/></axsl:template>
1136
1137 <!--PATTERN txt54stepath-->
1138
1139
1140 <!--RULE -->
1141 <axsl:template match="ind-def:textfilecontent54_state/ind-def:path" priority="1000" mode="M81">
1142
1143 <!--ASSERT -->
1144 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1145 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a textfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M81"/></axsl:template><axsl:template match="text()" priority="-1" mode="M81"/><axsl:template match="@*|node()" priority="-2" mode="M81"><axsl:apply-templates select="@*|*" mode="M81"/></axsl:template>
1146
1147 <!--PATTERN txt54stefilename-->
1148
1149
1150 <!--RULE -->
1151 <axsl:template match="ind-def:textfilecontent54_state/ind-def:filename" priority="1000" mode="M82">
1152
1153 <!--ASSERT -->
1154 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1155 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a textfilecontent54_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M82"/></axsl:template><axsl:template match="text()" priority="-1" mode="M82"/><axsl:template match="@*|node()" priority="-2" mode="M82"><axsl:apply-templates select="@*|*" mode="M82"/></axsl:template>
1156
1157 <!--PATTERN txt54stepattern-->
1158
1159
1160 <!--RULE -->
1161 <axsl:template match="ind-def:textfilecontent54_state/ind-def:pattern" priority="1000" mode="M83">
1162
1163 <!--ASSERT -->
1164 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1165 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the pattern entity of a textfilecontent54_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M83"/></axsl:template><axsl:template match="text()" priority="-1" mode="M83"/><axsl:template match="@*|node()" priority="-2" mode="M83"><axsl:apply-templates select="@*|*" mode="M83"/></axsl:template>
1166
1167 <!--PATTERN txt54steinstance-->
1168
1169
1170 <!--RULE -->
1171 <axsl:template match="ind-def:textfilecontent54_state/ind-def:instance" priority="1000" mode="M84">
1172
1173 <!--ASSERT -->
1174 <axsl:choose><axsl:when test="@datatype='int'"/><axsl:otherwise>
1175 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the instance entity of a textfilecontent54_state should be 'int'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M84"/></axsl:template><axsl:template match="text()" priority="-1" mode="M84"/><axsl:template match="@*|node()" priority="-2" mode="M84"><axsl:apply-templates select="@*|*" mode="M84"/></axsl:template>
1176
1177 <!--PATTERN txt54stetext-->
1178
1179
1180 <!--RULE -->
1181 <axsl:template match="ind-def:textfilecontent54_state/ind-def:text" priority="1000" mode="M85">
1182
1183 <!--ASSERT -->
1184 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1185 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the text entity of a textfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M85"/></axsl:template><axsl:template match="text()" priority="-1" mode="M85"/><axsl:template match="@*|node()" priority="-2" mode="M85"><axsl:apply-templates select="@*|*" mode="M85"/></axsl:template>
1186
1187 <!--PATTERN txt54stesubexpression-->
1188
1189
1190 <!--RULE -->
1191 <axsl:template match="ind-def:textfilecontent54_state/ind-def:subexpression" priority="1000" mode="M86">
1192
1193 <!--ASSERT -->
1194 <axsl:choose><axsl:when test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())"/><axsl:otherwise>
1195 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The datatype has been set to 'int' but the value is not an integer.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M86"/></axsl:template><axsl:template match="text()" priority="-1" mode="M86"/><axsl:template match="@*|node()" priority="-2" mode="M86"><axsl:apply-templates select="@*|*" mode="M86"/></axsl:template>
1196
1197 <!--PATTERN txttst_dep-->
1198
1199
1200 <!--RULE -->
1201 <axsl:template match="ind-def:textfilecontent_test" priority="1000" mode="M87">
1202
1203 <!--REPORT -->
1204 <axsl:if test="true()"> DEPRECATED TEST: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
1205 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M87"/></axsl:template><axsl:template match="text()" priority="-1" mode="M87"/><axsl:template match="@*|node()" priority="-2" mode="M87"><axsl:apply-templates select="@*|*" mode="M87"/></axsl:template>
1206
1207 <!--PATTERN txttst-->
1208
1209
1210 <!--RULE -->
1211 <axsl:template match="ind-def:textfilecontent_test/ind-def:object" priority="1001" mode="M88">
1212
1213 <!--ASSERT -->
1214 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:textfilecontent_object/@id"/><axsl:otherwise>
1215 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a textfilecontent_test must reference a textfilecontent_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M88"/></axsl:template>
1216
1217 <!--RULE -->
1218 <axsl:template match="ind-def:textfilecontent_test/ind-def:state" priority="1000" mode="M88">
1219
1220 <!--ASSERT -->
1221 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:textfilecontent_state/@id"/><axsl:otherwise>
1222 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a textfilecontent_test must reference a textfilecontent_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M88"/></axsl:template><axsl:template match="text()" priority="-1" mode="M88"/><axsl:template match="@*|node()" priority="-2" mode="M88"><axsl:apply-templates select="@*|*" mode="M88"/></axsl:template>
1223
1224 <!--PATTERN txtobj_dep-->
1225
1226
1227 <!--RULE -->
1228 <axsl:template match="ind-def:textfilecontent_object" priority="1000" mode="M89">
1229
1230 <!--REPORT -->
1231 <axsl:if test="true()"> DEPRECATED OBJECT: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
1232 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M89"/></axsl:template><axsl:template match="text()" priority="-1" mode="M89"/><axsl:template match="@*|node()" priority="-2" mode="M89"><axsl:apply-templates select="@*|*" mode="M89"/></axsl:template>
1233
1234 <!--PATTERN txtobjpath-->
1235
1236
1237 <!--RULE -->
1238 <axsl:template match="ind-def:textfilecontent_object/ind-def:path" priority="1000" mode="M90">
1239
1240 <!--ASSERT -->
1241 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1242 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a textfilecontent_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M90"/></axsl:template><axsl:template match="text()" priority="-1" mode="M90"/><axsl:template match="@*|node()" priority="-2" mode="M90"><axsl:apply-templates select="@*|*" mode="M90"/></axsl:template>
1243
1244 <!--PATTERN txtobjfilename-->
1245
1246
1247 <!--RULE -->
1248 <axsl:template match="ind-def:textfilecontent_object/ind-def:filename" priority="1000" mode="M91">
1249
1250 <!--ASSERT -->
1251 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1252 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a textfilecontent_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M91"/></axsl:template><axsl:template match="text()" priority="-1" mode="M91"/><axsl:template match="@*|node()" priority="-2" mode="M91"><axsl:apply-templates select="@*|*" mode="M91"/></axsl:template>
1253
1254 <!--PATTERN txtobjline-->
1255
1256
1257 <!--RULE -->
1258 <axsl:template match="ind-def:textfilecontent_object/ind-def:line" priority="1000" mode="M92">
1259
1260 <!--ASSERT -->
1261 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1262 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the line entity of a textfilecontent_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1263
1264 <!--ASSERT -->
1265 <axsl:choose><axsl:when test="@operation='pattern match'"/><axsl:otherwise>
1266 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the line entity of a textfilecontent_object should be 'pattern match'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M92"/></axsl:template><axsl:template match="text()" priority="-1" mode="M92"/><axsl:template match="@*|node()" priority="-2" mode="M92"><axsl:apply-templates select="@*|*" mode="M92"/></axsl:template>
1267
1268 <!--PATTERN txtste_dep-->
1269
1270
1271 <!--RULE -->
1272 <axsl:template match="ind-def:textfilecontent_state" priority="1000" mode="M93">
1273
1274 <!--REPORT -->
1275 <axsl:if test="true()"> DEPRECATED STATE: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
1276 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M93"/></axsl:template><axsl:template match="text()" priority="-1" mode="M93"/><axsl:template match="@*|node()" priority="-2" mode="M93"><axsl:apply-templates select="@*|*" mode="M93"/></axsl:template>
1277
1278 <!--PATTERN txtstepath-->
1279
1280
1281 <!--RULE -->
1282 <axsl:template match="ind-def:textfilecontent_state/ind-def:path" priority="1000" mode="M94">
1283
1284 <!--ASSERT -->
1285 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1286 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a textfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M94"/></axsl:template><axsl:template match="text()" priority="-1" mode="M94"/><axsl:template match="@*|node()" priority="-2" mode="M94"><axsl:apply-templates select="@*|*" mode="M94"/></axsl:template>
1287
1288 <!--PATTERN txtstefilename-->
1289
1290
1291 <!--RULE -->
1292 <axsl:template match="ind-def:textfilecontent_state/ind-def:filename" priority="1000" mode="M95">
1293
1294 <!--ASSERT -->
1295 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1296 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a textfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M95"/></axsl:template><axsl:template match="text()" priority="-1" mode="M95"/><axsl:template match="@*|node()" priority="-2" mode="M95"><axsl:apply-templates select="@*|*" mode="M95"/></axsl:template>
1297
1298 <!--PATTERN txtsteline-->
1299
1300
1301 <!--RULE -->
1302 <axsl:template match="ind-def:textfilecontent_state/ind-def:line" priority="1000" mode="M96">
1303
1304 <!--ASSERT -->
1305 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1306 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the line entity of a textfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M96"/></axsl:template><axsl:template match="text()" priority="-1" mode="M96"/><axsl:template match="@*|node()" priority="-2" mode="M96"><axsl:apply-templates select="@*|*" mode="M96"/></axsl:template>
1307
1308 <!--PATTERN txtstesubexpression-->
1309
1310
1311 <!--RULE -->
1312 <axsl:template match="ind-def:textfilecontent_state/ind-def:subexpression" priority="1000" mode="M97">
1313
1314 <!--ASSERT -->
1315 <axsl:choose><axsl:when test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())"/><axsl:otherwise>
1316 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The datatype has been set to 'int' but the value is not an integer.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M97"/></axsl:template><axsl:template match="text()" priority="-1" mode="M97"/><axsl:template match="@*|node()" priority="-2" mode="M97"><axsl:apply-templates select="@*|*" mode="M97"/></axsl:template>
1317
1318 <!--PATTERN vattst-->
1319
1320
1321 <!--RULE -->
1322 <axsl:template match="ind-def:variable_test/ind-def:object" priority="1001" mode="M98">
1323
1324 <!--ASSERT -->
1325 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:variable_object/@id"/><axsl:otherwise>
1326 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a variable_test must reference a variable_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M98"/></axsl:template>
1327
1328 <!--RULE -->
1329 <axsl:template match="ind-def:variable_test/ind-def:state" priority="1000" mode="M98">
1330
1331 <!--ASSERT -->
1332 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:variable_state/@id"/><axsl:otherwise>
1333 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a variable_test must reference a variable_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M98"/></axsl:template><axsl:template match="text()" priority="-1" mode="M98"/><axsl:template match="@*|node()" priority="-2" mode="M98"><axsl:apply-templates select="@*|*" mode="M98"/></axsl:template>
1334
1335 <!--PATTERN varobjvar_ref-->
1336
1337
1338 <!--RULE -->
1339 <axsl:template match="ind-def:variable_object/ind-def:var_ref" priority="1000" mode="M99">
1340
1341 <!--ASSERT -->
1342 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1343 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the var_ref entity of a variable_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1344
1345 <!--ASSERT -->
1346 <axsl:choose><axsl:when test="not(@var_ref)"/><axsl:otherwise>
1347 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - var_ref attribute for the var_ref entity of a variable_object is prohibited.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M99"/></axsl:template><axsl:template match="text()" priority="-1" mode="M99"/><axsl:template match="@*|node()" priority="-2" mode="M99"><axsl:apply-templates select="@*|*" mode="M99"/></axsl:template>
1348
1349 <!--PATTERN varstevar_ref-->
1350
1351
1352 <!--RULE -->
1353 <axsl:template match="ind-def:variable_state/ind-def:var_ref" priority="1000" mode="M100">
1354
1355 <!--ASSERT -->
1356 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1357 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the var_ref entity of a variable_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1358
1359 <!--ASSERT -->
1360 <axsl:choose><axsl:when test="not(@var_ref)"/><axsl:otherwise>
1361 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - var_ref attribute for the var_ref entity of a variable_state is prohibited.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M100"/></axsl:template><axsl:template match="text()" priority="-1" mode="M100"/><axsl:template match="@*|node()" priority="-2" mode="M100"><axsl:apply-templates select="@*|*" mode="M100"/></axsl:template>
1362
1363 <!--PATTERN varstevalue-->
1364
1365
1366 <!--RULE -->
1367 <axsl:template match="ind-def:variable_state/ind-def:value" priority="1000" mode="M101">
1368
1369 <!--ASSERT -->
1370 <axsl:choose><axsl:when test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())"/><axsl:otherwise>
1371 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The datatype has been set to 'int' but the value is not an integer.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M101"/></axsl:template><axsl:template match="text()" priority="-1" mode="M101"/><axsl:template match="@*|node()" priority="-2" mode="M101"><axsl:apply-templates select="@*|*" mode="M101"/></axsl:template>
1372
1373 <!--PATTERN xmltst-->
1374
1375
1376 <!--RULE -->
1377 <axsl:template match="ind-def:xmlfilecontent_test/ind-def:object" priority="1001" mode="M102">
1378
1379 <!--ASSERT -->
1380 <axsl:choose><axsl:when test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ind-def:xmlfilecontent_object/@id"/><axsl:otherwise>
1381 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a xmlfilecontent_test must reference a xmlfilecontent_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M102"/></axsl:template>
1382
1383 <!--RULE -->
1384 <axsl:template match="ind-def:xmlfilecontent_test/ind-def:state" priority="1000" mode="M102">
1385
1386 <!--ASSERT -->
1387 <axsl:choose><axsl:when test="@state_ref=/oval-def:oval_definitions/oval-def:states/ind-def:xmlfilecontent_state/@id"/><axsl:otherwise>
1388 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a xmlfilecontent_test must reference a xmlfilecontent_state<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M102"/></axsl:template><axsl:template match="text()" priority="-1" mode="M102"/><axsl:template match="@*|node()" priority="-2" mode="M102"><axsl:apply-templates select="@*|*" mode="M102"/></axsl:template>
1389
1390 <!--PATTERN xmlobjfilepath-->
1391
1392
1393 <!--RULE -->
1394 <axsl:template match="ind-def:xmlfilecontent_object/ind-def:filepath" priority="1000" mode="M103">
1395
1396 <!--ASSERT -->
1397 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1398 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filepath entity of a xmlfilecontent_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M103"/></axsl:template><axsl:template match="text()" priority="-1" mode="M103"/><axsl:template match="@*|node()" priority="-2" mode="M103"><axsl:apply-templates select="@*|*" mode="M103"/></axsl:template>
1399
1400 <!--PATTERN xmlobjpath-->
1401
1402
1403 <!--RULE -->
1404 <axsl:template match="ind-def:xmlfilecontent_object/ind-def:path" priority="1000" mode="M104">
1405
1406 <!--ASSERT -->
1407 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1408 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a xmlfilecontent_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M104"/></axsl:template><axsl:template match="text()" priority="-1" mode="M104"/><axsl:template match="@*|node()" priority="-2" mode="M104"><axsl:apply-templates select="@*|*" mode="M104"/></axsl:template>
1409
1410 <!--PATTERN xmlobjfilename-->
1411
1412
1413 <!--RULE -->
1414 <axsl:template match="ind-def:xmlfilecontent_object/ind-def:filename" priority="1000" mode="M105">
1415
1416 <!--ASSERT -->
1417 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1418 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a xmlfilecontent_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M105"/></axsl:template><axsl:template match="text()" priority="-1" mode="M105"/><axsl:template match="@*|node()" priority="-2" mode="M105"><axsl:apply-templates select="@*|*" mode="M105"/></axsl:template>
1419
1420 <!--PATTERN xmlobjxpath-->
1421
1422
1423 <!--RULE -->
1424 <axsl:template match="ind-def:xmlfilecontent_object/ind-def:xpath" priority="1000" mode="M106">
1425
1426 <!--ASSERT -->
1427 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1428 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the xpath entity of a xmlfilecontent_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1429
1430 <!--ASSERT -->
1431 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1432 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the xpath entity of a xmlfilecontent_object should be 'equals', note that this overrules the general operation attribute validation (i.e. follow this one)<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M106"/></axsl:template><axsl:template match="text()" priority="-1" mode="M106"/><axsl:template match="@*|node()" priority="-2" mode="M106"><axsl:apply-templates select="@*|*" mode="M106"/></axsl:template>
1433
1434 <!--PATTERN xmlfilestefilepath-->
1435
1436
1437 <!--RULE -->
1438 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:filepath" priority="1000" mode="M107">
1439
1440 <!--ASSERT -->
1441 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1442 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filepath entity of a xmlfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M107"/></axsl:template><axsl:template match="text()" priority="-1" mode="M107"/><axsl:template match="@*|node()" priority="-2" mode="M107"><axsl:apply-templates select="@*|*" mode="M107"/></axsl:template>
1443
1444 <!--PATTERN xmlstepath-->
1445
1446
1447 <!--RULE -->
1448 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:path" priority="1000" mode="M108">
1449
1450 <!--ASSERT -->
1451 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1452 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the path entity of a xmlfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M108"/></axsl:template><axsl:template match="text()" priority="-1" mode="M108"/><axsl:template match="@*|node()" priority="-2" mode="M108"><axsl:apply-templates select="@*|*" mode="M108"/></axsl:template>
1453
1454 <!--PATTERN xmlstefilename-->
1455
1456
1457 <!--RULE -->
1458 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:filename" priority="1000" mode="M109">
1459
1460 <!--ASSERT -->
1461 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1462 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the filename entity of a xmlfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M109"/></axsl:template><axsl:template match="text()" priority="-1" mode="M109"/><axsl:template match="@*|node()" priority="-2" mode="M109"><axsl:apply-templates select="@*|*" mode="M109"/></axsl:template>
1463
1464 <!--PATTERN xmlstexpath-->
1465
1466
1467 <!--RULE -->
1468 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:xpath" priority="1000" mode="M110">
1469
1470 <!--ASSERT -->
1471 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1472 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the xpath entity of a xmlfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M110"/></axsl:template><axsl:template match="text()" priority="-1" mode="M110"/><axsl:template match="@*|node()" priority="-2" mode="M110"><axsl:apply-templates select="@*|*" mode="M110"/></axsl:template>
1473
1474 <!--PATTERN xmlstevalue_of-->
1475
1476
1477 <!--RULE -->
1478 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:value_of" priority="1000" mode="M111">
1479
1480 <!--ASSERT -->
1481 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1482 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the value_of entity of a xmlfilecontent_state should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M111"/></axsl:template><axsl:template match="text()" priority="-1" mode="M111"/><axsl:template match="@*|node()" priority="-2" mode="M111"><axsl:apply-templates select="@*|*" mode="M111"/></axsl:template></axsl:stylesheet>