Debian Codegraph @

schemas/oval/5.7/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" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" 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="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:apply-templates select="/" mode="M112"/><axsl:apply-templates select="/" mode="M113"/><axsl:apply-templates select="/" mode="M114"/><axsl:apply-templates select="/" mode="M115"/><axsl:apply-templates select="/" mode="M116"/><axsl:apply-templates select="/" mode="M117"/><axsl:apply-templates select="/" mode="M118"/><axsl:apply-templates select="/" mode="M119"/><axsl:apply-templates select="/" mode="M120"/><axsl:apply-templates select="/" mode="M121"/><axsl:apply-templates select="/" mode="M122"/><axsl:apply-templates select="/" mode="M123"/><axsl:apply-templates select="/" mode="M124"/><axsl:apply-templates select="/" mode="M125"/><axsl:apply-templates select="/" mode="M126"/><axsl:apply-templates select="/" mode="M127"/><axsl:apply-templates select="/" mode="M128"/><axsl:apply-templates select="/" mode="M129"/><axsl:apply-templates select="/" mode="M130"/><axsl:apply-templates select="/" mode="M131"/><axsl:apply-templates select="/" mode="M132"/><axsl:apply-templates select="/" mode="M133"/><axsl:apply-templates select="/" mode="M134"/><axsl:apply-templates select="/" mode="M135"/><axsl:apply-templates select="/" mode="M136"/><axsl:apply-templates select="/" mode="M137"/><axsl:apply-templates select="/" mode="M138"/></axsl:template>
41
42 <!--SCHEMATRON PATTERNS-->
43
44
45 <!--PATTERN oval_none_exist_value_dep-->
46
47
48 <!--RULE -->
49 <axsl:template match="oval-def:oval_definitions/oval-def:tests/child::*" priority="1000" mode="M12">
50
51 <!--REPORT -->
52 <axsl:if test="@check='none exist'">
53 DEPRECATED ATTRIBUTE VALUE IN: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ATTRIBUTE VALUE:
54 <axsl:value-of select="string('&#10;')"/></axsl:if><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>
55
56 <!--PATTERN oval-res_system-->
57
58
59 <!--RULE -->
60 <axsl:template match="oval-res:system[oval-res:tests]" priority="1001" mode="M13">
61
62 <!--ASSERT -->
63 <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="M13"/></axsl:template>
64
65 <!--RULE -->
66 <axsl:template match="oval-res:system[not(oval-res:tests)]" priority="1000" mode="M13">
67
68 <!--ASSERT -->
69 <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="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>
70
71 <!--PATTERN oval-res_directives-->
72
73
74 <!--RULE -->
75 <axsl:template match="oval-res:definition[@result='true' and oval-res:criteria]" priority="1011" mode="M14">
76
77 <!--ASSERT -->
78 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@reported='true'"/><axsl:otherwise>
79 <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>
80
81 <!--ASSERT -->
82 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@content='full'"/><axsl:otherwise>
83 <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="M14"/></axsl:template>
84
85 <!--RULE -->
86 <axsl:template match="oval-res:definition[@result='true' and not(oval-res:criteria)]" priority="1010" mode="M14">
87
88 <!--ASSERT -->
89 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@reported='true'"/><axsl:otherwise>
90 <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>
91
92 <!--ASSERT -->
93 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_true/@content='thin'"/><axsl:otherwise>
94 <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="M14"/></axsl:template>
95
96 <!--RULE -->
97 <axsl:template match="oval-res:definition[@result='false' and oval-res:criteria]" priority="1009" mode="M14">
98
99 <!--ASSERT -->
100 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_false/@reported='true'"/><axsl:otherwise>
101 <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>
102
103 <!--ASSERT -->
104 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_false/@content='full'"/><axsl:otherwise>
105 <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="M14"/></axsl:template>
106
107 <!--RULE -->
108 <axsl:template match="oval-res:definition[@result='false' and not(oval-res:criteria)]" priority="1008" mode="M14">
109
110 <!--ASSERT -->
111 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_false/@reported='true'"/><axsl:otherwise>
112 <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>
113
114 <!--ASSERT -->
115 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_false/@content='thin'"/><axsl:otherwise>
116 <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="M14"/></axsl:template>
117
118 <!--RULE -->
119 <axsl:template match="oval-res:definition[@result='unknown' and oval-res:criteria]" priority="1007" mode="M14">
120
121 <!--ASSERT -->
122 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@reported='true'"/><axsl:otherwise>
123 <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>
124
125 <!--ASSERT -->
126 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@content='full'"/><axsl:otherwise>
127 <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="M14"/></axsl:template>
128
129 <!--RULE -->
130 <axsl:template match="oval-res:definition[@result='unknown' and not(oval-res:criteria)]" priority="1006" mode="M14">
131
132 <!--ASSERT -->
133 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@reported='true'"/><axsl:otherwise>
134 <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>
135
136 <!--ASSERT -->
137 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_unknown/@content='thin'"/><axsl:otherwise>
138 <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="M14"/></axsl:template>
139
140 <!--RULE -->
141 <axsl:template match="oval-res:definition[@result='error' and oval-res:criteria]" priority="1005" mode="M14">
142
143 <!--ASSERT -->
144 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_error/@reported='true'"/><axsl:otherwise>
145 <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>
146
147 <!--ASSERT -->
148 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_error/@content='full'"/><axsl:otherwise>
149 <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="M14"/></axsl:template>
150
151 <!--RULE -->
152 <axsl:template match="oval-res:definition[@result='error' and not(oval-res:criteria)]" priority="1004" mode="M14">
153
154 <!--ASSERT -->
155 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_error/@reported='true'"/><axsl:otherwise>
156 <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>
157
158 <!--ASSERT -->
159 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_error/@content='thin'"/><axsl:otherwise>
160 <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="M14"/></axsl:template>
161
162 <!--RULE -->
163 <axsl:template match="oval-res:definition[@result='not evaluated' and oval-res:criteria]" priority="1003" mode="M14">
164
165 <!--ASSERT -->
166 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@reported='true'"/><axsl:otherwise>
167 <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>
168
169 <!--ASSERT -->
170 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@content='full'"/><axsl:otherwise>
171 <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="M14"/></axsl:template>
172
173 <!--RULE -->
174 <axsl:template match="oval-res:definition[@result='not evaluated' and not(oval-res:criteria)]" priority="1002" mode="M14">
175
176 <!--ASSERT -->
177 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@reported='true'"/><axsl:otherwise>
178 <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>
179
180 <!--ASSERT -->
181 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_evaluated/@content='thin'"/><axsl:otherwise>
182 <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="M14"/></axsl:template>
183
184 <!--RULE -->
185 <axsl:template match="oval-res:definition[@result='not applicable' and oval-res:criteria]" priority="1001" mode="M14">
186
187 <!--ASSERT -->
188 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@reported='true'"/><axsl:otherwise>
189 <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>
190
191 <!--ASSERT -->
192 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@content='full'"/><axsl:otherwise>
193 <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="M14"/></axsl:template>
194
195 <!--RULE -->
196 <axsl:template match="oval-res:definition[@result='not applicable' and not(oval-res:criteria)]" priority="1000" mode="M14">
197
198 <!--ASSERT -->
199 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@reported='true'"/><axsl:otherwise>
200 <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>
201
202 <!--ASSERT -->
203 <axsl:choose><axsl:when test="/oval-res:oval_results/oval-res:directives/oval-res:definition_not_applicable/@content='thin'"/><axsl:otherwise>
204 <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="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>
205
206 <!--PATTERN oval-res_testids-->
207
208
209 <!--RULE -->
210 <axsl:template match="oval-res:test" priority="1000" mode="M15">
211
212 <!--ASSERT -->
213 <axsl:choose><axsl:when test="@test_id = ../../oval-res:definitions//oval-res:criterion/@test_ref"/><axsl:otherwise>
214 <axsl:text/><axsl:value-of select="@test_id"/><axsl:text/> - the specified test is not used in any definition's criteria<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>
215
216 <!--PATTERN oval-def_empty_def_doc-->
217
218
219 <!--RULE -->
220 <axsl:template match="oval-def:oval_definitions" priority="1000" mode="M16">
221
222 <!--ASSERT -->
223 <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="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>
224
225 <!--PATTERN oval-def_required_criteria-->
226
227
228 <!--RULE -->
229 <axsl:template match="oval-def:oval_definitions/oval-def:definitions/oval-def:definition[@deprecated='false' or not(@deprecated)]" priority="1000" mode="M17">
230
231 <!--ASSERT -->
232 <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="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>
233
234 <!--PATTERN oval-def_test_type-->
235
236
237 <!--RULE -->
238 <axsl:template match="oval-def:oval_definitions/oval-def:tests/*[@check_existence='none_exist']" priority="1000" mode="M18">
239
240 <!--ASSERT -->
241 <axsl:choose><axsl:when test="not(*[local-name()='state'])"/><axsl:otherwise>
242 <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="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>
243
244 <!--PATTERN oval-def_setobjref-->
245
246
247 <!--RULE -->
248 <axsl:template match="oval-def:oval_definitions/oval-def:objects/*/oval-def:set/oval-def:object_reference" priority="1002" mode="M19">
249
250 <!--ASSERT -->
251 <axsl:choose><axsl:when test="name(./../..) = name(ancestor::oval-def:oval_definitions/oval-def:objects/*[@id=current()])"/><axsl:otherwise>
252 <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="M19"/></axsl:template>
253
254 <!--RULE -->
255 <axsl:template match="oval-def:oval_definitions/oval-def:objects/*/oval-def:set/oval-def:set/oval-def:object_reference" priority="1001" mode="M19">
256
257 <!--ASSERT -->
258 <axsl:choose><axsl:when test="name(./../../..) = name(ancestor::oval-def:oval_definitions/oval-def:objects/*[@id=current()])"/><axsl:otherwise>
259 <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="M19"/></axsl:template>
260
261 <!--RULE -->
262 <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="M19">
263
264 <!--ASSERT -->
265 <axsl:choose><axsl:when test="name(./../../../..) = name(ancestor::oval-def:oval_definitions/oval-def:objects/*[@id=current()])"/><axsl:otherwise>
266 <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="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>
267
268 <!--PATTERN oval-def_allowed-variable-datatypes-->
269
270
271 <!--RULE -->
272 <axsl:template match="oval-def:variables/child::*" priority="1000" mode="M20">
273
274 <!--ASSERT -->
275 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
276 <axsl:text/><axsl:value-of select="@id"/><axsl:text/> - The 'record' datatype is prohibited on variables.<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>
277
278 <!--PATTERN oval-def_literal_component-->
279
280
281 <!--RULE -->
282 <axsl:template match="oval-def:literal_component" priority="1000" mode="M21">
283
284 <!--ASSERT -->
285 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
286 <axsl:text/><axsl:value-of select="ancestor::*/@id"/><axsl:text/> - The 'record' datatype is prohibited on variables.<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>
287
288 <!--PATTERN oval-def_arithmeticfunctionrules-->
289
290
291 <!--RULE -->
292 <axsl:template match="oval-def:arithmetic/oval-def:literal_component" priority="1001" mode="M22">
293
294 <!--ASSERT -->
295 <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="M22"/></axsl:template>
296
297 <!--RULE -->
298 <axsl:template match="oval-def:arithmetic/oval-def:variable_component" priority="1000" mode="M22"><axsl:variable name="var_ref" select="@var_ref"/>
299
300 <!--ASSERT -->
301 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/oval-def:variables/*[@id=$var_ref]/@datatype='float' or ancestor::oval-def:oval_definitions/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="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>
302
303 <!--PATTERN oval-def_beginfunctionrules-->
304
305
306 <!--RULE -->
307 <axsl:template match="oval-def:begin/oval-def:literal_component" priority="1001" mode="M23">
308
309 <!--ASSERT -->
310 <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="M23"/></axsl:template>
311
312 <!--RULE -->
313 <axsl:template match="oval-def:begin/oval-def:variable_component" priority="1000" mode="M23"><axsl:variable name="var_ref" select="@var_ref"/>
314
315 <!--ASSERT -->
316 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/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="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>
317
318 <!--PATTERN oval-def_concatfunctionrules-->
319
320
321 <!--RULE -->
322 <axsl:template match="oval-def:concat/oval-def:literal_component" priority="1001" mode="M24">
323
324 <!--ASSERT -->
325 <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="M24"/></axsl:template>
326
327 <!--RULE -->
328 <axsl:template match="oval-def:concat/oval-def:variable_component" priority="1000" mode="M24"><axsl:variable name="var_ref" select="@var_ref"/>
329
330 <!--ASSERT -->
331 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/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="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>
332
333 <!--PATTERN oval-def_endfunctionrules-->
334
335
336 <!--RULE -->
337 <axsl:template match="oval-def:end/oval-def:literal_component" priority="1001" mode="M25">
338
339 <!--ASSERT -->
340 <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="M25"/></axsl:template>
341
342 <!--RULE -->
343 <axsl:template match="oval-def:end/oval-def:variable_component" priority="1000" mode="M25"><axsl:variable name="var_ref" select="@var_ref"/>
344
345 <!--ASSERT -->
346 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/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="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>
347
348 <!--PATTERN oval-def_escaperegexfunctionrules-->
349
350
351 <!--RULE -->
352 <axsl:template match="oval-def:escape_regex/oval-def:literal_component" priority="1001" mode="M26">
353
354 <!--ASSERT -->
355 <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="M26"/></axsl:template>
356
357 <!--RULE -->
358 <axsl:template match="oval-def:escape_regex/oval-def:variable_component" priority="1000" mode="M26"><axsl:variable name="var_ref" select="@var_ref"/>
359
360 <!--ASSERT -->
361 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/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="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>
362
363 <!--PATTERN oval-def_splitfunctionrules-->
364
365
366 <!--RULE -->
367 <axsl:template match="oval-def:split/oval-def:literal_component" priority="1001" mode="M27">
368
369 <!--ASSERT -->
370 <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="M27"/></axsl:template>
371
372 <!--RULE -->
373 <axsl:template match="oval-def:split/oval-def:variable_component" priority="1000" mode="M27"><axsl:variable name="var_ref" select="@var_ref"/>
374
375 <!--ASSERT -->
376 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/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="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>
377
378 <!--PATTERN oval-def_substringfunctionrules-->
379
380
381 <!--RULE -->
382 <axsl:template match="oval-def:substring/oval-def:literal_component" priority="1001" mode="M28">
383
384 <!--ASSERT -->
385 <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="M28"/></axsl:template>
386
387 <!--RULE -->
388 <axsl:template match="oval-def:substring/oval-def:variable_component" priority="1000" mode="M28"><axsl:variable name="var_ref" select="@var_ref"/>
389
390 <!--ASSERT -->
391 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/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="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>
392
393 <!--PATTERN oval-def_timedifferencefunctionrules-->
394
395
396 <!--RULE -->
397 <axsl:template match="oval-def:time_difference/oval-def:literal_component" priority="1001" mode="M29">
398
399 <!--ASSERT -->
400 <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="M29"/></axsl:template>
401
402 <!--RULE -->
403 <axsl:template match="oval-def:time_difference/oval-def:variable_component" priority="1000" mode="M29"><axsl:variable name="var_ref" select="@var_ref"/>
404
405 <!--ASSERT -->
406 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/oval-def:variables/*[@id=$var_ref]/@datatype='string' or ancestor::oval-def:oval_definitions/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="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>
407
408 <!--PATTERN oval-def_regexcapturefunctionrules-->
409
410
411 <!--RULE -->
412 <axsl:template match="oval-def:regex_capture/oval-def:literal_component" priority="1001" mode="M30">
413
414 <!--ASSERT -->
415 <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="M30"/></axsl:template>
416
417 <!--RULE -->
418 <axsl:template match="oval-def:regex_capture/oval-def:variable_component" priority="1000" mode="M30"><axsl:variable name="var_ref" select="@var_ref"/>
419
420 <!--ASSERT -->
421 <axsl:choose><axsl:when test="ancestor::oval-def:oval_definitions/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="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>
422
423 <!--PATTERN oval-def_definition_entity_rules-->
424
425
426 <!--RULE -->
427 <axsl:template match="oval-def:objects/*/*[@var_ref]|oval-def:states/*/*[@var_ref]|oval-def:states/*/*/*[@var_ref]" priority="1011" mode="M31"><axsl:variable name="var_ref" select="@var_ref"/>
428
429 <!--ASSERT -->
430 <axsl:choose><axsl:when test=".=''"/><axsl:otherwise>
431 <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>
432
433 <!--ASSERT -->
434 <axsl:choose><axsl:when test="( (not(@datatype)) and ('string' = ancestor::oval-def:oval_definitions/oval-def:variables/*[@id=$var_ref]/@datatype) ) or (@datatype = ancestor::oval-def:oval_definitions/oval-def:variables/*[@id=$var_ref]/@datatype)"/><axsl:otherwise>
435 <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="M31"/></axsl:template>
436
437 <!--RULE -->
438 <axsl:template match="oval-def:objects/*/*[not(@datatype)]|oval-def:states/*/*[not(@datatype)]|oval-def:states/*/*/*[not(@datatype)]" priority="1010" mode="M31">
439
440 <!--ASSERT -->
441 <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>
442 <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="M31"/></axsl:template>
443
444 <!--RULE -->
445 <axsl:template match="oval-def:objects/*/*[@datatype='binary']|oval-def:states/*/*[@datatype='binary']|oval-def:states/*/*/*[@datatype='binary']" priority="1009" mode="M31">
446
447 <!--ASSERT -->
448 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal'"/><axsl:otherwise>
449 <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="M31"/></axsl:template>
450
451 <!--RULE -->
452 <axsl:template match="oval-def:objects/*/*[@datatype='boolean']|oval-def:states/*/*[@datatype='boolean']|oval-def:states/*/*/*[@datatype='boolean']" priority="1008" mode="M31">
453
454 <!--ASSERT -->
455 <axsl:choose><axsl:when test="not(@operation) or @operation='equals' or @operation='not equal'"/><axsl:otherwise>
456 <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="M31"/></axsl:template>
457
458 <!--RULE -->
459 <axsl:template match="oval-def:objects/*/*[@datatype='evr_string']|oval-def:states/*/*[@datatype='evr_string']|oval-def:states/*/*/*[@datatype='evr_string']" priority="1007" mode="M31">
460
461 <!--ASSERT -->
462 <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>
463 <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="M31"/></axsl:template>
464
465 <!--RULE -->
466 <axsl:template match="oval-def:objects/*/*[@datatype='fileset_revision']|oval-def:states/*/*[@datatype='fileset_revision']|oval-def:states/*/*/*[@datatype='fileset_revision']" priority="1006" mode="M31">
467
468 <!--ASSERT -->
469 <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>
470 <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="M31"/></axsl:template>
471
472 <!--RULE -->
473 <axsl:template match="oval-def:objects/*/*[@datatype='float']|oval-def:states/*/*[@datatype='float']|oval-def:states/*/*/*[@datatype='float']" priority="1005" mode="M31">
474
475 <!--ASSERT -->
476 <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>
477 <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="M31"/></axsl:template>
478
479 <!--RULE -->
480 <axsl:template match="oval-def:objects/*/*[@datatype='ios_version']|oval-def:states/*/*[@datatype='ios_version']|oval-def:states/*/*/*[@datatype='ios_version']" priority="1004" mode="M31">
481
482 <!--ASSERT -->
483 <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>
484 <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="M31"/></axsl:template>
485
486 <!--RULE -->
487 <axsl:template match="oval-def:objects/*/*[@datatype='int']|oval-def:states/*/*[@datatype='int']|oval-def:states/*/*/*[@datatype='int']" priority="1003" mode="M31">
488
489 <!--ASSERT -->
490 <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>
491 <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="M31"/></axsl:template>
492
493 <!--RULE -->
494 <axsl:template match="oval-def:objects/*/*[@datatype='string']|oval-def:states/*/*[@datatype='string']|oval-def:states/*/*/*[@datatype='string']" priority="1002" mode="M31">
495
496 <!--ASSERT -->
497 <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>
498 <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="M31"/></axsl:template>
499
500 <!--RULE -->
501 <axsl:template match="oval-def:objects/*/*[@datatype='version']|oval-def:states/*/*[@datatype='version']|oval-def:states/*/*/*[@datatype='version']" priority="1001" mode="M31">
502
503 <!--ASSERT -->
504 <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>
505 <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="M31"/></axsl:template>
506
507 <!--RULE -->
508 <axsl:template match="oval-def:objects/*/*[@datatype='record']|oval-def:states/*/*[@datatype='record']|oval-def:states/*/*/*[@datatype='record']" priority="1000" mode="M31">
509
510 <!--ASSERT -->
511 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
512 <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 record.<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>
513
514 <!--PATTERN oval-def_no_var_ref_with_records-->
515
516
517 <!--RULE -->
518 <axsl:template match="oval-def:objects/*/*[@datatype='record']|oval-def:states/*/*[@datatype='record']" priority="1000" mode="M32">
519
520 <!--ASSERT -->
521 <axsl:choose><axsl:when test="not(@var_ref)"/><axsl:otherwise>
522 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The use of var_ref is prohibited when the datatype is 'record'.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><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>
523
524 <!--PATTERN oval-def_definition_entity_type_check_rules-->
525
526
527 <!--RULE -->
528 <axsl:template match="oval-def:objects/*/*[not(@xsi:nil='true') and not(@var_ref) and @datatype='int']|oval-def:states/*/*[not(@xsi:nil='true') and not(@var_ref) and @datatype='int']" priority="1000" mode="M33">
529
530 <!--ASSERT -->
531 <axsl:choose><axsl:when test="(not(contains(.,'.'))) and (number(.) = floor(.))"/><axsl:otherwise>
532 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The datatype for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is 'int' but the value is not an integer.<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>
533
534 <!--PATTERN oval-def_entityobjectbaserules-->
535
536
537 <!--RULE -->
538 <axsl:template match="oval-def:objects/*/*[@var_ref]|oval-def:objects/*/*/*[@var_ref]" priority="1001" mode="M34">
539
540 <!--REPORT -->
541 <axsl:if test="not(@var_check)">
542 <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:if><axsl:apply-templates select="@*|*" mode="M34"/></axsl:template>
543
544 <!--RULE -->
545 <axsl:template match="oval-def:objects/*/*[@var_check]|oval-def:objects/*/*/*[@var_check]" priority="1000" mode="M34">
546
547 <!--ASSERT -->
548 <axsl:choose><axsl:when test="@var_ref"/><axsl:otherwise>
549 <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="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>
550
551 <!--PATTERN oval-def_entitystatebaserules-->
552
553
554 <!--RULE -->
555 <axsl:template match="oval-def:states/*/*[@var_ref]|oval-def:states/*/*/*[@var_ref]" priority="1001" mode="M35">
556
557 <!--REPORT -->
558 <axsl:if test="not(@var_check)">
559 <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:if><axsl:apply-templates select="@*|*" mode="M35"/></axsl:template>
560
561 <!--RULE -->
562 <axsl:template match="oval-def:states/*/*[@var_check]|oval-def:states/*/*/*[@var_check]" priority="1000" mode="M35">
563
564 <!--ASSERT -->
565 <axsl:choose><axsl:when test="@var_ref"/><axsl:otherwise>
566 <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="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>
567
568 <!--PATTERN oval-def_state_record_fields-->
569
570
571 <!--RULE -->
572 <axsl:template match="oval-def:states/*/*/*" priority="1000" mode="M36">
573
574 <!--ASSERT -->
575 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
576 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> field of an <axsl:text/><axsl:value-of select="name(../..)"/><axsl:text/> should not be 'record'.
577 <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>
578
579 <!--PATTERN oval-sc_entity_rules-->
580
581
582 <!--RULE -->
583 <axsl:template match="oval-sc:system_data/*/*|oval-sc:system_data/*/*/*" priority="1001" mode="M37">
584
585 <!--ASSERT -->
586 <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>
587
588 <!--ASSERT -->
589 <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="M37"/></axsl:template>
590
591 <!--RULE -->
592 <axsl:template match="oval-sc:system_data/*/*[not(@xsi:nil='true') and @datatype='int']|oval-sc:system_data/*/*/*[not(@xsi:nil='true') and @datatype='int']" priority="1000" mode="M37">
593
594 <!--ASSERT -->
595 <axsl:choose><axsl:when test="(not(contains(.,'.'))) and (number(.) = floor(.))"/><axsl:otherwise>
596 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - The datatype for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity is 'int' but the value is not an integer.<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><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>
597
598 <!--PATTERN oval-sc_item_record_fields-->
599
600
601 <!--RULE -->
602 <axsl:template match="oval-sc:system_data/*/*/*" priority="1000" mode="M38">
603
604 <!--ASSERT -->
605 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
606 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> field of an <axsl:text/><axsl:value-of select="name(../..)"/><axsl:text/> should not be 'record'
607 <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>
608
609 <!--PATTERN ind-def_famtst-->
610
611
612 <!--RULE -->
613 <axsl:template match="ind-def:family_test/ind-def:object" priority="1001" mode="M39">
614
615 <!--ASSERT -->
616 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:family_object/@id"/><axsl:otherwise>
617 <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="M39"/></axsl:template>
618
619 <!--RULE -->
620 <axsl:template match="ind-def:family_test/ind-def:state" priority="1000" mode="M39">
621
622 <!--ASSERT -->
623 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:family_state/@id"/><axsl:otherwise>
624 <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="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>
625
626 <!--PATTERN ind-def_famstefamily-->
627
628
629 <!--RULE -->
630 <axsl:template match="ind-def:family_state/ind-def:family" priority="1000" mode="M40">
631
632 <!--ASSERT -->
633 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
634 <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="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>
635
636 <!--PATTERN ind-def_hashtst-->
637
638
639 <!--RULE -->
640 <axsl:template match="ind-def:filehash_test/ind-def:object" priority="1001" mode="M41">
641
642 <!--ASSERT -->
643 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:filehash_object/@id"/><axsl:otherwise>
644 <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>
645
646 <!--RULE -->
647 <axsl:template match="ind-def:filehash_test/ind-def:state" priority="1000" mode="M41">
648
649 <!--ASSERT -->
650 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:filehash_state/@id"/><axsl:otherwise>
651 <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>
652
653 <!--PATTERN ind-def_hashobjfilepath-->
654
655
656 <!--RULE -->
657 <axsl:template match="ind-def:filehash_object/ind-def:filepath" priority="1000" mode="M42">
658
659 <!--ASSERT -->
660 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
661 <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>
662
663 <!--ASSERT -->
664 <axsl:choose><axsl:when test="not(preceding-sibling::ind-def:behaviors[@max_depth or @recurse_direction])"/><axsl:otherwise>
665 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the max_depth and recurse_direction behaviors are not allowed with a filepath entity<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>
666
667 <!--PATTERN ind-def_hashobjpath-->
668
669
670 <!--RULE -->
671 <axsl:template match="ind-def:filehash_object/ind-def:path" priority="1000" mode="M43">
672
673 <!--ASSERT -->
674 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
675 <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>
676
677 <!--PATTERN ind-def_hashobjfilename-->
678
679
680 <!--RULE -->
681 <axsl:template match="ind-def:filehash_object/ind-def:filename" priority="1000" mode="M44">
682
683 <!--ASSERT -->
684 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
685 <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>
686
687 <!--PATTERN ind-def_hashstefilepath-->
688
689
690 <!--RULE -->
691 <axsl:template match="ind-def:filehash_state/ind-def:filepath" priority="1000" mode="M45">
692
693 <!--ASSERT -->
694 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
695 <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>
696
697 <!--PATTERN ind-def_hashstepath-->
698
699
700 <!--RULE -->
701 <axsl:template match="ind-def:filehash_state/ind-def:path" priority="1000" mode="M46">
702
703 <!--ASSERT -->
704 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
705 <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>
706
707 <!--PATTERN ind-def_hashstefilename-->
708
709
710 <!--RULE -->
711 <axsl:template match="ind-def:filehash_state/ind-def:filename" priority="1000" mode="M47">
712
713 <!--ASSERT -->
714 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
715 <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>
716
717 <!--PATTERN ind-def_hashstemd5-->
718
719
720 <!--RULE -->
721 <axsl:template match="ind-def:filehash_state/ind-def:md5" priority="1000" mode="M48">
722
723 <!--ASSERT -->
724 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
725 <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>
726
727 <!--PATTERN ind-def_hashstesha1-->
728
729
730 <!--RULE -->
731 <axsl:template match="ind-def:filehash_state/ind-def:sha1" priority="1000" mode="M49">
732
733 <!--ASSERT -->
734 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
735 <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>
736
737 <!--PATTERN ind-def_envtst-->
738
739
740 <!--RULE -->
741 <axsl:template match="ind-def:environmentvariable_test/ind-def:object" priority="1001" mode="M50">
742
743 <!--ASSERT -->
744 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:environmentvariable_object/@id"/><axsl:otherwise>
745 <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>
746
747 <!--RULE -->
748 <axsl:template match="ind-def:environmentvariable_test/ind-def:state" priority="1000" mode="M50">
749
750 <!--ASSERT -->
751 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:environmentvariable_state/@id"/><axsl:otherwise>
752 <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>
753
754 <!--PATTERN ind-def_envobjname-->
755
756
757 <!--RULE -->
758 <axsl:template match="ind-def:environmentvariable_object/ind-def:name" priority="1000" mode="M51">
759
760 <!--ASSERT -->
761 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
762 <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>
763
764 <!--PATTERN ind-def_envstename-->
765
766
767 <!--RULE -->
768 <axsl:template match="ind-def:environmentvariable_state/ind-def:name" priority="1000" mode="M52">
769
770 <!--ASSERT -->
771 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
772 <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>
773
774 <!--PATTERN ind-def_envstevalue-->
775
776
777 <!--RULE -->
778 <axsl:template match="ind-def:environmentvariable_state/ind-def:value" priority="1000" mode="M53">
779
780 <!--ASSERT -->
781 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
782 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity of an <axsl:text/><axsl:value-of select="name(..)"/><axsl:text/> should not be 'record'<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>
783
784 <!--PATTERN ind-def_ldap_test_dep-->
785
786
787 <!--RULE -->
788 <axsl:template match="ind-def:ldap_test" priority="1000" mode="M54">
789
790 <!--REPORT -->
791 <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/>
792 <axsl:value-of select="string('&#10;')"/></axsl:if><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>
793
794 <!--PATTERN ind-def_ldaptst-->
795
796
797 <!--RULE -->
798 <axsl:template match="ind-def:ldap_test/ind-def:object" priority="1001" mode="M55">
799
800 <!--ASSERT -->
801 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:ldap_object/@id"/><axsl:otherwise>
802 <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="M55"/></axsl:template>
803
804 <!--RULE -->
805 <axsl:template match="ind-def:ldap_test/ind-def:state" priority="1000" mode="M55">
806
807 <!--ASSERT -->
808 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:ldap_state/@id"/><axsl:otherwise>
809 <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="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>
810
811 <!--PATTERN ind-def_ldap_object_dep-->
812
813
814 <!--RULE -->
815 <axsl:template match="ind-def:ldap_object" priority="1000" mode="M56">
816
817 <!--REPORT -->
818 <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/>
819 <axsl:value-of select="string('&#10;')"/></axsl:if><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>
820
821 <!--PATTERN ind-def_ldapobjsuffix-->
822
823
824 <!--RULE -->
825 <axsl:template match="ind-def:ldap_object/ind-def:suffix" priority="1000" mode="M57">
826
827 <!--ASSERT -->
828 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
829 <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="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>
830
831 <!--PATTERN ind-def_ldapobjrelative_dn-->
832
833
834 <!--RULE -->
835 <axsl:template match="ind-def:ldap_object/ind-def:relative_dn" priority="1000" mode="M58">
836
837 <!--ASSERT -->
838 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
839 <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="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>
840
841 <!--PATTERN ind-def_ldapobjattribute-->
842
843
844 <!--RULE -->
845 <axsl:template match="ind-def:ldap_object/ind-def:attribute" priority="1000" mode="M59">
846
847 <!--ASSERT -->
848 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
849 <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="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>
850
851 <!--PATTERN ind-def_ldap_state_dep-->
852
853
854 <!--RULE -->
855 <axsl:template match="ind-def:ldap_state" priority="1000" mode="M60">
856
857 <!--REPORT -->
858 <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/>
859 <axsl:value-of select="string('&#10;')"/></axsl:if><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>
860
861 <!--PATTERN ind-def_ldapstesuffix-->
862
863
864 <!--RULE -->
865 <axsl:template match="ind-def:ldap_state/ind-def:suffix" priority="1000" mode="M61">
866
867 <!--ASSERT -->
868 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
869 <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="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>
870
871 <!--PATTERN ind-def_ldapsterelative_dn-->
872
873
874 <!--RULE -->
875 <axsl:template match="ind-def:ldap_state/ind-def:relative_dn" priority="1000" mode="M62">
876
877 <!--ASSERT -->
878 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
879 <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="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>
880
881 <!--PATTERN ind-def_ldapsteattribute-->
882
883
884 <!--RULE -->
885 <axsl:template match="ind-def:ldap_state/ind-def:attribute" priority="1000" mode="M63">
886
887 <!--ASSERT -->
888 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
889 <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="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>
890
891 <!--PATTERN ind-def_ldapsteobject_class-->
892
893
894 <!--RULE -->
895 <axsl:template match="ind-def:ldap_state/ind-def:object_class" priority="1000" mode="M64">
896
897 <!--ASSERT -->
898 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
899 <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="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>
900
901 <!--PATTERN ind-def_ldapsteldaptype-->
902
903
904 <!--RULE -->
905 <axsl:template match="ind-def:ldap_state/ind-def:ldaptype" priority="1000" mode="M65">
906
907 <!--ASSERT -->
908 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
909 <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="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>
910
911 <!--PATTERN ind-def_ldapsteldapvalue-->
912
913
914 <!--RULE -->
915 <axsl:template match="ind-def:ldap_state/ind-def:value" priority="1000" mode="M66">
916
917 <!--ASSERT -->
918 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
919 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity of an <axsl:text/><axsl:value-of select="name(..)"/><axsl:text/> should not be 'record'<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>
920
921 <!--PATTERN ind-def_ldap57_test-->
922
923
924 <!--RULE -->
925 <axsl:template match="ind-def:ldap57_test/ind-def:object" priority="1001" mode="M67">
926
927 <!--ASSERT -->
928 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:ldap57_object/@id"/><axsl:otherwise>
929 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of an ldap57_test must reference an ldap57_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M67"/></axsl:template>
930
931 <!--RULE -->
932 <axsl:template match="ind-def:ldap57_test/ind-def:state" priority="1000" mode="M67">
933
934 <!--ASSERT -->
935 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:ldap57_state/@id"/><axsl:otherwise>
936 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of an ldap57_test must reference an ldap57_state<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>
937
938 <!--PATTERN ind-def_ldap57_object_suffix-->
939
940
941 <!--RULE -->
942 <axsl:template match="ind-def:ldap57_object/ind-def:suffix" priority="1000" mode="M68">
943
944 <!--ASSERT -->
945 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
946 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the suffix entity of an ldap57_object should be 'string'<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>
947
948 <!--PATTERN ind-def_ldap57_object_relative_dn-->
949
950
951 <!--RULE -->
952 <axsl:template match="ind-def:ldap57_object/ind-def:relative_dn" priority="1000" mode="M69">
953
954 <!--ASSERT -->
955 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
956 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the relative_dn entity of an ldap57_object 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>
957
958 <!--PATTERN ind-def_ldap57_object_attribute-->
959
960
961 <!--RULE -->
962 <axsl:template match="ind-def:ldap57_object/ind-def:attribute" priority="1000" mode="M70">
963
964 <!--ASSERT -->
965 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
966 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the attribute entity of an ldap57_object 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>
967
968 <!--PATTERN ind-def_ldap57_state_suffix-->
969
970
971 <!--RULE -->
972 <axsl:template match="ind-def:ldap57_state/ind-def:suffix" priority="1000" mode="M71">
973
974 <!--ASSERT -->
975 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
976 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the suffix entity of an ldap57_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>
977
978 <!--PATTERN ind-def_ldap57_state_relative_dn-->
979
980
981 <!--RULE -->
982 <axsl:template match="ind-def:ldap57_state/ind-def:relative_dn" priority="1000" mode="M72">
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 relative_dn entity of an ldap57_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>
987
988 <!--PATTERN ind-def_ldap57_state_attribute-->
989
990
991 <!--RULE -->
992 <axsl:template match="ind-def:ldap57_state/ind-def:attribute" priority="1000" mode="M73">
993
994 <!--ASSERT -->
995 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
996 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the attribute entity of an ldap57_state should be 'string'<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>
997
998 <!--PATTERN ind-def_ldap57_state_object_class-->
999
1000
1001 <!--RULE -->
1002 <axsl:template match="ind-def:ldap57_state/ind-def:object_class" priority="1000" mode="M74">
1003
1004 <!--ASSERT -->
1005 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1006 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the object_class entity of an ldap57_state should be 'string'<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>
1007
1008 <!--PATTERN ind-def_ldap57_state_ldaptype-->
1009
1010
1011 <!--RULE -->
1012 <axsl:template match="ind-def:ldap57_state/ind-def:ldaptype" priority="1000" mode="M75">
1013
1014 <!--ASSERT -->
1015 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1016 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the ldaptype entity of an ldap57_state 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>
1017
1018 <!--PATTERN ind-def_ldap57_state_value-->
1019
1020
1021 <!--RULE -->
1022 <axsl:template match="ind-def:ldap57_state/ind-def:value" priority="1000" mode="M76">
1023
1024 <!--ASSERT -->
1025 <axsl:choose><axsl:when test="@datatype='record'"/><axsl:otherwise>
1026 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity of an <axsl:text/><axsl:value-of select="name(..)"/><axsl:text/> should be 'record'<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>
1027
1028 <!--PATTERN ind-def_sql_test_dep-->
1029
1030
1031 <!--RULE -->
1032 <axsl:template match="ind-def:sql_test" priority="1000" mode="M77">
1033
1034 <!--REPORT -->
1035 <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/>
1036 <axsl:value-of select="string('&#10;')"/></axsl:if><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>
1037
1038 <!--PATTERN ind-def_sqltst-->
1039
1040
1041 <!--RULE -->
1042 <axsl:template match="ind-def:sql_test/ind-def:object" priority="1001" mode="M78">
1043
1044 <!--ASSERT -->
1045 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:sql_object/@id"/><axsl:otherwise>
1046 <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="M78"/></axsl:template>
1047
1048 <!--RULE -->
1049 <axsl:template match="ind-def:sql_test/ind-def:state" priority="1000" mode="M78">
1050
1051 <!--ASSERT -->
1052 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:sql_state/@id"/><axsl:otherwise>
1053 <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="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>
1054
1055 <!--PATTERN ind-def_sql_object_dep-->
1056
1057
1058 <!--RULE -->
1059 <axsl:template match="ind-def:sql_object" priority="1000" mode="M79">
1060
1061 <!--REPORT -->
1062 <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/>
1063 <axsl:value-of select="string('&#10;')"/></axsl:if><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>
1064
1065 <!--PATTERN ind-def_sqlobjdengine-->
1066
1067
1068 <!--RULE -->
1069 <axsl:template match="ind-def:sql_object/ind-def:engine" priority="1000" mode="M80">
1070
1071 <!--ASSERT -->
1072 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1073 <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>
1074
1075 <!--ASSERT -->
1076 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1077 <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="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>
1078
1079 <!--PATTERN ind-def_sqlobjversion-->
1080
1081
1082 <!--RULE -->
1083 <axsl:template match="ind-def:sql_object/ind-def:version" priority="1000" mode="M81">
1084
1085 <!--ASSERT -->
1086 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1087 <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>
1088
1089 <!--ASSERT -->
1090 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1091 <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="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>
1092
1093 <!--PATTERN ind-def_sqlobjconnection_string-->
1094
1095
1096 <!--RULE -->
1097 <axsl:template match="ind-def:sql_object/ind-def:connection_string" priority="1000" mode="M82">
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 connection_string entity of an sql_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1102
1103 <!--ASSERT -->
1104 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1105 <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="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>
1106
1107 <!--PATTERN ind-def_sqlobjsql-->
1108
1109
1110 <!--RULE -->
1111 <axsl:template match="ind-def:sql_object/ind-def:sql" priority="1000" mode="M83">
1112
1113 <!--ASSERT -->
1114 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1115 <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>
1116
1117 <!--ASSERT -->
1118 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1119 <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="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>
1120
1121 <!--PATTERN ind-def_sql_state_dep-->
1122
1123
1124 <!--RULE -->
1125 <axsl:template match="ind-def:sql_state" priority="1000" mode="M84">
1126
1127 <!--REPORT -->
1128 <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/>
1129 <axsl:value-of select="string('&#10;')"/></axsl:if><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>
1130
1131 <!--PATTERN ind-def_sqlsteengine-->
1132
1133
1134 <!--RULE -->
1135 <axsl:template match="ind-def:sql_state/ind-def:engine" priority="1000" mode="M85">
1136
1137 <!--ASSERT -->
1138 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1139 <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="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>
1140
1141 <!--PATTERN ind-def_sqlsteversion-->
1142
1143
1144 <!--RULE -->
1145 <axsl:template match="ind-def:sql_state/ind-def:version" priority="1000" mode="M86">
1146
1147 <!--ASSERT -->
1148 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1149 <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="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>
1150
1151 <!--PATTERN ind-def_sqlsteconnection_string-->
1152
1153
1154 <!--RULE -->
1155 <axsl:template match="ind-def:sql_state/ind-def:connection_string" priority="1000" mode="M87">
1156
1157 <!--ASSERT -->
1158 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1159 <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="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>
1160
1161 <!--PATTERN ind-def_sqlstesql-->
1162
1163
1164 <!--RULE -->
1165 <axsl:template match="ind-def:sql_state/ind-def:sql" priority="1000" mode="M88">
1166
1167 <!--ASSERT -->
1168 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1169 <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="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>
1170
1171 <!--PATTERN ind-def_sqlsteresult-->
1172
1173
1174 <!--RULE -->
1175 <axsl:template match="ind-def:sql_state/ind-def:result" priority="1000" mode="M89">
1176
1177 <!--ASSERT -->
1178 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
1179 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity of an <axsl:text/><axsl:value-of select="name(..)"/><axsl:text/> should not be 'record'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><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>
1180
1181 <!--PATTERN ind-def_sql57_test-->
1182
1183
1184 <!--RULE -->
1185 <axsl:template match="ind-def:sql57_test/ind-def:object" priority="1001" mode="M90">
1186
1187 <!--ASSERT -->
1188 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:sql57_object/@id"/><axsl:otherwise>
1189 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the object child element of a sql57_test must reference a sql57_object<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M90"/></axsl:template>
1190
1191 <!--RULE -->
1192 <axsl:template match="ind-def:sql57_test/ind-def:state" priority="1000" mode="M90">
1193
1194 <!--ASSERT -->
1195 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:sql57_state/@id"/><axsl:otherwise>
1196 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the state child element of a sql57_test must reference a sql57_state<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>
1197
1198 <!--PATTERN ind-def_sql57_object_dengine-->
1199
1200
1201 <!--RULE -->
1202 <axsl:template match="ind-def:sql57_object/ind-def:engine" priority="1000" mode="M91">
1203
1204 <!--ASSERT -->
1205 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1206 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the engine entity of an sql57_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1207
1208 <!--ASSERT -->
1209 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1210 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the engine entity of an sql57_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="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>
1211
1212 <!--PATTERN ind-def_sql57_object_version-->
1213
1214
1215 <!--RULE -->
1216 <axsl:template match="ind-def:sql57_object/ind-def:version" priority="1000" mode="M92">
1217
1218 <!--ASSERT -->
1219 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1220 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the version entity of an sql57_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1221
1222 <!--ASSERT -->
1223 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1224 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the version entity of an sql57_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="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>
1225
1226 <!--PATTERN ind-def_sql57_object_connection_string-->
1227
1228
1229 <!--RULE -->
1230 <axsl:template match="ind-def:sql57_object/ind-def:connection_string" priority="1000" mode="M93">
1231
1232 <!--ASSERT -->
1233 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1234 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the connection_string entity of an sql57_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1235
1236 <!--ASSERT -->
1237 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1238 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the connection_string entity of an sql57_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="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>
1239
1240 <!--PATTERN ind-def_sql57_object_sql-->
1241
1242
1243 <!--RULE -->
1244 <axsl:template match="ind-def:sql57_object/ind-def:sql" priority="1000" mode="M94">
1245
1246 <!--ASSERT -->
1247 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1248 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the sql entity of a sql57_object should be 'string'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose>
1249
1250 <!--ASSERT -->
1251 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1252 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - operation attribute for the sql entity of an sql57_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="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>
1253
1254 <!--PATTERN ind-def_sql57_state_engine-->
1255
1256
1257 <!--RULE -->
1258 <axsl:template match="ind-def:sql57_state/ind-def:engine" priority="1000" mode="M95">
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 engine entity of an sql57_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>
1263
1264 <!--PATTERN ind-def_sql57_state_version-->
1265
1266
1267 <!--RULE -->
1268 <axsl:template match="ind-def:sql57_state/ind-def:version" priority="1000" mode="M96">
1269
1270 <!--ASSERT -->
1271 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1272 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the version entity of an sql57_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>
1273
1274 <!--PATTERN ind-def_sql57_state_connection_string-->
1275
1276
1277 <!--RULE -->
1278 <axsl:template match="ind-def:sql57_state/ind-def:connection_string" priority="1000" mode="M97">
1279
1280 <!--ASSERT -->
1281 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1282 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the connection_string entity of an sql57_state should be 'string'<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>
1283
1284 <!--PATTERN ind-def_sql57_state_sql-->
1285
1286
1287 <!--RULE -->
1288 <axsl:template match="ind-def:sql57_state/ind-def:sql" priority="1000" mode="M98">
1289
1290 <!--ASSERT -->
1291 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1292 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the sql entity of a sql57_state should be 'string'<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>
1293
1294 <!--PATTERN ind-def_sql57_state_result-->
1295
1296
1297 <!--RULE -->
1298 <axsl:template match="ind-def:sql57_state/ind-def:result" priority="1000" mode="M99">
1299
1300 <!--ASSERT -->
1301 <axsl:choose><axsl:when test="@datatype='record'"/><axsl:otherwise>
1302 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity of an <axsl:text/><axsl:value-of select="name(..)"/><axsl:text/> should be 'record'<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>
1303
1304 <!--PATTERN ind-def_txt54tst-->
1305
1306
1307 <!--RULE -->
1308 <axsl:template match="ind-def:textfilecontent54_test/ind-def:object" priority="1001" mode="M100">
1309
1310 <!--ASSERT -->
1311 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:textfilecontent54_object/@id"/><axsl:otherwise>
1312 <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="M100"/></axsl:template>
1313
1314 <!--RULE -->
1315 <axsl:template match="ind-def:textfilecontent54_test/ind-def:state" priority="1000" mode="M100">
1316
1317 <!--ASSERT -->
1318 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:textfilecontent54_state/@id"/><axsl:otherwise>
1319 <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="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>
1320
1321 <!--PATTERN ind-def_txt54objfilepath-->
1322
1323
1324 <!--RULE -->
1325 <axsl:template match="ind-def:textfilecontent54_object/ind-def:filepath" priority="1000" mode="M101">
1326
1327 <!--ASSERT -->
1328 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1329 <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>
1330
1331 <!--ASSERT -->
1332 <axsl:choose><axsl:when test="not(preceding-sibling::ind-def:behaviors[@max_depth or @recurse_direction])"/><axsl:otherwise>
1333 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the max_depth and recurse_direction behaviors are not allowed with a filepath entity<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>
1334
1335 <!--PATTERN ind-def_txt54objpath-->
1336
1337
1338 <!--RULE -->
1339 <axsl:template match="ind-def:textfilecontent54_object/ind-def:path" priority="1000" mode="M102">
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 path entity of a textfilecontent54_object should be 'string'<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>
1344
1345 <!--PATTERN ind-def_txt54objfilename-->
1346
1347
1348 <!--RULE -->
1349 <axsl:template match="ind-def:textfilecontent54_object/ind-def:filename" priority="1000" mode="M103">
1350
1351 <!--ASSERT -->
1352 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1353 <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="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>
1354
1355 <!--PATTERN ind-def_txt54objpattern-->
1356
1357
1358 <!--RULE -->
1359 <axsl:template match="ind-def:textfilecontent54_object/ind-def:pattern" priority="1000" mode="M104">
1360
1361 <!--ASSERT -->
1362 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1363 <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>
1364
1365 <!--ASSERT -->
1366 <axsl:choose><axsl:when test="@operation='pattern match'"/><axsl:otherwise>
1367 <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="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>
1368
1369 <!--PATTERN ind-def_txt54objinstance-->
1370
1371
1372 <!--RULE -->
1373 <axsl:template match="ind-def:textfilecontent54_object/ind-def:instance" priority="1000" mode="M105">
1374
1375 <!--ASSERT -->
1376 <axsl:choose><axsl:when test="@datatype='int'"/><axsl:otherwise>
1377 <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="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>
1378
1379 <!--PATTERN ind-def_txt54stefilepath-->
1380
1381
1382 <!--RULE -->
1383 <axsl:template match="ind-def:textfilecontent54_state/ind-def:filepath" priority="1000" mode="M106">
1384
1385 <!--ASSERT -->
1386 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1387 <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="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>
1388
1389 <!--PATTERN ind-def_txt54stepath-->
1390
1391
1392 <!--RULE -->
1393 <axsl:template match="ind-def:textfilecontent54_state/ind-def:path" priority="1000" mode="M107">
1394
1395 <!--ASSERT -->
1396 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1397 <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="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>
1398
1399 <!--PATTERN ind-def_txt54stefilename-->
1400
1401
1402 <!--RULE -->
1403 <axsl:template match="ind-def:textfilecontent54_state/ind-def:filename" priority="1000" mode="M108">
1404
1405 <!--ASSERT -->
1406 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1407 <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="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>
1408
1409 <!--PATTERN ind-def_txt54stepattern-->
1410
1411
1412 <!--RULE -->
1413 <axsl:template match="ind-def:textfilecontent54_state/ind-def:pattern" priority="1000" mode="M109">
1414
1415 <!--ASSERT -->
1416 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1417 <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="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>
1418
1419 <!--PATTERN ind-def_txt54steinstance-->
1420
1421
1422 <!--RULE -->
1423 <axsl:template match="ind-def:textfilecontent54_state/ind-def:instance" priority="1000" mode="M110">
1424
1425 <!--ASSERT -->
1426 <axsl:choose><axsl:when test="@datatype='int'"/><axsl:otherwise>
1427 <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="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>
1428
1429 <!--PATTERN ind-def_txt54stetext-->
1430
1431
1432 <!--RULE -->
1433 <axsl:template match="ind-def:textfilecontent54_state/ind-def:text" priority="1000" mode="M111">
1434
1435 <!--ASSERT -->
1436 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1437 <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="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>
1438
1439 <!--PATTERN ind-def_txt54stesubexpression-->
1440
1441
1442 <!--RULE -->
1443 <axsl:template match="ind-def:textfilecontent54_state/ind-def:subexpression" priority="1000" mode="M112">
1444
1445 <!--ASSERT -->
1446 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
1447 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity of an <axsl:text/><axsl:value-of select="name(..)"/><axsl:text/> should not be 'record'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M112"/></axsl:template><axsl:template match="text()" priority="-1" mode="M112"/><axsl:template match="@*|node()" priority="-2" mode="M112"><axsl:apply-templates select="@*|*" mode="M112"/></axsl:template>
1448
1449 <!--PATTERN ind-def_txttst_dep-->
1450
1451
1452 <!--RULE -->
1453 <axsl:template match="ind-def:textfilecontent_test" priority="1000" mode="M113">
1454
1455 <!--REPORT -->
1456 <axsl:if test="true()">
1457 DEPRECATED TEST: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
1458 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M113"/></axsl:template><axsl:template match="text()" priority="-1" mode="M113"/><axsl:template match="@*|node()" priority="-2" mode="M113"><axsl:apply-templates select="@*|*" mode="M113"/></axsl:template>
1459
1460 <!--PATTERN ind-def_txttst-->
1461
1462
1463 <!--RULE -->
1464 <axsl:template match="ind-def:textfilecontent_test/ind-def:object" priority="1001" mode="M114">
1465
1466 <!--ASSERT -->
1467 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:textfilecontent_object/@id"/><axsl:otherwise>
1468 <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="M114"/></axsl:template>
1469
1470 <!--RULE -->
1471 <axsl:template match="ind-def:textfilecontent_test/ind-def:state" priority="1000" mode="M114">
1472
1473 <!--ASSERT -->
1474 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:textfilecontent_state/@id"/><axsl:otherwise>
1475 <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="M114"/></axsl:template><axsl:template match="text()" priority="-1" mode="M114"/><axsl:template match="@*|node()" priority="-2" mode="M114"><axsl:apply-templates select="@*|*" mode="M114"/></axsl:template>
1476
1477 <!--PATTERN ind-def_txtobj_dep-->
1478
1479
1480 <!--RULE -->
1481 <axsl:template match="ind-def:textfilecontent_object" priority="1000" mode="M115">
1482
1483 <!--REPORT -->
1484 <axsl:if test="true()">
1485 DEPRECATED OBJECT: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
1486 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M115"/></axsl:template><axsl:template match="text()" priority="-1" mode="M115"/><axsl:template match="@*|node()" priority="-2" mode="M115"><axsl:apply-templates select="@*|*" mode="M115"/></axsl:template>
1487
1488 <!--PATTERN ind-def_txtobjpath-->
1489
1490
1491 <!--RULE -->
1492 <axsl:template match="ind-def:textfilecontent_object/ind-def:path" priority="1000" mode="M116">
1493
1494 <!--ASSERT -->
1495 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1496 <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="M116"/></axsl:template><axsl:template match="text()" priority="-1" mode="M116"/><axsl:template match="@*|node()" priority="-2" mode="M116"><axsl:apply-templates select="@*|*" mode="M116"/></axsl:template>
1497
1498 <!--PATTERN ind-def_txtobjfilename-->
1499
1500
1501 <!--RULE -->
1502 <axsl:template match="ind-def:textfilecontent_object/ind-def:filename" priority="1000" mode="M117">
1503
1504 <!--ASSERT -->
1505 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1506 <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="M117"/></axsl:template><axsl:template match="text()" priority="-1" mode="M117"/><axsl:template match="@*|node()" priority="-2" mode="M117"><axsl:apply-templates select="@*|*" mode="M117"/></axsl:template>
1507
1508 <!--PATTERN ind-def_txtobjline-->
1509
1510
1511 <!--RULE -->
1512 <axsl:template match="ind-def:textfilecontent_object/ind-def:line" priority="1000" mode="M118">
1513
1514 <!--ASSERT -->
1515 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1516 <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>
1517
1518 <!--ASSERT -->
1519 <axsl:choose><axsl:when test="@operation='pattern match'"/><axsl:otherwise>
1520 <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="M118"/></axsl:template><axsl:template match="text()" priority="-1" mode="M118"/><axsl:template match="@*|node()" priority="-2" mode="M118"><axsl:apply-templates select="@*|*" mode="M118"/></axsl:template>
1521
1522 <!--PATTERN ind-def_txtste_dep-->
1523
1524
1525 <!--RULE -->
1526 <axsl:template match="ind-def:textfilecontent_state" priority="1000" mode="M119">
1527
1528 <!--REPORT -->
1529 <axsl:if test="true()">
1530 DEPRECATED STATE: <axsl:text/><axsl:value-of select="name()"/><axsl:text/> ID: <axsl:text/><axsl:value-of select="@id"/><axsl:text/>
1531 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M119"/></axsl:template><axsl:template match="text()" priority="-1" mode="M119"/><axsl:template match="@*|node()" priority="-2" mode="M119"><axsl:apply-templates select="@*|*" mode="M119"/></axsl:template>
1532
1533 <!--PATTERN ind-def_txtstepath-->
1534
1535
1536 <!--RULE -->
1537 <axsl:template match="ind-def:textfilecontent_state/ind-def:path" priority="1000" mode="M120">
1538
1539 <!--ASSERT -->
1540 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1541 <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="M120"/></axsl:template><axsl:template match="text()" priority="-1" mode="M120"/><axsl:template match="@*|node()" priority="-2" mode="M120"><axsl:apply-templates select="@*|*" mode="M120"/></axsl:template>
1542
1543 <!--PATTERN ind-def_txtstefilename-->
1544
1545
1546 <!--RULE -->
1547 <axsl:template match="ind-def:textfilecontent_state/ind-def:filename" priority="1000" mode="M121">
1548
1549 <!--ASSERT -->
1550 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1551 <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="M121"/></axsl:template><axsl:template match="text()" priority="-1" mode="M121"/><axsl:template match="@*|node()" priority="-2" mode="M121"><axsl:apply-templates select="@*|*" mode="M121"/></axsl:template>
1552
1553 <!--PATTERN ind-def_txtsteline-->
1554
1555
1556 <!--RULE -->
1557 <axsl:template match="ind-def:textfilecontent_state/ind-def:line" priority="1000" mode="M122">
1558
1559 <!--ASSERT -->
1560 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1561 <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="M122"/></axsl:template><axsl:template match="text()" priority="-1" mode="M122"/><axsl:template match="@*|node()" priority="-2" mode="M122"><axsl:apply-templates select="@*|*" mode="M122"/></axsl:template>
1562
1563 <!--PATTERN ind-def_txtstesubexpression-->
1564
1565
1566 <!--RULE -->
1567 <axsl:template match="ind-def:textfilecontent_state/ind-def:subexpression" priority="1000" mode="M123">
1568
1569 <!--ASSERT -->
1570 <axsl:choose><axsl:when test="not(@datatype='record')"/><axsl:otherwise>
1571 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - datatype attribute for the <axsl:text/><axsl:value-of select="name()"/><axsl:text/> entity of an <axsl:text/><axsl:value-of select="name(..)"/><axsl:text/> should not be 'record'<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M123"/></axsl:template><axsl:template match="text()" priority="-1" mode="M123"/><axsl:template match="@*|node()" priority="-2" mode="M123"><axsl:apply-templates select="@*|*" mode="M123"/></axsl:template>
1572
1573 <!--PATTERN ind-def_vattst-->
1574
1575
1576 <!--RULE -->
1577 <axsl:template match="ind-def:variable_test/ind-def:object" priority="1001" mode="M124">
1578
1579 <!--ASSERT -->
1580 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:variable_object/@id"/><axsl:otherwise>
1581 <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="M124"/></axsl:template>
1582
1583 <!--RULE -->
1584 <axsl:template match="ind-def:variable_test/ind-def:state" priority="1000" mode="M124">
1585
1586 <!--ASSERT -->
1587 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:variable_state/@id"/><axsl:otherwise>
1588 <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="M124"/></axsl:template><axsl:template match="text()" priority="-1" mode="M124"/><axsl:template match="@*|node()" priority="-2" mode="M124"><axsl:apply-templates select="@*|*" mode="M124"/></axsl:template>
1589
1590 <!--PATTERN ind-def_varobjvar_ref-->
1591
1592
1593 <!--RULE -->
1594 <axsl:template match="ind-def:variable_object/ind-def:var_ref" priority="1000" mode="M125">
1595
1596 <!--ASSERT -->
1597 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1598 <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>
1599
1600 <!--ASSERT -->
1601 <axsl:choose><axsl:when test="not(@var_ref)"/><axsl:otherwise>
1602 <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="M125"/></axsl:template><axsl:template match="text()" priority="-1" mode="M125"/><axsl:template match="@*|node()" priority="-2" mode="M125"><axsl:apply-templates select="@*|*" mode="M125"/></axsl:template>
1603
1604 <!--PATTERN ind-def_varstevar_ref-->
1605
1606
1607 <!--RULE -->
1608 <axsl:template match="ind-def:variable_state/ind-def:var_ref" priority="1000" mode="M126">
1609
1610 <!--ASSERT -->
1611 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1612 <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>
1613
1614 <!--ASSERT -->
1615 <axsl:choose><axsl:when test="not(@var_ref)"/><axsl:otherwise>
1616 <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="M126"/></axsl:template><axsl:template match="text()" priority="-1" mode="M126"/><axsl:template match="@*|node()" priority="-2" mode="M126"><axsl:apply-templates select="@*|*" mode="M126"/></axsl:template>
1617
1618 <!--PATTERN ind-def_xmltst-->
1619
1620
1621 <!--RULE -->
1622 <axsl:template match="ind-def:xmlfilecontent_test/ind-def:object" priority="1001" mode="M127">
1623
1624 <!--ASSERT -->
1625 <axsl:choose><axsl:when test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ind-def:xmlfilecontent_object/@id"/><axsl:otherwise>
1626 <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="M127"/></axsl:template>
1627
1628 <!--RULE -->
1629 <axsl:template match="ind-def:xmlfilecontent_test/ind-def:state" priority="1000" mode="M127">
1630
1631 <!--ASSERT -->
1632 <axsl:choose><axsl:when test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ind-def:xmlfilecontent_state/@id"/><axsl:otherwise>
1633 <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="M127"/></axsl:template><axsl:template match="text()" priority="-1" mode="M127"/><axsl:template match="@*|node()" priority="-2" mode="M127"><axsl:apply-templates select="@*|*" mode="M127"/></axsl:template>
1634
1635 <!--PATTERN ind-def_xmlobjfilepath-->
1636
1637
1638 <!--RULE -->
1639 <axsl:template match="ind-def:xmlfilecontent_object/ind-def:filepath" priority="1000" mode="M128">
1640
1641 <!--ASSERT -->
1642 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1643 <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>
1644
1645 <!--ASSERT -->
1646 <axsl:choose><axsl:when test="not(preceding-sibling::ind-def:behaviors[@max_depth or @recurse_direction])"/><axsl:otherwise>
1647 <axsl:text/><axsl:value-of select="../@id"/><axsl:text/> - the max_depth and recurse_direction behaviors are not allowed with a filepath entity<axsl:value-of select="string('&#10;')"/></axsl:otherwise></axsl:choose><axsl:apply-templates select="@*|*" mode="M128"/></axsl:template><axsl:template match="text()" priority="-1" mode="M128"/><axsl:template match="@*|node()" priority="-2" mode="M128"><axsl:apply-templates select="@*|*" mode="M128"/></axsl:template>
1648
1649 <!--PATTERN ind-def_xmlobjpath-->
1650
1651
1652 <!--RULE -->
1653 <axsl:template match="ind-def:xmlfilecontent_object/ind-def:path" priority="1000" mode="M129">
1654
1655 <!--ASSERT -->
1656 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1657 <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="M129"/></axsl:template><axsl:template match="text()" priority="-1" mode="M129"/><axsl:template match="@*|node()" priority="-2" mode="M129"><axsl:apply-templates select="@*|*" mode="M129"/></axsl:template>
1658
1659 <!--PATTERN ind-def_xmlobjfilename-->
1660
1661
1662 <!--RULE -->
1663 <axsl:template match="ind-def:xmlfilecontent_object/ind-def:filename" priority="1000" mode="M130">
1664
1665 <!--ASSERT -->
1666 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1667 <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="M130"/></axsl:template><axsl:template match="text()" priority="-1" mode="M130"/><axsl:template match="@*|node()" priority="-2" mode="M130"><axsl:apply-templates select="@*|*" mode="M130"/></axsl:template>
1668
1669 <!--PATTERN ind-def_xmlobjxpath-->
1670
1671
1672 <!--RULE -->
1673 <axsl:template match="ind-def:xmlfilecontent_object/ind-def:xpath" priority="1000" mode="M131">
1674
1675 <!--ASSERT -->
1676 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1677 <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>
1678
1679 <!--ASSERT -->
1680 <axsl:choose><axsl:when test="not(@operation) or @operation='equals'"/><axsl:otherwise>
1681 <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="M131"/></axsl:template><axsl:template match="text()" priority="-1" mode="M131"/><axsl:template match="@*|node()" priority="-2" mode="M131"><axsl:apply-templates select="@*|*" mode="M131"/></axsl:template>
1682
1683 <!--PATTERN ind-def_xmlfilestefilepath-->
1684
1685
1686 <!--RULE -->
1687 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:filepath" priority="1000" mode="M132">
1688
1689 <!--ASSERT -->
1690 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1691 <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="M132"/></axsl:template><axsl:template match="text()" priority="-1" mode="M132"/><axsl:template match="@*|node()" priority="-2" mode="M132"><axsl:apply-templates select="@*|*" mode="M132"/></axsl:template>
1692
1693 <!--PATTERN ind-def_xmlstepath-->
1694
1695
1696 <!--RULE -->
1697 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:path" priority="1000" mode="M133">
1698
1699 <!--ASSERT -->
1700 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1701 <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="M133"/></axsl:template><axsl:template match="text()" priority="-1" mode="M133"/><axsl:template match="@*|node()" priority="-2" mode="M133"><axsl:apply-templates select="@*|*" mode="M133"/></axsl:template>
1702
1703 <!--PATTERN ind-def_xmlstefilename-->
1704
1705
1706 <!--RULE -->
1707 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:filename" priority="1000" mode="M134">
1708
1709 <!--ASSERT -->
1710 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1711 <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="M134"/></axsl:template><axsl:template match="text()" priority="-1" mode="M134"/><axsl:template match="@*|node()" priority="-2" mode="M134"><axsl:apply-templates select="@*|*" mode="M134"/></axsl:template>
1712
1713 <!--PATTERN ind-def_xmlstexpath-->
1714
1715
1716 <!--RULE -->
1717 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:xpath" priority="1000" mode="M135">
1718
1719 <!--ASSERT -->
1720 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1721 <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="M135"/></axsl:template><axsl:template match="text()" priority="-1" mode="M135"/><axsl:template match="@*|node()" priority="-2" mode="M135"><axsl:apply-templates select="@*|*" mode="M135"/></axsl:template>
1722
1723 <!--PATTERN ind-def_xmlstevalue_of-->
1724
1725
1726 <!--RULE -->
1727 <axsl:template match="ind-def:xmlfilecontent_state/ind-def:value_of" priority="1000" mode="M136">
1728
1729 <!--ASSERT -->
1730 <axsl:choose><axsl:when test="not(@datatype) or @datatype='string'"/><axsl:otherwise>
1731 <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="M136"/></axsl:template><axsl:template match="text()" priority="-1" mode="M136"/><axsl:template match="@*|node()" priority="-2" mode="M136"><axsl:apply-templates select="@*|*" mode="M136"/></axsl:template>
1732
1733 <!--PATTERN ind-def_ldaptype_timestamp_value_dep-->
1734
1735
1736 <!--RULE -->
1737 <axsl:template match="oval-def:oval_definitions/oval-def:states/ind-def:ldap_state/ind-def:ldaptype|oval-def:oval_definitions/oval-def:states/ind-def:ldap57_state/ind-def:ldaptype" priority="1000" mode="M137">
1738
1739 <!--REPORT -->
1740 <axsl:if test=".='LDAPTYPE_TIMESTAMP'">
1741 DEPRECATED ELEMENT VALUE IN: ldap_state ELEMENT VALUE: <axsl:text/><axsl:value-of select="."/><axsl:text/>
1742 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M137"/></axsl:template><axsl:template match="text()" priority="-1" mode="M137"/><axsl:template match="@*|node()" priority="-2" mode="M137"><axsl:apply-templates select="@*|*" mode="M137"/></axsl:template>
1743
1744 <!--PATTERN ind-def_ldaptype_email_value_dep-->
1745
1746
1747 <!--RULE -->
1748 <axsl:template match="oval-def:oval_definitions/oval-def:states/ind-def:ldap_state/ind-def:ldaptype|oval-def:oval_definitions/oval-def:states/ind-def:ldap57_state/ind-def:ldaptype" priority="1000" mode="M138">
1749
1750 <!--REPORT -->
1751 <axsl:if test=".='LDAPTYPE_EMAIL'">
1752 DEPRECATED ELEMENT VALUE IN: ldap_state ELEMENT VALUE: <axsl:text/><axsl:value-of select="."/><axsl:text/>
1753 <axsl:value-of select="string('&#10;')"/></axsl:if><axsl:apply-templates select="@*|*" mode="M138"/></axsl:template><axsl:template match="text()" priority="-1" mode="M138"/><axsl:template match="@*|node()" priority="-2" mode="M138"><axsl:apply-templates select="@*|*" mode="M138"/></axsl:template></axsl:stylesheet>