| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:inter="http://scap.nist.gov/schema/ocil/2.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xml="http://www.w3.org/XML/1998/namespace" targetNamespace="http://scap.nist.gov/schema/ocil/2.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.0"> |
| 11 |
|
| 12 |
<xsd:annotation> |
| 13 |
<xsd:documentation>The Open Checklist Interactive Language (OCIL) is a language |
| 14 |
to express a set of questions to be presented and procedures to interpret |
| 15 |
responses to these questions for the purpose of developing security checklists. |
| 16 |
Although its intended domain of use is IT security, its generic nature |
| 17 |
allows for other applications. For instance, it could be used for authoring |
| 18 |
research surveys, academic course exams, and instructional walkthroughs. |
| 19 |
It can also be used to harvest information from previous data collection |
| 20 |
efforts. |
| 21 |
</xsd:documentation> |
| 22 |
<xsd:documentation>This document was originally developed by David Waltermire |
| 23 |
(The Center for Internet Security) and has been revised by The MITRE Corp |
| 24 |
with input from the security benchmark community. It is intended for |
| 25 |
developers and assumes familiarity with XML.</xsd:documentation> |
| 26 |
<xsd:appinfo> |
| 27 |
<sch:ns uri="http://purl.oclc.org/dsdl/schematron" prefix="sch"/> |
| 28 |
<sch:ns uri="http://scap.nist.gov/schema/ocil/2" prefix="ocil"/> |
| 29 |
<sch:ns uri="http://www.w3.org/2001/XMLSchema-instance" prefix="xsi"/> |
| 30 |
|
| 31 |
<sch:pattern> |
| 32 |
<sch:rule context="ocil:choice_question[exists(@default_answer_ref)]"> |
| 33 |
<sch:assert test="exists(ocil:choice[@id eq current()/@default_answer_ref]) or (some $m in ocil:choice_group_ref satisfies exists(ancestor::ocil:questions/ocil:choice_group[@id eq $m]/ocil:choice[@id eq current()/@default_answer_ref]))">The @default_answer_ref on <choice_question @id='<sch:value-of select="@id"/>'> must specify an answer applicable for the question</sch:assert> |
| 34 |
</sch:rule> |
| 35 |
<sch:rule context="ocil:choice_question_result[exists(ocil:answer/@choice_ref)]"> |
| 36 |
<sch:let name="choice_question" value="ancestor::ocil:ocil/ocil:questions/ocil:choice_question[@id eq current()/@question_ref]"/> |
| 37 |
<sch:assert test="exists($choice_question/ocil:choice[@id eq current()/ocil:answer/@choice_ref]) or (some $m in $choice_question/ocil:choice_group_ref satisfies exists($choice_question/ancestor::ocil:questions/ocil:choice_group[@id eq $m]/ocil:choice[@id eq current()/ocil:answer/@choice_ref]))">The @choice_ref on <answer> in <choice_question_result @question_ref='<sch:value-of select="@question_ref"/>'> must specify an answer applicable for the question</sch:assert> |
| 38 |
</sch:rule> |
| 39 |
<sch:rule context="ocil:local_variable"> |
| 40 |
<sch:let name="question_type" value="ancestor::ocil:ocil/ocil:questions/ocil:*[@id eq current()/@question_ref]/local-name()"/> |
| 41 |
<sch:let name="choice_question" value="ancestor::ocil:ocil/ocil:questions/ocil:choice_question[@id eq current()/@question_ref]"/> |
| 42 |
<sch:assert test="if( $question_type eq 'choice_question' ) then @datatype eq 'TEXT' else true()"><local_variable @id='<sch:value-of select="@id"/>' references a question of type <<sch:value-of select="$question_type"/>> and therefore must be @datatype='TEXT'</sch:assert> |
| 43 |
<sch:assert test="if( $question_type eq 'numeric_question' ) then @datatype eq 'NUMERIC' else true()"><local_variable @id='<sch:value-of select="@id"/>' references a question of type <<sch:value-of select="$question_type"/>> and therefore must be @datatype='NUMERIC'</sch:assert> |
| 44 |
<sch:assert test="if( $question_type eq 'string_question' ) then @datatype eq 'TEXT' else true()"><local_variable @id='<sch:value-of select="@id"/>' references a question of type <<sch:value-of select="$question_type"/>> and therefore must be @datatype='TEXT'</sch:assert> |
| 45 |
<sch:assert test="if( $question_type eq 'boolean_question' ) then every $m in ocil:set/* satisfies matches($m/local-name(),'(when_boolean)') else true()"><local_variable @id='<sch:value-of select="@id"/>' references a question of type <<sch:value-of select="$question_type"/>> and therefore all expressions in <set> must be <when_boolean></sch:assert> |
| 46 |
<sch:assert test="if( $question_type eq 'choice_question' ) then every $m in ocil:set/* satisfies matches($m/local-name(),'(when_choice)') else true()"><local_variable @id='<sch:value-of select="@id"/>' references a question of type <<sch:value-of select="$question_type"/>> and therefore all expressions in <set> must be <when_choice></sch:assert> |
| 47 |
<sch:assert test="if( $question_type eq 'numeric_question' ) then every $m in ocil:set/* satisfies matches($m/local-name(),'(when_pattern|when_range)') else true()"><local_variable @id='<sch:value-of select="@id"/>' references a question of type <<sch:value-of select="$question_type"/>> and therefore all expressions in <set> must be <when_pattern> or <when_range></sch:assert> |
| 48 |
<sch:assert test="if( $question_type eq 'string_question' ) then every $m in ocil:set/* satisfies matches($m/local-name(),'(when_pattern)') else true()"><local_variable @id='<sch:value-of select="@id"/>' references a question of type <<sch:value-of select="$question_type"/>> and therefore all expressions in <set> must be <when_pattern></sch:assert> |
| 49 |
<sch:assert test="if( $question_type eq 'choice_question' ) then every $l in ocil:set/ocil:when_choice satisfies exists($choice_question/ocil:choice[@id eq $l/@choice_ref]) or (some $m in $choice_question/ocil:choice_group_ref satisfies exists($choice_question/ancestor::ocil:questions/ocil:choice_group[@id eq $m]/ocil:choice[@id eq $l/@choice_ref])) else true()">The @choice_ref on every <when_choice> in <set> in <local_variable @id='<sch:value-of select="@id"/>'> must specify a choice applicable for the question being referenced in @question_ref='<sch:value-of select="@question_ref"/>'</sch:assert> |
| 50 |
</sch:rule> |
| 51 |
</sch:pattern> |
| 52 |
<sch:pattern> |
| 53 |
<sch:rule context="ocil:question_results/*"> |
| 54 |
<sch:assert test="if( not(exists(@response)) or @response eq 'ANSWERED') then not(exists(ocil:answer[boolean(@xsi:nil) eq true()])) and (ocil:answer ne '' or exists(ocil:answer[exists(@choice_ref)])) else exists(ocil:answer[boolean(@xsi:nil) eq true()]) and not(exists(ocil:answer[exists(@choice_ref)]))">If @response on <<sch:value-of select="local-name()"/> @question_ref='<sch:value-of select="@question_ref"/>'> is not provided, or is set to 'ANSWERED', then <answer> must not be nil and a value must be provided (or @choice_ref specified if applicable), otherwise <answer> must be nil and no other attributes or values may be specified on <answer></sch:assert> |
| 55 |
</sch:rule> |
| 56 |
</sch:pattern> |
| 57 |
</xsd:appinfo> |
| 58 |
</xsd:annotation> |
| 59 |
|
| 60 |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../../common/xml.xsd"> |
| 61 |
<xsd:annotation> |
| 62 |
<xsd:documentation>This namespace is required for xml:lang |
| 63 |
support.</xsd:documentation> |
| 64 |
</xsd:annotation> |
| 65 |
</xsd:import> |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
<xsd:complexType name="OCILType"> |
| 71 |
<xsd:annotation> |
| 72 |
<xsd:documentation>The OCILType represents the primary content model for the OCIL.</xsd:documentation> |
| 73 |
</xsd:annotation> |
| 74 |
<xsd:sequence> |
| 75 |
<xsd:element name="generator" type="inter:GeneratorType" minOccurs="1" maxOccurs="1"> |
| 76 |
<xsd:annotation> |
| 77 |
<xsd:documentation>The generator element contains information |
| 78 |
related to the generation of the file. Specifically, a generator |
| 79 |
contains information about the application used to create the |
| 80 |
file, when it was created, and the schema to use to validate |
| 81 |
it.</xsd:documentation> |
| 82 |
</xsd:annotation> |
| 83 |
</xsd:element> |
| 84 |
<xsd:element name="document" type="inter:DocumentType" minOccurs="0" maxOccurs="1"> |
| 85 |
<xsd:annotation> |
| 86 |
<xsd:documentation>This element contains document-level information, |
| 87 |
including title, descriptions, and notices.</xsd:documentation> |
| 88 |
</xsd:annotation> |
| 89 |
</xsd:element> |
| 90 |
<xsd:element name="questionnaires" type="inter:QuestionnairesType" minOccurs="1" maxOccurs="1"> |
| 91 |
<xsd:annotation> |
| 92 |
<xsd:documentation>The questionnaires element contains all the |
| 93 |
questionnaire constructs defined within the document.</xsd:documentation> |
| 94 |
</xsd:annotation> |
| 95 |
</xsd:element> |
| 96 |
<xsd:element name="test_actions" type="inter:TestActionsType" minOccurs="1" maxOccurs="1"> |
| 97 |
<xsd:annotation> |
| 98 |
<xsd:documentation>The test_actions element contains all the |
| 99 |
boolean, choice, string, and numeric test actions defined within |
| 100 |
the document.</xsd:documentation> |
| 101 |
</xsd:annotation> |
| 102 |
</xsd:element> |
| 103 |
<xsd:element name="questions" type="inter:QuestionsType" minOccurs="1" maxOccurs="1"> |
| 104 |
<xsd:annotation> |
| 105 |
<xsd:documentation>The questions element contains all the boolean, |
| 106 |
choice, string, and numeric questions, and any other supporting |
| 107 |
elements (e.g. choice group) defined within the |
| 108 |
document.</xsd:documentation> |
| 109 |
</xsd:annotation> |
| 110 |
</xsd:element> |
| 111 |
<xsd:element name="artifacts" type="inter:ArtifactsType" minOccurs="0" maxOccurs="1"> |
| 112 |
<xsd:annotation> |
| 113 |
<xsd:documentation>The artifacts element contains all the artifact |
| 114 |
constructs to be retrieved (as necessary) during |
| 115 |
evaluation.</xsd:documentation> |
| 116 |
</xsd:annotation> |
| 117 |
</xsd:element> |
| 118 |
<xsd:element name="variables" type="inter:VariablesType" minOccurs="0" maxOccurs="1"> |
| 119 |
<xsd:annotation> |
| 120 |
<xsd:documentation>The variables element contains all the constant, |
| 121 |
local, and external variables available to be used within the |
| 122 |
document.</xsd:documentation> |
| 123 |
</xsd:annotation> |
| 124 |
</xsd:element> |
| 125 |
<xsd:element name="results" type="inter:ResultsType" minOccurs="0" maxOccurs="1"> |
| 126 |
<xsd:annotation> |
| 127 |
<xsd:documentation>The results element contains the results of an |
| 128 |
evaluation of the OCIL file. This includes records of all |
| 129 |
questionnaire results, question results, and test_action |
| 130 |
results.</xsd:documentation> |
| 131 |
</xsd:annotation> |
| 132 |
</xsd:element> |
| 133 |
</xsd:sequence> |
| 134 |
</xsd:complexType> |
| 135 |
<xsd:element name="ocil" type="inter:OCILType"> |
| 136 |
<xsd:annotation> |
| 137 |
<xsd:documentation>The ocil element is the root XML element of an OCIL |
| 138 |
document. It contains information about one or more questionnaires. It |
| 139 |
may also contain results elements to store prior |
| 140 |
responses.</xsd:documentation> |
| 141 |
</xsd:annotation> |
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
<xsd:key name="questionnaireIdKey"> |
| 147 |
<xsd:selector xpath=".//inter:questionnaire"/> |
| 148 |
<xsd:field xpath="@id"/> |
| 149 |
</xsd:key> |
| 150 |
<xsd:keyref refer="inter:questionnaireIdKey" name="questionnaireKeyRef"> |
| 151 |
<xsd:selector xpath=".//inter:questionnaire_result"/> |
| 152 |
<xsd:field xpath="@questionnaire_ref"/> |
| 153 |
</xsd:keyref> |
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
<xsd:key name="testActionIdKey"> |
| 159 |
<xsd:annotation> |
| 160 |
<xsd:documentation>Insures that all test actions are unique.</xsd:documentation> |
| 161 |
</xsd:annotation> |
| 162 |
<xsd:selector xpath=".//inter:boolean_question_test_action|.//inter:choice_question_test_action|.//inter:numeric_question_test_action|.//inter:string_question_test_action|.//inter:questionnaire"/> |
| 163 |
<xsd:field xpath="@id"/> |
| 164 |
</xsd:key> |
| 165 |
<xsd:keyref refer="inter:testActionIdKey" name="testActionKeyRef"> |
| 166 |
<xsd:selector xpath=".//inter:test_action_ref"/> |
| 167 |
<xsd:field xpath="."/> |
| 168 |
</xsd:keyref> |
| 169 |
<xsd:keyref refer="inter:testActionIdKey" name="testActionResultKeyRef"> |
| 170 |
<xsd:selector xpath=".//inter:test_action_result"/> |
| 171 |
<xsd:field xpath="@test_action_ref"/> |
| 172 |
</xsd:keyref> |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
<xsd:key name="questionIdKey"> |
| 178 |
<xsd:selector xpath=".//inter:boolean_question|.//inter:choice_question|.//inter:numeric_question|.//inter:string_question"/> |
| 179 |
<xsd:field xpath="@id"/> |
| 180 |
</xsd:key> |
| 181 |
<xsd:keyref refer="inter:questionIdKey" name="questionIdKeyRef"> |
| 182 |
<xsd:selector xpath=".//inter:local_variable"/> |
| 183 |
<xsd:field xpath="@question_ref"/> |
| 184 |
</xsd:keyref> |
| 185 |
<xsd:key name="booleanQuestionIdKey"> |
| 186 |
<xsd:selector xpath=".//inter:boolean_question"/> |
| 187 |
<xsd:field xpath="@id"/> |
| 188 |
</xsd:key> |
| 189 |
<xsd:keyref refer="inter:booleanQuestionIdKey" name="booleanQuestionTestActionKeyRef"> |
| 190 |
<xsd:selector xpath=".//inter:boolean_question_test_action|.//inter:boolean_question_result"/> |
| 191 |
<xsd:field xpath="@question_ref"/> |
| 192 |
</xsd:keyref> |
| 193 |
<xsd:key name="choiceQuestionIdKey"> |
| 194 |
<xsd:selector xpath=".//inter:choice_question"/> |
| 195 |
<xsd:field xpath="@id"/> |
| 196 |
</xsd:key> |
| 197 |
<xsd:keyref refer="inter:choiceQuestionIdKey" name="choiceQuestionTestActionKeyRef"> |
| 198 |
<xsd:selector xpath=".//inter:choice_question_test_action|.//inter:choice_question_result"/> |
| 199 |
<xsd:field xpath="@question_ref"/> |
| 200 |
</xsd:keyref> |
| 201 |
<xsd:key name="numericQuestionIdKey"> |
| 202 |
<xsd:selector xpath=".//inter:numeric_question"/> |
| 203 |
<xsd:field xpath="@id"/> |
| 204 |
</xsd:key> |
| 205 |
<xsd:keyref refer="inter:numericQuestionIdKey" name="numericQuestionTestActionKeyRef"> |
| 206 |
<xsd:selector xpath=".//inter:numeric_question_test_action|.//inter:numeric_question_result"/> |
| 207 |
<xsd:field xpath="@question_ref"/> |
| 208 |
</xsd:keyref> |
| 209 |
<xsd:key name="stringQuestionIdKey"> |
| 210 |
<xsd:selector xpath=".//inter:string_question"/> |
| 211 |
<xsd:field xpath="@id"/> |
| 212 |
</xsd:key> |
| 213 |
<xsd:keyref refer="inter:stringQuestionIdKey" name="stringQuestionTestActionKeyRef"> |
| 214 |
<xsd:selector xpath=".//inter:string_question_test_action|.//inter:string_question_result"/> |
| 215 |
<xsd:field xpath="@question_ref"/> |
| 216 |
</xsd:keyref> |
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
<xsd:key name="choiceIdKey"> |
| 222 |
<xsd:selector xpath=".//inter:choice"/> |
| 223 |
<xsd:field xpath="@id"/> |
| 224 |
</xsd:key> |
| 225 |
<xsd:keyref refer="inter:choiceIdKey" name="choiceIdKeyRef"> |
| 226 |
<xsd:selector xpath=".//inter:when_choice/inter:choice_ref"/> |
| 227 |
<xsd:field xpath="."/> |
| 228 |
</xsd:keyref> |
| 229 |
<xsd:keyref refer="inter:choiceIdKey" name="defaultAnswerKeyRef"> |
| 230 |
<xsd:selector xpath=".//inter:choice_question"/> |
| 231 |
<xsd:field xpath="@default_answer_ref"/> |
| 232 |
</xsd:keyref> |
| 233 |
<xsd:key name="choiceGroupIdKey"> |
| 234 |
<xsd:selector xpath=".//inter:choice_group"/> |
| 235 |
<xsd:field xpath="@id"/> |
| 236 |
</xsd:key> |
| 237 |
<xsd:keyref refer="inter:choiceGroupIdKey" name="choiceGroupIdKeyRef"> |
| 238 |
<xsd:selector xpath=".//inter:choice_question/inter:choice_group_ref"/> |
| 239 |
<xsd:field xpath="."/> |
| 240 |
</xsd:keyref> |
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
<xsd:key name="artifactIdKey"> |
| 246 |
<xsd:selector xpath=".//inter:artifact"/> |
| 247 |
<xsd:field xpath="@id"/> |
| 248 |
</xsd:key> |
| 249 |
<xsd:keyref refer="inter:artifactIdKey" name="artifactIdKeyRef"> |
| 250 |
<xsd:selector xpath=".//inter:artifact_ref"/> |
| 251 |
<xsd:field xpath="@idref"/> |
| 252 |
</xsd:keyref> |
| 253 |
<xsd:keyref refer="inter:artifactIdKey" name="artifactIdArtifactResultKeyRef"> |
| 254 |
<xsd:selector xpath=".//inter:artifact_result"/> |
| 255 |
<xsd:field xpath="@artifact_ref"/> |
| 256 |
</xsd:keyref> |
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
<xsd:key name="variableIdKey"> |
| 262 |
<xsd:selector xpath=".//inter:variables/*"/> |
| 263 |
<xsd:field xpath="@id"/> |
| 264 |
</xsd:key> |
| 265 |
<xsd:keyref refer="inter:variableIdKey" name="variableIdKeyRef"> |
| 266 |
<xsd:selector xpath=".//inter:when_equals|.//inter:pattern|.//inter:min|.//inter:max|.//inter:choice|.//inter:sub"/> |
| 267 |
<xsd:field xpath="@var_ref"/> |
| 268 |
</xsd:keyref> |
| 269 |
|
| 270 |
|
| 271 |
</xsd:element> |
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
<xsd:element name="test_action" type="inter:ItemBaseType" abstract="true"> |
| 277 |
<xsd:annotation> |
| 278 |
<xsd:documentation>This is a common base element for the |
| 279 |
question_test_action element.</xsd:documentation> |
| 280 |
</xsd:annotation> |
| 281 |
</xsd:element> |
| 282 |
<xsd:element name="question_test_action" type="inter:QuestionTestActionType" abstract="true" substitutionGroup="inter:test_action"> |
| 283 |
<xsd:annotation> |
| 284 |
<xsd:documentation>The question_test_action element contains a reference to |
| 285 |
a single question along with a set of handlers that indicate how |
| 286 |
processing should proceed based on the answer provided. This |
| 287 |
element is abstract and is implemented in a document as a |
| 288 |
boolean_question_test_action, choice_question_test_action, |
| 289 |
numeric_question_test_action, or string_question_test_action. The type of |
| 290 |
question_test_action must match the type of question referenced (e.g. a |
| 291 |
boolean_question_test_action MUST reference a boolean_question.)</xsd:documentation> |
| 292 |
</xsd:annotation> |
| 293 |
</xsd:element> |
| 294 |
<xsd:element name="boolean_question_test_action" type="inter:BooleanQuestionTestActionType" substitutionGroup="inter:question_test_action"> |
| 295 |
<xsd:annotation> |
| 296 |
<xsd:documentation>A boolean_question_test_action element references a |
| 297 |
boolean_question and includes handlers for TRUE (YES) or FALSE (NO) |
| 298 |
responses.</xsd:documentation> |
| 299 |
</xsd:annotation> |
| 300 |
</xsd:element> |
| 301 |
<xsd:element name="choice_question_test_action" type="inter:ChoiceQuestionTestActionType" substitutionGroup="inter:question_test_action"> |
| 302 |
<xsd:annotation> |
| 303 |
<xsd:documentation>A choice_question_test_action element references a |
| 304 |
choice_question and includes handlers for the various choices set out in |
| 305 |
the choice_question.</xsd:documentation> |
| 306 |
</xsd:annotation> |
| 307 |
<xsd:unique name="choiceRefUniqueInTestAction"> |
| 308 |
<xsd:annotation> |
| 309 |
<xsd:documentation>Ensure that no choice_question_test_action has multiple |
| 310 |
branches for a single choice.</xsd:documentation> |
| 311 |
</xsd:annotation> |
| 312 |
<xsd:selector xpath="inter:when_choice/inter:choice_ref"/> |
| 313 |
<xsd:field xpath="."/> |
| 314 |
</xsd:unique> |
| 315 |
</xsd:element> |
| 316 |
<xsd:element name="numeric_question_test_action" type="inter:NumericQuestionTestActionType" substitutionGroup="inter:question_test_action"> |
| 317 |
<xsd:annotation> |
| 318 |
<xsd:documentation>A numeric_question_test_action element references a |
| 319 |
numeric_question and includes handlers that indicate actions to perform |
| 320 |
based on whether the response matches a particular value or falls |
| 321 |
within a particular range.</xsd:documentation> |
| 322 |
</xsd:annotation> |
| 323 |
</xsd:element> |
| 324 |
<xsd:element name="string_question_test_action" type="inter:StringQuestionTestActionType" substitutionGroup="inter:question_test_action"> |
| 325 |
<xsd:annotation> |
| 326 |
<xsd:documentation>A string_question_test_action element references a |
| 327 |
string_question and includes handlers that indicate actions to perform |
| 328 |
based on whether the response matches a given regular |
| 329 |
expression.</xsd:documentation> |
| 330 |
</xsd:annotation> |
| 331 |
</xsd:element> |
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
<xsd:element name="question" type="inter:QuestionType" abstract="true"> |
| 337 |
<xsd:annotation> |
| 338 |
<xsd:documentation>A question element contains information for one question |
| 339 |
that needs to be answered. It can be a boolean_question, |
| 340 |
choice_question, numeric_question, or string_question depending on the |
| 341 |
set of acceptable answers.</xsd:documentation> |
| 342 |
</xsd:annotation> |
| 343 |
</xsd:element> |
| 344 |
<xsd:element name="boolean_question" type="inter:BooleanQuestionType" substitutionGroup="inter:question"> |
| 345 |
<xsd:annotation> |
| 346 |
<xsd:documentation>A boolean_question is a type of question element with |
| 347 |
valid responses of either {TRUE, FALSE} or {YES, NO}.</xsd:documentation> |
| 348 |
</xsd:annotation> |
| 349 |
</xsd:element> |
| 350 |
<xsd:element name="choice_question" type="inter:ChoiceQuestionType" substitutionGroup="inter:question"> |
| 351 |
<xsd:annotation> |
| 352 |
<xsd:documentation>A choice_question is a type of question element with one |
| 353 |
or more acceptable answers specified by the author. One of these |
| 354 |
specified answers will be given as the response. Acceptable answers are |
| 355 |
specified either explicitly using the choice element or implicitly using |
| 356 |
the choice_group_ref element to reference a choice_group element. Choices |
| 357 |
are presented in the order in which they are provided. All the choices in |
| 358 |
a choice_group are inserted in the order in which they appear within the |
| 359 |
choice_group.</xsd:documentation> |
| 360 |
</xsd:annotation> |
| 361 |
<xsd:unique name="choiceGroupIdUniqueInQuestion"> |
| 362 |
<xsd:selector xpath="inter:choice_group_ref"/> |
| 363 |
<xsd:field xpath="."/> |
| 364 |
</xsd:unique> |
| 365 |
</xsd:element> |
| 366 |
<xsd:element name="numeric_question" type="inter:NumericQuestionType" substitutionGroup="inter:question"> |
| 367 |
<xsd:annotation> |
| 368 |
<xsd:documentation>A numeric_question is a type of question element that |
| 369 |
requires a numeric answer. Acceptable values may be positive or negative |
| 370 |
and may include decimals.</xsd:documentation> |
| 371 |
</xsd:annotation> |
| 372 |
</xsd:element> |
| 373 |
<xsd:element name="string_question" type="inter:StringQuestionType" substitutionGroup="inter:question"> |
| 374 |
<xsd:annotation> |
| 375 |
<xsd:documentation>A string_question is a type of question element that |
| 376 |
requires a string answer.</xsd:documentation> |
| 377 |
</xsd:annotation> |
| 378 |
</xsd:element> |
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
<xsd:element name="variable" type="inter:VariableType" abstract="true"> |
| 384 |
<xsd:annotation> |
| 385 |
<xsd:documentation>A variable element holds information defined by the |
| 386 |
author, an answer value, or values from external |
| 387 |
sources.</xsd:documentation> |
| 388 |
</xsd:annotation> |
| 389 |
</xsd:element> |
| 390 |
<xsd:element name="constant_variable" type="inter:ConstantVariableType" substitutionGroup="inter:variable"> |
| 391 |
<xsd:annotation> |
| 392 |
<xsd:documentation>A constant_variable element holds a value defined by the |
| 393 |
author of the document.</xsd:documentation> |
| 394 |
</xsd:annotation> |
| 395 |
</xsd:element> |
| 396 |
<xsd:element name="local_variable" type="inter:LocalVariableType" substitutionGroup="inter:variable"> |
| 397 |
<xsd:annotation> |
| 398 |
<xsd:documentation>A local_variable element holds a value defined during |
| 399 |
evaluation. It will try to match and set the value based on the answer to |
| 400 |
a question.</xsd:documentation> |
| 401 |
</xsd:annotation> |
| 402 |
</xsd:element> |
| 403 |
<xsd:element name="external_variable" type="inter:ExternalVariableType" substitutionGroup="inter:variable"> |
| 404 |
<xsd:annotation> |
| 405 |
<xsd:documentation>An external_variable element is a variable defined |
| 406 |
elsewhere (an external source).</xsd:documentation> |
| 407 |
</xsd:annotation> |
| 408 |
</xsd:element> |
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
<xsd:element name="target" type="inter:NamedItemBaseType" abstract="true"> |
| 414 |
<xsd:annotation> |
| 415 |
<xsd:documentation>A target element describes the user, system, or role that |
| 416 |
applies to all questionnaires in scope. For instance, specifying that |
| 417 |
user Joe Smith should complete this document; applies to system with ip |
| 418 |
address of 123.45.67.89; applies to all systems functioning as (role) web |
| 419 |
servers; or all (role) administrators should complete this document. |
| 420 |
</xsd:documentation> |
| 421 |
</xsd:annotation> |
| 422 |
</xsd:element> |
| 423 |
<xsd:element name="user" type="inter:UserType" substitutionGroup="inter:target"> |
| 424 |
<xsd:annotation> |
| 425 |
<xsd:documentation>A user element contains information about a target user |
| 426 |
such as name, organization, position, email, and role.</xsd:documentation> |
| 427 |
</xsd:annotation> |
| 428 |
</xsd:element> |
| 429 |
<xsd:element name="system" type="inter:SystemTargetType" substitutionGroup="inter:target"> |
| 430 |
<xsd:annotation> |
| 431 |
<xsd:documentation>The system element contains information about the |
| 432 |
organization it belongs to, a set of ip addresses of computers/networks |
| 433 |
included in the system, description about it, and the roles it |
| 434 |
performs.</xsd:documentation> |
| 435 |
</xsd:annotation> |
| 436 |
</xsd:element> |
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
|
| 441 |
<xsd:element name="question_result" type="inter:QuestionResultType" abstract="true"> |
| 442 |
<xsd:annotation> |
| 443 |
<xsd:documentation> A question_result element contains result information |
| 444 |
associated with a specific question. The specific type of question_result |
| 445 |
(boolean_question_result, choice_question_result, etc.) depends on the |
| 446 |
type of the associated question (boolean_question, choice_question, etc.) |
| 447 |
</xsd:documentation> |
| 448 |
</xsd:annotation> |
| 449 |
</xsd:element> |
| 450 |
<xsd:element name="boolean_question_result" type="inter:BooleanQuestionResultType" substitutionGroup="inter:question_result"> |
| 451 |
<xsd:annotation> |
| 452 |
<xsd:documentation> A boolean_question_result element contains a reference |
| 453 |
to a boolean_question, the response, and whether the question was |
| 454 |
successfully posed. </xsd:documentation> |
| 455 |
</xsd:annotation> |
| 456 |
</xsd:element> |
| 457 |
<xsd:element name="choice_question_result" type="inter:ChoiceQuestionResultType" substitutionGroup="inter:question_result"> |
| 458 |
<xsd:annotation> |
| 459 |
<xsd:documentation> A choice_question_result element contains a reference to |
| 460 |
a choice_question, the response, and whether the question was |
| 461 |
successfully posed. </xsd:documentation> |
| 462 |
</xsd:annotation> |
| 463 |
</xsd:element> |
| 464 |
<xsd:element name="numeric_question_result" type="inter:NumericQuestionResultType" substitutionGroup="inter:question_result"> |
| 465 |
<xsd:annotation> |
| 466 |
<xsd:documentation> A numeric_question_result element contains a reference |
| 467 |
to a numeric_question, the number provided in response, and |
| 468 |
whether the question was successfully posed. </xsd:documentation> |
| 469 |
</xsd:annotation> |
| 470 |
</xsd:element> |
| 471 |
<xsd:element name="string_question_result" type="inter:StringQuestionResultType" substitutionGroup="inter:question_result"> |
| 472 |
<xsd:annotation> |
| 473 |
<xsd:documentation> A string_question_result element contains a reference to |
| 474 |
a string_question, the string provided in response, and |
| 475 |
whether the question was successfully posed. </xsd:documentation> |
| 476 |
</xsd:annotation> |
| 477 |
</xsd:element> |
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
<xsd:complexType name="QuestionnairesType"> |
| 483 |
<xsd:annotation> |
| 484 |
<xsd:documentation>The QuestionnairesType type defines a container for a set |
| 485 |
of questionnaire elements.</xsd:documentation> |
| 486 |
</xsd:annotation> |
| 487 |
<xsd:sequence> |
| 488 |
<xsd:element name="questionnaire" type="inter:QuestionnaireType" minOccurs="1" maxOccurs="unbounded"> |
| 489 |
<xsd:annotation> |
| 490 |
<xsd:documentation>A questionnaire contains a set of questions that |
| 491 |
determines compliance with a check. Each questionnaire returns a |
| 492 |
value based on the responses to the various questions that it |
| 493 |
references. Each questionnaire acting as top-level should represent |
| 494 |
a single compliance check, such as might be referenced by an XCCDF |
| 495 |
Rule.</xsd:documentation> |
| 496 |
</xsd:annotation> |
| 497 |
</xsd:element> |
| 498 |
</xsd:sequence> |
| 499 |
</xsd:complexType> |
| 500 |
<xsd:complexType name="QuestionnaireType"> |
| 501 |
<xsd:annotation> |
| 502 |
<xsd:documentation>The QuestionnaireType type defines a structure that |
| 503 |
represents a specific question or set of questions that evaluate to a |
| 504 |
single result. A questionnaire may contain multiple test_actions. |
| 505 |
test_actions may be nested and aggregated through an acceptable |
| 506 |
operation to produce the result of a check. </xsd:documentation> |
| 507 |
</xsd:annotation> |
| 508 |
<xsd:complexContent> |
| 509 |
<xsd:extension base="inter:CompoundTestActionType"> |
| 510 |
<xsd:attribute name="id" type="inter:QuestionnaireIDPattern" use="required"> |
| 511 |
<xsd:annotation> |
| 512 |
<xsd:documentation> Each questionnaire is required to have a unique |
| 513 |
identifier that conforms to the definition of NCName in the |
| 514 |
Recommendation "Namespaces in XML 1.0", i.e., all XML 1.0 names |
| 515 |
that do not contain colons. </xsd:documentation> |
| 516 |
</xsd:annotation> |
| 517 |
</xsd:attribute> |
| 518 |
<xsd:attribute name="child_only" type="xsd:boolean" use="optional" default="false"> |
| 519 |
<xsd:annotation> |
| 520 |
<xsd:documentation>This attribute specifies whether or not this |
| 521 |
questionnaire should only appear as a child of another |
| 522 |
questionnaire. All questionnaires must be defined within the |
| 523 |
body of the ocil element and, by default, interpreters might |
| 524 |
simply grab all questionnaires and evaluate them. However, |
| 525 |
questionnaires can reference other questionnaires through a |
| 526 |
test_action_ref. If an author references a questionnaire in |
| 527 |
this way, they may not wish that the questionnaire be |
| 528 |
evaluated except as a child of another questionnaire. By |
| 529 |
setting the child_only attribute to true, the author is |
| 530 |
indicating that the given questionnaire should not be a |
| 531 |
"top-level" questionnaire but should instead only be |
| 532 |
evaluated as the child of another questionnaire. </xsd:documentation> |
| 533 |
</xsd:annotation> |
| 534 |
</xsd:attribute> |
| 535 |
</xsd:extension> |
| 536 |
</xsd:complexContent> |
| 537 |
</xsd:complexType> |
| 538 |
<xsd:complexType name="GeneratorType"> |
| 539 |
<xsd:annotation> |
| 540 |
<xsd:documentation> The GeneratorType type defines an element that is used |
| 541 |
to hold information about when a particular OCIL document was generated, |
| 542 |
what version of the schema was used, what tool was used to generate the |
| 543 |
document, and what version of the tool was used. </xsd:documentation> |
| 544 |
<xsd:documentation>Additional generator information is also allowed although |
| 545 |
it is not part of the official OCIL language. Individual organizations |
| 546 |
can place generator information that they feel is important. |
| 547 |
</xsd:documentation> |
| 548 |
</xsd:annotation> |
| 549 |
<xsd:sequence> |
| 550 |
<xsd:element name="product_name" type="xsd:normalizedString" minOccurs="0" maxOccurs="1"> |
| 551 |
<xsd:annotation> |
| 552 |
<xsd:documentation>The product_name element specifies the name of the |
| 553 |
application used to generate the file.</xsd:documentation> |
| 554 |
</xsd:annotation> |
| 555 |
</xsd:element> |
| 556 |
<xsd:element name="product_version" type="xsd:normalizedString" minOccurs="0" maxOccurs="1"> |
| 557 |
<xsd:annotation> |
| 558 |
<xsd:documentation>The product_version element specifies the version |
| 559 |
of the application used to generate the file.</xsd:documentation> |
| 560 |
</xsd:annotation> |
| 561 |
</xsd:element> |
| 562 |
<xsd:element name="author" type="inter:UserType" minOccurs="0" maxOccurs="unbounded"> |
| 563 |
<xsd:annotation> |
| 564 |
<xsd:documentation>The author element identifies one of the authors |
| 565 |
of this document.</xsd:documentation> |
| 566 |
</xsd:annotation> |
| 567 |
</xsd:element> |
| 568 |
<xsd:element name="schema_version" type="xsd:decimal" minOccurs="1" maxOccurs="1"> |
| 569 |
<xsd:annotation> |
| 570 |
<xsd:documentation>The schema_version element specifies the version |
| 571 |
of the OCIL schema that the document has been written in and that |
| 572 |
should be used for validation.</xsd:documentation> |
| 573 |
</xsd:annotation> |
| 574 |
</xsd:element> |
| 575 |
<xsd:element name="timestamp" type="xsd:dateTime" minOccurs="1" maxOccurs="1"> |
| 576 |
<xsd:annotation> |
| 577 |
<xsd:documentation>The timestamp element specifies when the |
| 578 |
particular OCIL document was generated. The format for the |
| 579 |
timestamp is yyyy-mm-ddThh:mm:ss. </xsd:documentation> |
| 580 |
</xsd:annotation> |
| 581 |
</xsd:element> |
| 582 |
<xsd:element minOccurs="0" name="additional_data" type="inter:ExtensionContainerType"> |
| 583 |
<xsd:annotation> |
| 584 |
<xsd:documentation>The additional_data element can be used to contain metadata |
| 585 |
extensions about the generator used to create the OCIL document |
| 586 |
instance.</xsd:documentation> |
| 587 |
</xsd:annotation> |
| 588 |
</xsd:element> |
| 589 |
</xsd:sequence> |
| 590 |
</xsd:complexType> |
| 591 |
<xsd:complexType name="ExtensionContainerType"> |
| 592 |
<xsd:sequence> |
| 593 |
<xsd:any minOccurs="1" maxOccurs="unbounded" processContents="lax" namespace="##other"/> |
| 594 |
</xsd:sequence> |
| 595 |
</xsd:complexType> |
| 596 |
<xsd:complexType name="DocumentType"> |
| 597 |
<xsd:annotation> |
| 598 |
<xsd:documentation> The DocumentType type describes structures used to provide |
| 599 |
document-level information, including title, descriptions, and notices. |
| 600 |
</xsd:documentation> |
| 601 |
</xsd:annotation> |
| 602 |
<xsd:sequence> |
| 603 |
<xsd:element name="title" type="xsd:normalizedString" minOccurs="1" maxOccurs="1"> |
| 604 |
<xsd:annotation> |
| 605 |
<xsd:documentation> The title element provides a title for this document. |
| 606 |
</xsd:documentation> |
| 607 |
</xsd:annotation> |
| 608 |
</xsd:element> |
| 609 |
<xsd:element name="description" type="xsd:normalizedString" minOccurs="0" maxOccurs="unbounded"> |
| 610 |
<xsd:annotation> |
| 611 |
<xsd:documentation> Each description element contains part of an |
| 612 |
overall description for the entire document. (Note that |
| 613 |
questionnaires contain their own description for questionnaire |
| 614 |
specific descriptions.) </xsd:documentation> |
| 615 |
<xsd:documentation>TODO: Consider changing this to XHTML structured text in the next revision.</xsd:documentation> |
| 616 |
</xsd:annotation> |
| 617 |
</xsd:element> |
| 618 |
<xsd:element name="notice" type="xsd:string" minOccurs="0" maxOccurs="unbounded"> |
| 619 |
<xsd:annotation> |
| 620 |
<xsd:documentation> Each notice element contains a notice or warning to the |
| 621 |
user of this document. </xsd:documentation> |
| 622 |
<xsd:documentation>TODO: Consider changing this to XHTML structured text in the next revision.</xsd:documentation> |
| 623 |
</xsd:annotation> |
| 624 |
</xsd:element> |
| 625 |
</xsd:sequence> |
| 626 |
</xsd:complexType> |
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
<xsd:complexType name="TestActionsType"> |
| 632 |
<xsd:annotation> |
| 633 |
<xsd:documentation>The TestActionsType type defines a container for a set of |
| 634 |
test action elements.</xsd:documentation> |
| 635 |
</xsd:annotation> |
| 636 |
<xsd:sequence> |
| 637 |
<xsd:element ref="inter:test_action" minOccurs="1" maxOccurs="unbounded"> |
| 638 |
<xsd:annotation> |
| 639 |
<xsd:documentation>The test_action element contains information about |
| 640 |
what action to take based on the answer to a referenced question |
| 641 |
element within a questionnaire. It can be a compound_test_action, |
| 642 |
boolean_question_test_action, choice_question_test_action, |
| 643 |
numeric_question_test_action, or string_question_test_action. |
| 644 |
</xsd:documentation> |
| 645 |
</xsd:annotation> |
| 646 |
</xsd:element> |
| 647 |
</xsd:sequence> |
| 648 |
</xsd:complexType> |
| 649 |
<xsd:complexType name="QuestionTestActionType"> |
| 650 |
<xsd:annotation> |
| 651 |
<xsd:documentation> The QuestionTestActionType type defines structures that |
| 652 |
are used to hold handlers for non-standard results (UNKNOWN, NOT_TESTED, |
| 653 |
NOT_APPLICABLE, and ERROR) received from a referenced question. All |
| 654 |
children of question_test_action extend this type. </xsd:documentation> |
| 655 |
</xsd:annotation> |
| 656 |
<xsd:complexContent> |
| 657 |
<xsd:extension base="inter:ItemBaseType"> |
| 658 |
<xsd:sequence> |
| 659 |
<xsd:element name="title" type="inter:TextType" minOccurs="0" maxOccurs="1"> |
| 660 |
<xsd:annotation> |
| 661 |
<xsd:documentation>The title element contains a descriptive |
| 662 |
heading for this set of handlers. </xsd:documentation> |
| 663 |
</xsd:annotation> |
| 664 |
</xsd:element> |
| 665 |
<xsd:element name="when_unknown" type="inter:TestActionConditionType" minOccurs="0"> |
| 666 |
<xsd:annotation> |
| 667 |
<xsd:documentation> The when_unknown element contains processing |
| 668 |
instructions for when the received result is UNKNOWN. |
| 669 |
</xsd:documentation> |
| 670 |
</xsd:annotation> |
| 671 |
</xsd:element> |
| 672 |
<xsd:element name="when_not_tested" type="inter:TestActionConditionType" minOccurs="0"> |
| 673 |
<xsd:annotation> |
| 674 |
<xsd:documentation> The when_not_tested element contains |
| 675 |
processing instructions for when the received result is |
| 676 |
NOT_TESTED. </xsd:documentation> |
| 677 |
</xsd:annotation> |
| 678 |
</xsd:element> |
| 679 |
<xsd:element name="when_not_applicable" type="inter:TestActionConditionType" minOccurs="0"> |
| 680 |
<xsd:annotation> |
| 681 |
<xsd:documentation> The when_not_applicable element contains |
| 682 |
processing instructions for when the received result is |
| 683 |
NOT_APPLICABLE. </xsd:documentation> |
| 684 |
</xsd:annotation> |
| 685 |
</xsd:element> |
| 686 |
<xsd:element name="when_error" type="inter:TestActionConditionType" minOccurs="0"> |
| 687 |
<xsd:annotation> |
| 688 |
<xsd:documentation> The when_error element contains processing |
| 689 |
instructions for when the received result is ERROR. |
| 690 |
</xsd:documentation> |
| 691 |
</xsd:annotation> |
| 692 |
</xsd:element> |
| 693 |
</xsd:sequence> |
| 694 |
<xsd:attribute name="question_ref" type="inter:QuestionIDPattern" use="required"> |
| 695 |
<xsd:annotation> |
| 696 |
<xsd:documentation> The question_ref attribute contains the id |
| 697 |
value of a question element. </xsd:documentation> |
| 698 |
</xsd:annotation> |
| 699 |
</xsd:attribute> |
| 700 |
<xsd:attribute name="id" type="inter:QuestionTestActionIDPattern" use="required"> |
| 701 |
<xsd:annotation> |
| 702 |
<xsd:documentation> Each item is required to have a unique |
| 703 |
identifier that conforms to the definition of NCName in the |
| 704 |
Recommendation "Namespaces in XML 1.0", i.e., all XML 1.0 names |
| 705 |
that do not contain colons. </xsd:documentation> |
| 706 |
</xsd:annotation> |
| 707 |
</xsd:attribute> |
| 708 |
</xsd:extension> |
| 709 |
</xsd:complexContent> |
| 710 |
</xsd:complexType> |
| 711 |
<xsd:complexType name="BooleanQuestionTestActionType"> |
| 712 |
<xsd:annotation> |
| 713 |
<xsd:documentation>The BooleanQuestionTestActionType type defines a |
| 714 |
structure that references a boolean_question and includes handlers for |
| 715 |
TRUE (YES) or FALSE (NO) responses.</xsd:documentation> |
| 716 |
</xsd:annotation> |
| 717 |
<xsd:complexContent> |
| 718 |
<xsd:extension base="inter:QuestionTestActionType"> |
| 719 |
<xsd:sequence> |
| 720 |
<xsd:element name="when_true" type="inter:TestActionConditionType" minOccurs="1" maxOccurs="1"> |
| 721 |
<xsd:annotation> |
| 722 |
<xsd:documentation>The element when_true specifies the action to |
| 723 |
do when the answer is true.</xsd:documentation> |
| 724 |
</xsd:annotation> |
| 725 |
</xsd:element> |
| 726 |
<xsd:element name="when_false" type="inter:TestActionConditionType" minOccurs="1" maxOccurs="1"> |
| 727 |
<xsd:annotation> |
| 728 |
<xsd:documentation>The element when_false specifies the action |
| 729 |
to do when the answer is false.</xsd:documentation> |
| 730 |
</xsd:annotation> |
| 731 |
</xsd:element> |
| 732 |
</xsd:sequence> |
| 733 |
</xsd:extension> |
| 734 |
</xsd:complexContent> |
| 735 |
</xsd:complexType> |
| 736 |
<xsd:complexType name="ChoiceQuestionTestActionType"> |
| 737 |
<xsd:annotation> |
| 738 |
<xsd:documentation>The ChoiceQuestionTestActionType type defines a structure |
| 739 |
that references a choice_question and includes handlers for the various |
| 740 |
choices set out in the choice_question. </xsd:documentation> |
| 741 |
</xsd:annotation> |
| 742 |
<xsd:complexContent> |
| 743 |
<xsd:extension base="inter:QuestionTestActionType"> |
| 744 |
<xsd:sequence> |
| 745 |
<xsd:element name="when_choice" type="inter:ChoiceTestActionConditionType" minOccurs="1" maxOccurs="unbounded"> |
| 746 |
<xsd:annotation> |
| 747 |
<xsd:documentation> Specifies the action to perform when the |
| 748 |
indicated choice is selected. |
| 749 |
</xsd:documentation> |
| 750 |
</xsd:annotation> |
| 751 |
</xsd:element> |
| 752 |
</xsd:sequence> |
| 753 |
</xsd:extension> |
| 754 |
</xsd:complexContent> |
| 755 |
</xsd:complexType> |
| 756 |
<xsd:complexType name="NumericQuestionTestActionType"> |
| 757 |
<xsd:annotation> |
| 758 |
<xsd:documentation>The NumericQuestionTestActionType type defines a |
| 759 |
structure that references a numeric_question and includes handlers that |
| 760 |
indicate actions to perform based on whether the response matches |
| 761 |
a particular value or falls within a particular range. |
| 762 |
</xsd:documentation> |
| 763 |
</xsd:annotation> |
| 764 |
<xsd:complexContent> |
| 765 |
<xsd:extension base="inter:QuestionTestActionType"> |
| 766 |
<xsd:choice> |
| 767 |
<xsd:annotation> |
| 768 |
<xsd:documentation> This structure is used to ensure that any |
| 769 |
number of when_equals and when_range handlers may appear, but |
| 770 |
there must be at least one handler (of one type or the other) |
| 771 |
and any when_equals handlers must precede any when_range. |
| 772 |
</xsd:documentation> |
| 773 |
</xsd:annotation> |
| 774 |
<xsd:sequence> |
| 775 |
<xsd:element name="when_equals" type="inter:EqualsTestActionConditionType" minOccurs="1" maxOccurs="unbounded"> |
| 776 |
<xsd:annotation> |
| 777 |
<xsd:documentation> This element holds information on what to |
| 778 |
do when the answer matches the specified value. |
| 779 |
</xsd:documentation> |
| 780 |
</xsd:annotation> |
| 781 |
</xsd:element> |
| 782 |
<xsd:element name="when_range" type="inter:RangeTestActionConditionType" minOccurs="0" maxOccurs="unbounded"> |
| 783 |
<xsd:annotation> |
| 784 |
<xsd:documentation> This element holds information on what to |
| 785 |
do when the answer is within a specified range of values. |
| 786 |
</xsd:documentation> |
| 787 |
</xsd:annotation> |
| 788 |
</xsd:element> |
| 789 |
</xsd:sequence> |
| 790 |
<xsd:element name="when_range" type="inter:RangeTestActionConditionType" minOccurs="1" maxOccurs="unbounded"> |
| 791 |
<xsd:annotation> |
| 792 |
<xsd:documentation> This element holds information on what to do |
| 793 |
when the answer is within a specified range of values. |
| 794 |
</xsd:documentation> |
| 795 |
</xsd:annotation> |
| 796 |
</xsd:element> |
| 797 |
</xsd:choice> |
| 798 |
</xsd:extension> |
| 799 |
</xsd:complexContent> |
| 800 |
</xsd:complexType> |
| 801 |
<xsd:complexType name="StringQuestionTestActionType"> |
| 802 |
<xsd:annotation> |
| 803 |
<xsd:documentation>The StringQuestionTestActionType type defines a structure |
| 804 |
that references a string_question and includes handlers that indicate |
| 805 |
actions to perform based on whether the response matches a given |
| 806 |
regular expression. </xsd:documentation> |
| 807 |
</xsd:annotation> |
| 808 |
<xsd:complexContent> |
| 809 |
<xsd:extension base="inter:QuestionTestActionType"> |
| 810 |
<xsd:sequence> |
| 811 |
<xsd:element name="when_pattern" type="inter:PatternTestActionConditionType" minOccurs="1" maxOccurs="unbounded"> |
| 812 |
<xsd:annotation> |
| 813 |
<xsd:documentation> This element holds information on what to do |
| 814 |
when the answer matches a specified regular expression |
| 815 |
pattern. </xsd:documentation> |
| 816 |
</xsd:annotation> |
| 817 |
</xsd:element> |
| 818 |
</xsd:sequence> |
| 819 |
</xsd:extension> |
| 820 |
</xsd:complexContent> |
| 821 |
</xsd:complexType> |
| 822 |
<xsd:complexType name="TestActionRefType"> |
| 823 |
<xsd:annotation> |
| 824 |
<xsd:documentation>The TestActionRefType type defines a structure that holds |
| 825 |
a reference (id) to a test_action or questionnaire. </xsd:documentation> |
| 826 |
</xsd:annotation> |
| 827 |
<xsd:simpleContent> |
| 828 |
<xsd:extension base="inter:TestActionRefValuePattern"> |
| 829 |
<xsd:attribute name="negate" type="xsd:boolean" default="false"> |
| 830 |
<xsd:annotation> |
| 831 |
<xsd:documentation> The negate attribute can be used to specify |
| 832 |
whether to toggle the result from PASS to FAIL, and vice versa. |
| 833 |
A result other than PASS or FAIL (e.g. ERROR, NOT_TESTED) |
| 834 |
will be unchanged by a negate operation. </xsd:documentation> |
| 835 |
</xsd:annotation> |
| 836 |
</xsd:attribute> |
| 837 |
</xsd:extension> |
| 838 |
</xsd:simpleContent> |
| 839 |
</xsd:complexType> |
| 840 |
<xsd:complexType name="ChoiceTestActionConditionType"> |
| 841 |
<xsd:annotation> |
| 842 |
<xsd:documentation>The ChoiceTestActionConditionType type defines a structure that |
| 843 |
specifies the action to take in a choice_test_action when a particular |
| 844 |
choice is selected in response to a choice_question.</xsd:documentation> |
| 845 |
</xsd:annotation> |
| 846 |
<xsd:complexContent> |
| 847 |
<xsd:extension base="inter:TestActionConditionType"> |
| 848 |
<xsd:sequence> |
| 849 |
<xsd:element name="choice_ref" type="inter:ChoiceIDPattern" maxOccurs="unbounded"> |
| 850 |
<xsd:annotation> |
| 851 |
<xsd:documentation>The choice_ref element specifies the id of a |
| 852 |
choice. </xsd:documentation> |
| 853 |
</xsd:annotation> |
| 854 |
</xsd:element> |
| 855 |
</xsd:sequence> |
| 856 |
</xsd:extension> |
| 857 |
</xsd:complexContent> |
| 858 |
</xsd:complexType> |
| 859 |
<xsd:complexType name="EqualsTestActionConditionType"> |
| 860 |
<xsd:annotation> |
| 861 |
<xsd:documentation>The EqualsTestActionConditionType defines a structure that specifies the |
| 862 |
action to take in a numeric_test_action when a particular value is given |
| 863 |
in response to a numeric_question.</xsd:documentation> |
| 864 |
</xsd:annotation> |
| 865 |
<xsd:complexContent> |
| 866 |
<xsd:extension base="inter:TestActionConditionType"> |
| 867 |
<xsd:sequence> |
| 868 |
<xsd:element name="value" type="xsd:decimal" minOccurs="1" maxOccurs="unbounded"> |
| 869 |
<xsd:annotation> |
| 870 |
<xsd:documentation> Each value holds what is to be matched. |
| 871 |
</xsd:documentation> |
| 872 |
</xsd:annotation> |
| 873 |
</xsd:element> |
| 874 |
</xsd:sequence> |
| 875 |
<xsd:attribute name="var_ref" type="inter:VariableIDPattern" use="optional"/> |
| 876 |
</xsd:extension> |
| 877 |
</xsd:complexContent> |
| 878 |
</xsd:complexType> |
| 879 |
<xsd:complexType name="RangeTestActionConditionType"> |
| 880 |
<xsd:annotation> |
| 881 |
<xsd:documentation>The RangeTestActionConditionType type defines a structure that specifies |
| 882 |
the action to take in a numeric_test_action when a value given |
| 883 |
in response to a numeric_question falls within the indicated range. |
| 884 |
</xsd:documentation> |
| 885 |
</xsd:annotation> |
| 886 |
<xsd:complexContent> |
| 887 |
<xsd:extension base="inter:TestActionConditionType"> |
| 888 |
<xsd:sequence> |
| 889 |
<xsd:element name="range" type="inter:RangeType" minOccurs="1" maxOccurs="unbounded"> |
| 890 |
<xsd:annotation> |
| 891 |
<xsd:documentation>Each range element holds a single numeric |
| 892 |
range.</xsd:documentation> |
| 893 |
</xsd:annotation> |
| 894 |
</xsd:element> |
| 895 |
</xsd:sequence> |
| 896 |
</xsd:extension> |
| 897 |
</xsd:complexContent> |
| 898 |
</xsd:complexType> |
| 899 |
<xsd:complexType name="PatternTestActionConditionType"> |
| 900 |
<xsd:annotation> |
| 901 |
<xsd:documentation>The PatternTestActionConditionType type defines a structure that |
| 902 |
specifies the action to take in a string_test_action when a string given |
| 903 |
in response to a string_question matches the given regular |
| 904 |
expression.</xsd:documentation> |
| 905 |
</xsd:annotation> |
| 906 |
<xsd:complexContent> |
| 907 |
<xsd:extension base="inter:TestActionConditionType"> |
| 908 |
<xsd:sequence> |
| 909 |
<xsd:element name="pattern" type="inter:PatternType" minOccurs="1" maxOccurs="unbounded"> |
| 910 |
<xsd:annotation> |
| 911 |
<xsd:documentation>Each pattern element holds a regular |
| 912 |
expression against which the response string is to be |
| 913 |
compared.</xsd:documentation> |
| 914 |
</xsd:annotation> |
| 915 |
</xsd:element> |
| 916 |
</xsd:sequence> |
| 917 |
</xsd:extension> |
| 918 |
</xsd:complexContent> |
| 919 |
</xsd:complexType> |
| 920 |
<xsd:complexType name="PatternType"> |
| 921 |
<xsd:annotation> |
| 922 |
<xsd:documentation>The PatternType type defines a structure that specifies a |
| 923 |
regular expression against which a string will be compared.</xsd:documentation> |
| 924 |
</xsd:annotation> |
| 925 |
<xsd:simpleContent> |
| 926 |
<xsd:extension base="xsd:string"> |
| 927 |
<xsd:annotation> |
| 928 |
<xsd:documentation>This contents of this field must be a Perl |
| 929 |
Compatible Regular Expression (PCRE).</xsd:documentation> |
| 930 |
<xsd:documentation>TODO: use a pattern to constrain the syntax of the PCRE pattern.</xsd:documentation> |
| 931 |
</xsd:annotation> |
| 932 |
<xsd:attribute name="var_ref" type="inter:VariableIDPattern" use="optional"/> |
| 933 |
</xsd:extension> |
| 934 |
</xsd:simpleContent> |
| 935 |
</xsd:complexType> |
| 936 |
<xsd:complexType name="RangeType"> |
| 937 |
<xsd:annotation> |
| 938 |
<xsd:documentation>The RangeType type defines a structure that specifies a |
| 939 |
range against which a numeric response is to be compared.</xsd:documentation> |
| 940 |
</xsd:annotation> |
| 941 |
<xsd:sequence> |
| 942 |
<xsd:element name="min" type="inter:RangeValueType" minOccurs="0" maxOccurs="1"> |
| 943 |
<xsd:annotation> |
| 944 |
<xsd:documentation>The min element contains a minimum value for the range. |
| 945 |
</xsd:documentation> |
| 946 |
</xsd:annotation> |
| 947 |
</xsd:element> |
| 948 |
<xsd:element name="max" type="inter:RangeValueType" minOccurs="0" maxOccurs="1"> |
| 949 |
<xsd:annotation> |
| 950 |
<xsd:documentation>The max element contains a maximum value for teh range. |
| 951 |
</xsd:documentation> |
| 952 |
</xsd:annotation> |
| 953 |
</xsd:element> |
| 954 |
</xsd:sequence> |
| 955 |
</xsd:complexType> |
| 956 |
<xsd:complexType name="TestActionConditionType"> |
| 957 |
<xsd:annotation> |
| 958 |
<xsd:documentation>The TestActionConditionType complex type specifies processing |
| 959 |
instructions - either produce a result or move on to another test. The |
| 960 |
TestActionConditionType is extended by all handlers ("when_...") in |
| 961 |
test_actions.</xsd:documentation> |
| 962 |
</xsd:annotation> |
| 963 |
<xsd:sequence> |
| 964 |
<xsd:choice minOccurs="1" maxOccurs="1"> |
| 965 |
<xsd:element name="result" type="inter:ResultType"> |
| 966 |
<xsd:annotation> |
| 967 |
<xsd:documentation> This element indicates that a final value (i.e. |
| 968 |
PASS, FAIL, ERROR, UNKNOWN, NOT_TESTED, NOT_APPLICABLE) should |
| 969 |
be returned if the encapsulating handler is invoked. |
| 970 |
</xsd:documentation> |
| 971 |
</xsd:annotation> |
| 972 |
</xsd:element> |
| 973 |
<xsd:element name="test_action_ref" type="inter:TestActionRefType"> |
| 974 |
<xsd:annotation> |
| 975 |
<xsd:documentation> This element indicates that a new test_action |
| 976 |
should be processed if the encapsulating handler is invoked. |
| 977 |
</xsd:documentation> |
| 978 |
</xsd:annotation> |
| 979 |
</xsd:element> |
| 980 |
</xsd:choice> |
| 981 |
<xsd:element name="artifact_refs" type="inter:ArtifactRefsType" minOccurs="0" maxOccurs="1"> |
| 982 |
<xsd:annotation> |
| 983 |
<xsd:documentation>The artifact_refs element contains all the artifacts |
| 984 |
that must be requested when a question, test_action, or |
| 985 |
questionnaire has been evaluated.</xsd:documentation> |
| 986 |
</xsd:annotation> |
| 987 |
</xsd:element> |
| 988 |
</xsd:sequence> |
| 989 |
</xsd:complexType> |
| 990 |
<xsd:complexType name="RangeValueType"> |
| 991 |
<xsd:annotation> |
| 992 |
<xsd:documentation>Defines a specific bound in a range.</xsd:documentation> |
| 993 |
</xsd:annotation> |
| 994 |
<xsd:simpleContent> |
| 995 |
<xsd:extension base="xsd:decimal"> |
| 996 |
<xsd:attribute name="inclusive" type="xsd:boolean" default="true"> |
| 997 |
<xsd:annotation> |
| 998 |
<xsd:documentation>The inclusive attribute specifies whether the |
| 999 |
value should be in the specified range. The default is true, |
| 1000 |
indicating it is included. </xsd:documentation> |
| 1001 |
</xsd:annotation> |
| 1002 |
</xsd:attribute> |
| 1003 |
<xsd:attribute name="var_ref" type="inter:VariableIDPattern" use="optional"> |
| 1004 |
<xsd:annotation> |
| 1005 |
<xsd:documentation>A reference to a variable to use as the value.</xsd:documentation> |
| 1006 |
</xsd:annotation> |
| 1007 |
</xsd:attribute> |
| 1008 |
</xsd:extension> |
| 1009 |
</xsd:simpleContent> |
| 1010 |
</xsd:complexType> |
| 1011 |
|
| 1012 |
|
| 1013 |
|
| 1014 |
|
| 1015 |
<xsd:complexType name="QuestionsType"> |
| 1016 |
<xsd:annotation> |
| 1017 |
<xsd:documentation>The QuestionsType type defines structures containing a |
| 1018 |
set of QuestionType and ChoiceGroupType elements.</xsd:documentation> |
| 1019 |
</xsd:annotation> |
| 1020 |
<xsd:sequence> |
| 1021 |
<xsd:element ref="inter:question" minOccurs="1" maxOccurs="unbounded"> |
| 1022 |
<xsd:annotation> |
| 1023 |
<xsd:documentation>The question element contains information for a |
| 1024 |
single question to be answered. Based on the data type of |
| 1025 |
acceptable answers to the question, it can be a boolean_question, |
| 1026 |
choice_question, numeric_question, or string_question. |
| 1027 |
</xsd:documentation> |
| 1028 |
</xsd:annotation> |
| 1029 |
</xsd:element> |
| 1030 |
<xsd:element name="choice_group" type="inter:ChoiceGroupType" minOccurs="0" maxOccurs="unbounded"> |
| 1031 |
<xsd:annotation> |
| 1032 |
<xsd:documentation>Holds choice groups which represent possible sets |
| 1033 |
of choices for choice_questions. Choice_groups may be reused across |
| 1034 |
multiple choice_questions.</xsd:documentation> |
| 1035 |
</xsd:annotation> |
| 1036 |
</xsd:element> |
| 1037 |
</xsd:sequence> |
| 1038 |
</xsd:complexType> |
| 1039 |
<xsd:complexType name="QuestionTextType" mixed="true"> |
| 1040 |
<xsd:annotation> |
| 1041 |
<xsd:documentation>The QuestionTextType complex type defines a structure |
| 1042 |
to hold the text and variables that comprise a question's text. |
| 1043 |
</xsd:documentation> |
| 1044 |
</xsd:annotation> |
| 1045 |
<xsd:sequence> |
| 1046 |
<xsd:element name="sub" type="inter:SubstitutionTextType" minOccurs="0" maxOccurs="unbounded"> |
| 1047 |
<xsd:annotation> |
| 1048 |
<xsd:documentation>Allow the inclusion of arbitrary text contained within a variable.</xsd:documentation> |
| 1049 |
</xsd:annotation> |
| 1050 |
</xsd:element> |
| 1051 |
</xsd:sequence> |
| 1052 |
</xsd:complexType> |
| 1053 |
<xsd:complexType name="QuestionType"> |
| 1054 |
<xsd:annotation> |
| 1055 |
<xsd:documentation>The QuestionType complex type defines a structure to |
| 1056 |
describe a question and any instructions to help in determining an |
| 1057 |
answer.</xsd:documentation> |
| 1058 |
</xsd:annotation> |
| 1059 |
<xsd:complexContent> |
| 1060 |
<xsd:extension base="inter:ItemBaseType"> |
| 1061 |
<xsd:sequence> |
| 1062 |
<xsd:element name="question_text" type="inter:QuestionTextType" minOccurs="1" maxOccurs="unbounded"> |
| 1063 |
<xsd:annotation> |
| 1064 |
<xsd:documentation>The question_text element provides the text of |
| 1065 |
the question to pose.</xsd:documentation> |
| 1066 |
</xsd:annotation> |
| 1067 |
</xsd:element> |
| 1068 |
<xsd:element name="instructions" type="inter:InstructionsType" minOccurs="0" maxOccurs="1"> |
| 1069 |
<xsd:annotation> |
| 1070 |
<xsd:documentation>An optional instructions element may be |
| 1071 |
included to hold additional instructions to assist the user |
| 1072 |
in determining the answer to the question.</xsd:documentation> |
| 1073 |
</xsd:annotation> |
| 1074 |
</xsd:element> |
| 1075 |
</xsd:sequence> |
| 1076 |
<xsd:attribute name="id" type="inter:QuestionIDPattern" use="required"> |
| 1077 |
<xsd:annotation> |
| 1078 |
<xsd:documentation> Each item is required to have a unique |
| 1079 |
identifier that conforms to the definition of NCName in the |
| 1080 |
Recommendation "Namespaces in XML 1.0", i.e., all XML 1.0 names |
| 1081 |
that do not contain colons. </xsd:documentation> |
| 1082 |
</xsd:annotation> |
| 1083 |
</xsd:attribute> |
| 1084 |
</xsd:extension> |
| 1085 |
</xsd:complexContent> |
| 1086 |
</xsd:complexType> |
| 1087 |
<xsd:complexType name="BooleanQuestionType"> |
| 1088 |
<xsd:annotation> |
| 1089 |
<xsd:documentation>The BooleanQuestionType type defines a question with |
| 1090 |
valid responses of either {TRUE, FALSE} or {YES, NO}.</xsd:documentation> |
| 1091 |
</xsd:annotation> |
| 1092 |
<xsd:complexContent> |
| 1093 |
<xsd:extension base="inter:QuestionType"> |
| 1094 |
<xsd:attribute name="default_answer" type="xsd:boolean" use="optional"> |
| 1095 |
<xsd:annotation> |
| 1096 |
<xsd:documentation>The default_answer attribute specifies the |
| 1097 |
default value of the boolean_question. Its value may be set to |
| 1098 |
true or false.</xsd:documentation> |
| 1099 |
</xsd:annotation> |
| 1100 |
</xsd:attribute> |
| 1101 |
<xsd:attribute name="model" default="MODEL_YES_NO" use="optional" type="inter:BooleanQuestionModelType"> |
| 1102 |
<xsd:annotation> |
| 1103 |
<xsd:documentation>The model attribute specifies whether the |
| 1104 |
response should be from the set {True, False} or the set |
| 1105 |
{YES, NO}. If the value of this attribute is not set, then |
| 1106 |
it defaults to MODEL_YES_NO (i.e. response can either be |
| 1107 |
YES or NO).</xsd:documentation> |
| 1108 |
</xsd:annotation> |
| 1109 |
</xsd:attribute> |
| 1110 |
</xsd:extension> |
| 1111 |
</xsd:complexContent> |
| 1112 |
</xsd:complexType> |
| 1113 |
<xsd:complexType name="ChoiceQuestionType"> |
| 1114 |
<xsd:annotation> |
| 1115 |
<xsd:documentation>The ChoiceQuestionType type defines a question with one |
| 1116 |
or more acceptable answers specified by the author. The response will |
| 1117 |
be one of these specified answers. Acceptable answers are specified |
| 1118 |
either explicitly using the choice element or implicitly using the |
| 1119 |
choice_group_ref element to reference a choice_group element. Choices |
| 1120 |
are presented in the order in which they are provided. All the choices in |
| 1121 |
a choice_group are inserted in the order in which they appear within the |
| 1122 |
choice_group.</xsd:documentation> |
| 1123 |
</xsd:annotation> |
| 1124 |
<xsd:complexContent> |
| 1125 |
<xsd:extension base="inter:QuestionType"> |
| 1126 |
<xsd:choice minOccurs="1" maxOccurs="unbounded"> |
| 1127 |
<xsd:element name="choice" type="inter:ChoiceType"> |
| 1128 |
<xsd:annotation> |
| 1129 |
<xsd:documentation>Holds the information associated with one of |
| 1130 |
the possible responses to this choice_question.</xsd:documentation> |
| 1131 |
</xsd:annotation> |
| 1132 |
</xsd:element> |
| 1133 |
<xsd:element name="choice_group_ref" type="inter:ChoiceGroupIDPattern"> |
| 1134 |
<xsd:annotation> |
| 1135 |
<xsd:documentation>Holds a reference to a choice_group. The |
| 1136 |
questions described in this choice group are used as possible |
| 1137 |
responses for this choice_question.</xsd:documentation> |
| 1138 |
</xsd:annotation> |
| 1139 |
</xsd:element> |
| 1140 |
</xsd:choice> |
| 1141 |
<xsd:attribute name="default_answer_ref" type="inter:ChoiceIDPattern" use="optional"> |
| 1142 |
<xsd:annotation> |
| 1143 |
<xsd:documentation>The default_answer_ref specifies the choice id |
| 1144 |
of the default answer to the question.</xsd:documentation> |
| 1145 |
</xsd:annotation> |
| 1146 |
</xsd:attribute> |
| 1147 |
</xsd:extension> |
| 1148 |
</xsd:complexContent> |
| 1149 |
</xsd:complexType> |
| 1150 |
<xsd:complexType name="NumericQuestionType"> |
| 1151 |
<xsd:annotation> |
| 1152 |
<xsd:documentation>The NumericQuestionType type defines a question that |
| 1153 |
requires a numeric answer. Acceptable values may be positive or negative |
| 1154 |
and may include decimals.</xsd:documentation> |
| 1155 |
</xsd:annotation> |
| 1156 |
<xsd:complexContent> |
| 1157 |
<xsd:extension base="inter:QuestionType"> |
| 1158 |
<xsd:attribute name="default_answer" type="xsd:decimal" use="optional"> |
| 1159 |
<xsd:annotation> |
| 1160 |
<xsd:documentation>An optional default value may be specified as |
| 1161 |
the answer. </xsd:documentation> |
| 1162 |
</xsd:annotation> |
| 1163 |
</xsd:attribute> |
| 1164 |
</xsd:extension> |
| 1165 |
</xsd:complexContent> |
| 1166 |
</xsd:complexType> |
| 1167 |
<xsd:complexType name="StringQuestionType"> |
| 1168 |
<xsd:annotation> |
| 1169 |
<xsd:documentation>The StringQuestionType type defines a question that |
| 1170 |
requires a string answer. </xsd:documentation> |
| 1171 |
</xsd:annotation> |
| 1172 |
<xsd:complexContent> |
| 1173 |
<xsd:extension base="inter:QuestionType"> |
| 1174 |
<xsd:attribute name="default_answer" type="xsd:string" use="optional"> |
| 1175 |
<xsd:annotation> |
| 1176 |
<xsd:documentation>An optional default value may be specified as |
| 1177 |
the answer.</xsd:documentation> |
| 1178 |
</xsd:annotation> |
| 1179 |
</xsd:attribute> |
| 1180 |
</xsd:extension> |
| 1181 |
</xsd:complexContent> |
| 1182 |
</xsd:complexType> |
| 1183 |
<xsd:simpleType name="BooleanQuestionModelType"> |
| 1184 |
<xsd:annotation> |
| 1185 |
<xsd:documentation>The BooleanQuestionModelType type provides the acceptable |
| 1186 |
models (i.e. set of acceptable responses) for a |
| 1187 |
boolean_question.</xsd:documentation> |
| 1188 |
</xsd:annotation> |
| 1189 |
<xsd:restriction base="xsd:token"> |
| 1190 |
<xsd:enumeration value="MODEL_YES_NO"> |
| 1191 |
<xsd:annotation> |
| 1192 |
<xsd:documentation>MODEL_YES_NO represents a response set of {YES, |
| 1193 |
NO}.</xsd:documentation> |
| 1194 |
</xsd:annotation> |
| 1195 |
</xsd:enumeration> |
| 1196 |
<xsd:enumeration value="MODEL_TRUE_FALSE"> |
| 1197 |
<xsd:annotation> |
| 1198 |
<xsd:documentation>MODEL_TRUE_FALSE represents a response set of |
| 1199 |
{TRUE, FALSE}.</xsd:documentation> |
| 1200 |
</xsd:annotation> |
| 1201 |
</xsd:enumeration> |
| 1202 |
</xsd:restriction> |
| 1203 |
</xsd:simpleType> |
| 1204 |
<xsd:complexType name="ChoiceType"> |
| 1205 |
<xsd:annotation> |
| 1206 |
<xsd:documentation>The ChoiceType type defines structures that hold |
| 1207 |
information about one acceptable answer to a choice_question.</xsd:documentation> |
| 1208 |
</xsd:annotation> |
| 1209 |
<xsd:simpleContent> |
| 1210 |
<xsd:extension base="xsd:normalizedString"> |
| 1211 |
<xsd:attribute name="id" type="inter:ChoiceIDPattern" use="required"> |
| 1212 |
<xsd:annotation> |
| 1213 |
<xsd:documentation>All choices are tagged with a unique identifier |
| 1214 |
that may be referenced by a choice_test_action referencing the |
| 1215 |
encapsulating choice_question.</xsd:documentation> |
| 1216 |
</xsd:annotation> |
| 1217 |
</xsd:attribute> |
| 1218 |
<xsd:attribute name="var_ref" type="inter:VariableIDPattern" use="optional"/> |
| 1219 |
</xsd:extension> |
| 1220 |
</xsd:simpleContent> |
| 1221 |
</xsd:complexType> |
| 1222 |
<xsd:complexType name="ChoiceGroupType"> |
| 1223 |
<xsd:annotation> |
| 1224 |
<xsd:documentation>The ChoiceGroupType type defines a group of choices that |
| 1225 |
may then be reused in multiple choice_question elements. For example, a |
| 1226 |
document may include multiple choice_questions with the options of |
| 1227 |
"Good", "Fair", or "Poor". By defining these choices in a single |
| 1228 |
choice_group, the author would not need to list them out explicitly in |
| 1229 |
every choice_question.</xsd:documentation> |
| 1230 |
</xsd:annotation> |
| 1231 |
<xsd:sequence> |
| 1232 |
<xsd:element name="choice" type="inter:ChoiceType" minOccurs="1" maxOccurs="unbounded"> |
| 1233 |
<xsd:annotation> |
| 1234 |
<xsd:documentation>Holds the information associated with one of the |
| 1235 |
possible responses for a choice_question.</xsd:documentation> |
| 1236 |
</xsd:annotation> |
| 1237 |
</xsd:element> |
| 1238 |
</xsd:sequence> |
| 1239 |
<xsd:attribute name="id" type="inter:ChoiceGroupIDPattern" use="required"> |
| 1240 |
<xsd:annotation> |
| 1241 |
<xsd:documentation>Holds the id of this choice group. This id is |
| 1242 |
referenced within choice_question elements to include the choices |
| 1243 |
contained in a group.</xsd:documentation> |
| 1244 |
</xsd:annotation> |
| 1245 |
</xsd:attribute> |
| 1246 |
</xsd:complexType> |
| 1247 |
<xsd:complexType name="InstructionsType"> |
| 1248 |
<xsd:annotation> |
| 1249 |
<xsd:documentation>The InstructionsType type defines a series of steps |
| 1250 |
intended to guide the user in answering a question.</xsd:documentation> |
| 1251 |
</xsd:annotation> |
| 1252 |
<xsd:sequence> |
| 1253 |
<xsd:element name="title" type="inter:TextType" minOccurs="1" maxOccurs="1"> |
| 1254 |
<xsd:annotation> |
| 1255 |
<xsd:documentation>The title element contains a descriptive heading |
| 1256 |
for the instructions.</xsd:documentation> |
| 1257 |
</xsd:annotation> |
| 1258 |
</xsd:element> |
| 1259 |
<xsd:element name="step" type="inter:StepType" minOccurs="1" maxOccurs="unbounded"> |
| 1260 |
<xsd:annotation> |
| 1261 |
<xsd:documentation>Each step element contains a single step within the |
| 1262 |
instructions.</xsd:documentation> |
| 1263 |
</xsd:annotation> |
| 1264 |
</xsd:element> |
| 1265 |
</xsd:sequence> |
| 1266 |
</xsd:complexType> |
| 1267 |
|
| 1268 |
|
| 1269 |
|
| 1270 |
|
| 1271 |
<xsd:complexType name="ResultsType"> |
| 1272 |
<xsd:annotation> |
| 1273 |
<xsd:documentation>The ResultsType type defines structures containing |
| 1274 |
results from questionnaires, test actions, questions, artifacts, and |
| 1275 |
metadata about the start/end time of evaluation, any targets, and a short |
| 1276 |
caption or title.</xsd:documentation> |
| 1277 |
</xsd:annotation> |
| 1278 |
<xsd:sequence> |
| 1279 |
<xsd:element name="title" type="inter:TextType" minOccurs="0" maxOccurs="1"> |
| 1280 |
<xsd:annotation> |
| 1281 |
<xsd:documentation>The title element contains a descriptive heading or |
| 1282 |
caption describing the result set.</xsd:documentation> |
| 1283 |
</xsd:annotation> |
| 1284 |
</xsd:element> |
| 1285 |
<xsd:element name="questionnaire_results" type="inter:QuestionnaireResultsType" minOccurs="0" maxOccurs="1"> |
| 1286 |
<xsd:annotation> |
| 1287 |
<xsd:documentation>The questionnare_results element contains computed |
| 1288 |
results of all the evaluated questionnaires.</xsd:documentation> |
| 1289 |
</xsd:annotation> |
| 1290 |
</xsd:element> |
| 1291 |
<xsd:element name="test_action_results" type="inter:TestActionResultsType" minOccurs="0" maxOccurs="1"> |
| 1292 |
<xsd:annotation> |
| 1293 |
<xsd:documentation>The test_action_results element contains computed |
| 1294 |
results of all the evaluated test_action types.</xsd:documentation> |
| 1295 |
</xsd:annotation> |
| 1296 |
</xsd:element> |
| 1297 |
<xsd:element name="question_results" type="inter:QuestionResultsType" minOccurs="0" maxOccurs="1"> |
| 1298 |
<xsd:annotation> |
| 1299 |
<xsd:documentation>The question_results element contains computed |
| 1300 |
results of all evaluated question types.</xsd:documentation> |
| 1301 |
</xsd:annotation> |
| 1302 |
</xsd:element> |
| 1303 |
<xsd:element name="artifact_results" type="inter:ArtifactResultsType" minOccurs="0" maxOccurs="1"> |
| 1304 |
<xsd:annotation> |
| 1305 |
<xsd:documentation>The artifact_results element contains all artifacts |
| 1306 |
that have been retrieved during evaluation. Scope is the entire |
| 1307 |
document.</xsd:documentation> |
| 1308 |
</xsd:annotation> |
| 1309 |
</xsd:element> |
| 1310 |
<xsd:element name="targets" type="inter:TargetsType" minOccurs="0" maxOccurs="1"> |
| 1311 |
<xsd:annotation> |
| 1312 |
<xsd:documentation>The targets element contains all the actual target |
| 1313 |
users, systems, and roles for which the OCIL document has been |
| 1314 |
applied.</xsd:documentation> |
| 1315 |
</xsd:annotation> |
| 1316 |
</xsd:element> |
| 1317 |
</xsd:sequence> |
| 1318 |
<xsd:attribute name="start_time" type="xsd:dateTime" use="optional"> |
| 1319 |
<xsd:annotation> |
| 1320 |
<xsd:documentation>The start_time attribute is an optional attribute that |
| 1321 |
specifies when the evaluation of this OCIL file started.</xsd:documentation> |
| 1322 |
</xsd:annotation> |
| 1323 |
</xsd:attribute> |
| 1324 |
<xsd:attribute name="end_time" type="xsd:dateTime" use="optional"> |
| 1325 |
<xsd:annotation> |
| 1326 |
<xsd:documentation> The end_time attribute is an optional attribute that |
| 1327 |
specifies when the evaluation of this OCIL file ended.</xsd:documentation> |
| 1328 |
</xsd:annotation> |
| 1329 |
</xsd:attribute> |
| 1330 |
</xsd:complexType> |
| 1331 |
<xsd:complexType name="QuestionnaireResultsType"> |
| 1332 |
<xsd:annotation> |
| 1333 |
<xsd:documentation>The QuestionnaireResultsType type defines structures |
| 1334 |
containing computed results of all the evaluated |
| 1335 |
questionnaires.</xsd:documentation> |
| 1336 |
</xsd:annotation> |
| 1337 |
<xsd:sequence> |
| 1338 |
<xsd:element name="questionnaire_result" type="inter:QuestionnaireResultType" minOccurs="1" maxOccurs="unbounded"> |
| 1339 |
<xsd:annotation> |
| 1340 |
<xsd:documentation>The questionnaire_result element contains |
| 1341 |
information about the result of a particular questionnaire.</xsd:documentation> |
| 1342 |
</xsd:annotation> |
| 1343 |
</xsd:element> |
| 1344 |
</xsd:sequence> |
| 1345 |
</xsd:complexType> |
| 1346 |
<xsd:complexType name="TestActionResultsType"> |
| 1347 |
<xsd:annotation> |
| 1348 |
<xsd:documentation>The TestActionResultsType type defines structures |
| 1349 |
containing computed results of all the evaluated test action |
| 1350 |
types.</xsd:documentation> |
| 1351 |
</xsd:annotation> |
| 1352 |
<xsd:sequence> |
| 1353 |
<xsd:element name="test_action_result" type="inter:TestActionResultType" minOccurs="1" maxOccurs="unbounded"> |
| 1354 |
<xsd:annotation> |
| 1355 |
<xsd:documentation>The test_action_result element contains the result |
| 1356 |
of a test_action evaluation. One of these elements will appear for |
| 1357 |
each test_action evaluated.</xsd:documentation> |
| 1358 |
</xsd:annotation> |
| 1359 |
</xsd:element> |
| 1360 |
</xsd:sequence> |
| 1361 |
</xsd:complexType> |
| 1362 |
<xsd:complexType name="QuestionResultsType"> |
| 1363 |
<xsd:annotation> |
| 1364 |
<xsd:documentation>The QuestionResultsType type defines structures |
| 1365 |
containing computed results of all evaluated question |
| 1366 |
types.</xsd:documentation> |
| 1367 |
</xsd:annotation> |
| 1368 |
<xsd:sequence> |
| 1369 |
<xsd:element ref="inter:question_result" minOccurs="1" maxOccurs="unbounded"> |
| 1370 |
<xsd:annotation> |
| 1371 |
<xsd:documentation>A question_result element contains result |
| 1372 |
information associated with a specific question. The specific type |
| 1373 |
of question_result (boolean_question_result, |
| 1374 |
choice_question_result, etc.) depends on the type of the associated |
| 1375 |
question (boolean_question, choice_question, etc.)</xsd:documentation> |
| 1376 |
</xsd:annotation> |
| 1377 |
</xsd:element> |
| 1378 |
</xsd:sequence> |
| 1379 |
</xsd:complexType> |
| 1380 |
<xsd:complexType name="QuestionnaireResultType"> |
| 1381 |
<xsd:annotation> |
| 1382 |
<xsd:documentation>The QuestionnaireResultType type defines structures |
| 1383 |
containing the computed result, associated artifacts and targets of a |
| 1384 |
particular questionnaire.</xsd:documentation> |
| 1385 |
</xsd:annotation> |
| 1386 |
<xsd:sequence> |
| 1387 |
<xsd:element name="artifact_results" type="inter:ArtifactResultsType" minOccurs="0" maxOccurs="1"> |
| 1388 |
<xsd:annotation> |
| 1389 |
<xsd:documentation>The artifact_results element contains a set of |
| 1390 |
retrieved artifacts.</xsd:documentation> |
| 1391 |
</xsd:annotation> |
| 1392 |
</xsd:element> |
| 1393 |
</xsd:sequence> |
| 1394 |
<xsd:attribute name="questionnaire_ref" type="inter:QuestionnaireIDPattern" use="required"> |
| 1395 |
<xsd:annotation> |
| 1396 |
<xsd:documentation>The questionnaire_ref attribute identifies a |
| 1397 |
particular questionnaire using its id.</xsd:documentation> |
| 1398 |
</xsd:annotation> |
| 1399 |
</xsd:attribute> |
| 1400 |
<xsd:attribute name="result" type="inter:ResultType" use="required"> |
| 1401 |
<xsd:annotation> |
| 1402 |
<xsd:documentation>The result attribute holds the result of evaluating |
| 1403 |
the specified questionnaire.</xsd:documentation> |
| 1404 |
</xsd:annotation> |
| 1405 |
</xsd:attribute> |
| 1406 |
</xsd:complexType> |
| 1407 |
<xsd:complexType name="TestActionResultType"> |
| 1408 |
<xsd:annotation> |
| 1409 |
<xsd:documentation>The TestActionResultType type defines structures |
| 1410 |
containing all computed results of a TestActionType. One of these |
| 1411 |
elements will appear for each test_action evaluated.</xsd:documentation> |
| 1412 |
</xsd:annotation> |
| 1413 |
<xsd:sequence> |
| 1414 |
<xsd:element name="artifact_results" type="inter:ArtifactResultsType" minOccurs="0" maxOccurs="1"> |
| 1415 |
<xsd:annotation> |
| 1416 |
<xsd:documentation>The artifact_results element contains a set of |
| 1417 |
retrieved artifacts.</xsd:documentation> |
| 1418 |
</xsd:annotation> |
| 1419 |
</xsd:element> |
| 1420 |
</xsd:sequence> |
| 1421 |
<xsd:attribute name="test_action_ref" type="inter:TestActionRefValuePattern" use="required"> |
| 1422 |
<xsd:annotation> |
| 1423 |
<xsd:documentation>The test_action_ref attribute identifies a specific |
| 1424 |
test_action using its id.</xsd:documentation> |
| 1425 |
</xsd:annotation> |
| 1426 |
</xsd:attribute> |
| 1427 |
<xsd:attribute name="result" type="inter:ResultType" use="required"> |
| 1428 |
<xsd:annotation> |
| 1429 |
<xsd:documentation>The result attribute holds the result of evaluating |
| 1430 |
the specified test_action specified.</xsd:documentation> |
| 1431 |
</xsd:annotation> |
| 1432 |
</xsd:attribute> |
| 1433 |
</xsd:complexType> |
| 1434 |
<xsd:complexType name="QuestionResultType"> |
| 1435 |
<xsd:annotation> |
| 1436 |
<xsd:documentation>The QuestionResultType complex type defines structures |
| 1437 |
that hold information about a question and the response to |
| 1438 |
it.</xsd:documentation> |
| 1439 |
</xsd:annotation> |
| 1440 |
<xsd:attribute name="question_ref" type="inter:QuestionIDPattern" use="required"> |
| 1441 |
<xsd:annotation> |
| 1442 |
<xsd:documentation>The question_ref attribute contains the id of a |
| 1443 |
question.</xsd:documentation> |
| 1444 |
</xsd:annotation> |
| 1445 |
</xsd:attribute> |
| 1446 |
<xsd:attribute name="response" type="inter:UserResponseType" use="optional" default="ANSWERED"> |
| 1447 |
<xsd:annotation> |
| 1448 |
<xsd:documentation>The response attribute classifies the response. |
| 1449 |
If the answer to the question is standard, the response is set to |
| 1450 |
ANSWERED (the default). If, however, the answer is exceptional |
| 1451 |
(UNKNOWN, NOT_APPLICABLE, etc.) then this attribute will be set to |
| 1452 |
the corresponding exceptional result.</xsd:documentation> |
| 1453 |
</xsd:annotation> |
| 1454 |
</xsd:attribute> |
| 1455 |
</xsd:complexType> |
| 1456 |
<xsd:complexType name="BooleanQuestionResultType"> |
| 1457 |
<xsd:annotation> |
| 1458 |
<xsd:documentation>The BooleanQuestionResultType type defines structures |
| 1459 |
containing a reference to a boolean_question, the response, and |
| 1460 |
whether the question was successfully posed.</xsd:documentation> |
| 1461 |
</xsd:annotation> |
| 1462 |
<xsd:complexContent> |
| 1463 |
<xsd:extension base="inter:QuestionResultType"> |
| 1464 |
<xsd:sequence> |
| 1465 |
<xsd:element name="answer" type="xsd:boolean" maxOccurs="1" nillable="true"> |
| 1466 |
<xsd:annotation> |
| 1467 |
<xsd:documentation>The value of the answer to the |
| 1468 |
boolean_question. It could either be TRUE or |
| 1469 |
FALSE.</xsd:documentation> |
| 1470 |
</xsd:annotation> |
| 1471 |
</xsd:element> |
| 1472 |
</xsd:sequence> |
| 1473 |
</xsd:extension> |
| 1474 |
</xsd:complexContent> |
| 1475 |
</xsd:complexType> |
| 1476 |
<xsd:complexType name="ChoiceQuestionResultType"> |
| 1477 |
<xsd:annotation> |
| 1478 |
<xsd:documentation>The ChoiceQuestionResultType type defines structures |
| 1479 |
containing a reference to a choice_question, the response, and |
| 1480 |
whether the question was successfully posed.</xsd:documentation> |
| 1481 |
</xsd:annotation> |
| 1482 |
<xsd:complexContent> |
| 1483 |
<xsd:extension base="inter:QuestionResultType"> |
| 1484 |
<xsd:sequence> |
| 1485 |
<xsd:element name="answer" type="inter:ChoiceAnswerType" maxOccurs="1" nillable="true"> |
| 1486 |
<xsd:annotation> |
| 1487 |
<xsd:documentation>The answer element contains a choice_ref |
| 1488 |
attribute that identifies the selected choice. |
| 1489 |
</xsd:documentation> |
| 1490 |
</xsd:annotation> |
| 1491 |
</xsd:element> |
| 1492 |
</xsd:sequence> |
| 1493 |
</xsd:extension> |
| 1494 |
</xsd:complexContent> |
| 1495 |
</xsd:complexType> |
| 1496 |
<xsd:complexType name="NumericQuestionResultType"> |
| 1497 |
<xsd:annotation> |
| 1498 |
<xsd:documentation>The NumericQuestionResultType type defines structures |
| 1499 |
containing a reference to a numeric_question, the provided response, |
| 1500 |
and whether the question was successfully posed.</xsd:documentation> |
| 1501 |
</xsd:annotation> |
| 1502 |
<xsd:complexContent> |
| 1503 |
<xsd:extension base="inter:QuestionResultType"> |
| 1504 |
<xsd:sequence> |
| 1505 |
<xsd:element name="answer" type="xsd:decimal" maxOccurs="1" nillable="true"> |
| 1506 |
<xsd:annotation> |
| 1507 |
<xsd:documentation>The decimal value of the answer to a |
| 1508 |
numeric_question.</xsd:documentation> |
| 1509 |
</xsd:annotation> |
| 1510 |
</xsd:element> |
| 1511 |
</xsd:sequence> |
| 1512 |
</xsd:extension> |
| 1513 |
</xsd:complexContent> |
| 1514 |
</xsd:complexType> |
| 1515 |
<xsd:complexType name="StringQuestionResultType"> |
| 1516 |
<xsd:annotation> |
| 1517 |
<xsd:documentation>The StringQuestionResultType type defines structures |
| 1518 |
containing a reference to a string_question, the string provided in |
| 1519 |
response, and whether the question was successfully |
| 1520 |
posed.</xsd:documentation> |
| 1521 |
</xsd:annotation> |
| 1522 |
<xsd:complexContent> |
| 1523 |
<xsd:extension base="inter:QuestionResultType"> |
| 1524 |
<xsd:sequence> |
| 1525 |
<xsd:element name="answer" type="xsd:string" maxOccurs="1" nillable="true"> |
| 1526 |
<xsd:annotation> |
| 1527 |
<xsd:documentation>The string value of the answer to a |
| 1528 |
string_question.</xsd:documentation> |
| 1529 |
</xsd:annotation> |
| 1530 |
</xsd:element> |
| 1531 |
</xsd:sequence> |
| 1532 |
</xsd:extension> |
| 1533 |
</xsd:complexContent> |
| 1534 |
</xsd:complexType> |
| 1535 |
<xsd:simpleType name="ResultType"> |
| 1536 |
<xsd:annotation> |
| 1537 |
<xsd:documentation>The ResultType simple type defines acceptable result |
| 1538 |
values for questionnaires and test_actions.</xsd:documentation> |
| 1539 |
<xsd:documentation> |
| 1540 |
|| P | F | E | U | NT | NA || |
| 1541 |
---------------||-----------------------------||------------------||------------------------------------------ |
| 1542 |
|| 1+ | 0 | 0 | 0 | 0 | 0+ || Pass |
| 1543 |
|| 0+ | 1+ | 0+ | 0+ | 0+ | 0+ || Fail |
| 1544 |
AND || 0+ | 0 | 1+ | 0+ | 0+ | 0+ || Error |
| 1545 |
|| 0+ | 0 | 0 | 1+ | 0+ | 0+ || Unknown |
| 1546 |
|| 0+ | 0 | 0 | 0 | 1+ | 0+ || Not Tested |
| 1547 |
|| 0 | 0 | 0 | 0 | 0 | 1+ || Not Applicable |
| 1548 |
|| 0 | 0 | 0 | 0 | 0 | 0 || Not Tested |
| 1549 |
---------------||-----------------------------||------------------||------------------------------------------ |
| 1550 |
|| 1+ | 0+ | 0+ | 0+ | 0+ | 0+ || Pass |
| 1551 |
|| 0 | 1+ | 0 | 0 | 0 | 0+ || Fail |
| 1552 |
OR || 0 | 0+ | 1+ | 0+ | 0+ | 0+ || Error |
| 1553 |
|| 0 | 0+ | 0 | 1+ | 0+ | 0+ || Unknown |
| 1554 |
|| 0 | 0+ | 0 | 0 | 1+ | 0+ || Not Tested |
| 1555 |
|| 0 | 0 | 0 | 0 | 0 | 1+ || Not Applicable |
| 1556 |
|| 0 | 0 | 0 | 0 | 0 | 0 || Not Tested |
| 1557 |
</xsd:documentation> |
| 1558 |
</xsd:annotation> |
| 1559 |
<xsd:union memberTypes="inter:ExceptionalResultType"> |
| 1560 |
<xsd:simpleType> |
| 1561 |
<xsd:restriction base="xsd:token"> |
| 1562 |
<xsd:enumeration value="PASS"> |
| 1563 |
<xsd:annotation> |
| 1564 |
<xsd:documentation>A PASS value indicates that the check passed |
| 1565 |
its test.</xsd:documentation> |
| 1566 |
</xsd:annotation> |
| 1567 |
</xsd:enumeration> |
| 1568 |
<xsd:enumeration value="FAIL"> |
| 1569 |
<xsd:annotation> |
| 1570 |
<xsd:documentation>A FAIL value indicates that the check did not |
| 1571 |
pass its test.</xsd:documentation> |
| 1572 |
</xsd:annotation> |
| 1573 |
</xsd:enumeration> |
| 1574 |
</xsd:restriction> |
| 1575 |
</xsd:simpleType> |
| 1576 |
</xsd:union> |
| 1577 |
</xsd:simpleType> |
| 1578 |
<xsd:simpleType name="ExceptionalResultType"> |
| 1579 |
<xsd:annotation> |
| 1580 |
<xsd:documentation>The ExceptionalResultType type defines possible |
| 1581 |
exceptional results of a question.</xsd:documentation> |
| 1582 |
</xsd:annotation> |
| 1583 |
<xsd:restriction base="xsd:token"> |
| 1584 |
<xsd:enumeration value="UNKNOWN"> |
| 1585 |
<xsd:annotation> |
| 1586 |
<xsd:documentation>An UNKNOWN value indicates that the result of a |
| 1587 |
test cannot be determined.</xsd:documentation> |
| 1588 |
</xsd:annotation> |
| 1589 |
</xsd:enumeration> |
| 1590 |
<xsd:enumeration value="ERROR"> |
| 1591 |
<xsd:annotation> |
| 1592 |
<xsd:documentation>An ERROR value indicates that an error occurred |
| 1593 |
while processing the check.</xsd:documentation> |
| 1594 |
<xsd:documentation> Among other causes, this can indicate an |
| 1595 |
unexpected response. </xsd:documentation> |
| 1596 |
</xsd:annotation> |
| 1597 |
</xsd:enumeration> |
| 1598 |
<xsd:enumeration value="NOT_TESTED"> |
| 1599 |
<xsd:annotation> |
| 1600 |
<xsd:documentation>A NOT_TESTED value indicates that the check has not |
| 1601 |
been tested yet. </xsd:documentation> |
| 1602 |
</xsd:annotation> |
| 1603 |
</xsd:enumeration> |
| 1604 |
<xsd:enumeration value="NOT_APPLICABLE"> |
| 1605 |
<xsd:annotation> |
| 1606 |
<xsd:documentation>A NOT_APPLICABLE value indicates that the check is |
| 1607 |
not relevant and can be skipped.</xsd:documentation> |
| 1608 |
</xsd:annotation> |
| 1609 |
</xsd:enumeration> |
| 1610 |
</xsd:restriction> |
| 1611 |
</xsd:simpleType> |
| 1612 |
<xsd:simpleType name="UserResponseType"> |
| 1613 |
<xsd:annotation> |
| 1614 |
<xsd:documentation>The UserResponseType type defines structures containing |
| 1615 |
the type of response. The question could have been answered or an |
| 1616 |
exceptional condition may have occurred.</xsd:documentation> |
| 1617 |
</xsd:annotation> |
| 1618 |
<xsd:union memberTypes="inter:ExceptionalResultType"> |
| 1619 |
<xsd:simpleType> |
| 1620 |
<xsd:restriction base="xsd:token"> |
| 1621 |
<xsd:enumeration value="ANSWERED"> |
| 1622 |
<xsd:annotation> |
| 1623 |
<xsd:documentation>Indicates that the question was answered. |
| 1624 |
</xsd:documentation> |
| 1625 |
</xsd:annotation> |
| 1626 |
</xsd:enumeration> |
| 1627 |
</xsd:restriction> |
| 1628 |
</xsd:simpleType> |
| 1629 |
</xsd:union> |
| 1630 |
</xsd:simpleType> |
| 1631 |
<xsd:complexType name="ChoiceAnswerType"> |
| 1632 |
<xsd:annotation> |
| 1633 |
<xsd:documentation>The ChoiceAnswerType type defines structures containing a |
| 1634 |
choice_ref attribute that identifies the selected choice. |
| 1635 |
</xsd:documentation> |
| 1636 |
</xsd:annotation> |
| 1637 |
<xsd:attribute name="choice_ref" type="inter:ChoiceIDPattern"> |
| 1638 |
<xsd:annotation> |
| 1639 |
<xsd:documentation>The choice_ref attribute specifies the id of the |
| 1640 |
selected choice.</xsd:documentation> |
| 1641 |
</xsd:annotation> |
| 1642 |
</xsd:attribute> |
| 1643 |
</xsd:complexType> |
| 1644 |
|
| 1645 |
|
| 1646 |
|
| 1647 |
|
| 1648 |
<xsd:complexType name="ArtifactsType"> |
| 1649 |
<xsd:annotation> |
| 1650 |
<xsd:documentation>The ArtifactsType type defines structures containing a |
| 1651 |
set of artifact elements.</xsd:documentation> |
| 1652 |
</xsd:annotation> |
| 1653 |
<xsd:sequence> |
| 1654 |
<xsd:element name="artifact" type="inter:ArtifactType" minOccurs="1" maxOccurs="unbounded"> |
| 1655 |
<xsd:annotation> |
| 1656 |
<xsd:documentation>An artifact element holds information about an |
| 1657 |
artifact, which is evidence supporting an answer. Examples include |
| 1658 |
a file or submitted text.</xsd:documentation> |
| 1659 |
</xsd:annotation> |
| 1660 |
</xsd:element> |
| 1661 |
</xsd:sequence> |
| 1662 |
</xsd:complexType> |
| 1663 |
<xsd:complexType name="ArtifactType"> |
| 1664 |
<xsd:annotation> |
| 1665 |
<xsd:documentation>The ArtifactType type defines structures containing |
| 1666 |
information about an artifact such as title, description, persistence, |
| 1667 |
and if it's required to complete an answer to a question.</xsd:documentation> |
| 1668 |
</xsd:annotation> |
| 1669 |
<xsd:complexContent> |
| 1670 |
<xsd:extension base="inter:ItemBaseType"> |
| 1671 |
<xsd:sequence> |
| 1672 |
<xsd:element name="title" type="inter:TextType" minOccurs="1" maxOccurs="1"> |
| 1673 |
<xsd:annotation> |
| 1674 |
<xsd:documentation>The title element holds a short summary or a |
| 1675 |
caption about the artifact.</xsd:documentation> |
| 1676 |
</xsd:annotation> |
| 1677 |
</xsd:element> |
| 1678 |
<xsd:element name="description" type="inter:TextType" minOccurs="1" maxOccurs="1"> |
| 1679 |
<xsd:annotation> |
| 1680 |
<xsd:documentation>The description element holds information that |
| 1681 |
describes what the artifact is about.</xsd:documentation> |
| 1682 |
</xsd:annotation> |
| 1683 |
</xsd:element> |
| 1684 |
</xsd:sequence> |
| 1685 |
<xsd:attribute name="id" type="inter:ArtifactIDPattern" use="required"> |
| 1686 |
<xsd:annotation> |
| 1687 |
<xsd:documentation> Each item is required to have a unique identifier |
| 1688 |
that conforms to the definition of NCName in the Recommendation |
| 1689 |
"Namespaces in XML 1.0", i.e., all XML 1.0 names that do not contain |
| 1690 |
colons. </xsd:documentation> |
| 1691 |
</xsd:annotation> |
| 1692 |
</xsd:attribute> |
| 1693 |
<xsd:attribute name="persistent" type="xsd:boolean" use="optional" default="true"> |
| 1694 |
<xsd:annotation> |
| 1695 |
<xsd:documentation>The persistent attribute specifies whether the |
| 1696 |
artifact is time sensitive or not. If the value is true, then a |
| 1697 |
snapshot or a copy must be kept. Otherwise, a pointer to the location |
| 1698 |
of the artifact is enough. The default value is |
| 1699 |
true.</xsd:documentation> |
| 1700 |
</xsd:annotation> |
| 1701 |
</xsd:attribute> |
| 1702 |
</xsd:extension> |
| 1703 |
</xsd:complexContent> |
| 1704 |
</xsd:complexType> |
| 1705 |
<xsd:complexType name="ArtifactRefsType"> |
| 1706 |
<xsd:annotation> |
| 1707 |
<xsd:documentation>The ArtifactRefsType type defines a collection of artifact |
| 1708 |
references that may be collected as part of a questionnaire |
| 1709 |
assessment.</xsd:documentation> |
| 1710 |
</xsd:annotation> |
| 1711 |
<xsd:sequence> |
| 1712 |
<xsd:element name="artifact_ref" type="inter:ArtifactRefType" maxOccurs="unbounded"> |
| 1713 |
<xsd:annotation> |
| 1714 |
<xsd:documentation>A single reference to an artifact.</xsd:documentation> |
| 1715 |
</xsd:annotation> |
| 1716 |
</xsd:element> |
| 1717 |
</xsd:sequence> |
| 1718 |
</xsd:complexType> |
| 1719 |
<xsd:complexType name="ArtifactRefType"> |
| 1720 |
<xsd:annotation> |
| 1721 |
<xsd:documentation>The ArtifactRefType type defines a single artifact reference |
| 1722 |
that may be collected as part of a questionnaire assessment.</xsd:documentation> |
| 1723 |
</xsd:annotation> |
| 1724 |
<xsd:attribute name="idref" type="inter:ArtifactIDPattern"> |
| 1725 |
<xsd:annotation> |
| 1726 |
<xsd:documentation>The identifier of a referenced artifact.</xsd:documentation> |
| 1727 |
</xsd:annotation> |
| 1728 |
</xsd:attribute> |
| 1729 |
<xsd:attribute name="required" type="xsd:boolean" use="optional" default="false"> |
| 1730 |
<xsd:annotation> |
| 1731 |
<xsd:documentation>The required element specifies whether the artifact |
| 1732 |
must be included or not. If true, then it must be included. The |
| 1733 |
questionnaire is not considered complete without it. Otherwise, it is |
| 1734 |
desired but not necessary.</xsd:documentation> |
| 1735 |
</xsd:annotation> |
| 1736 |
</xsd:attribute> |
| 1737 |
</xsd:complexType> |
| 1738 |
<xsd:complexType name="ArtifactResultsType"> |
| 1739 |
<xsd:annotation> |
| 1740 |
<xsd:documentation>The ArtifactResultsType type defines structures |
| 1741 |
containing a set of artifact_result elements.</xsd:documentation> |
| 1742 |
</xsd:annotation> |
| 1743 |
<xsd:sequence> |
| 1744 |
<xsd:element name="artifact_result" type="inter:ArtifactResultType" minOccurs="1" maxOccurs="unbounded"> |
| 1745 |
<xsd:annotation> |
| 1746 |
<xsd:documentation>The artifact_result element contains an artifact, |
| 1747 |
its value, who submitted it, and who provided |
| 1748 |
it.</xsd:documentation> |
| 1749 |
</xsd:annotation> |
| 1750 |
</xsd:element> |
| 1751 |
</xsd:sequence> |
| 1752 |
</xsd:complexType> |
| 1753 |
|
| 1754 |
|
| 1755 |
<xsd:complexType name="ArtifactValueType"> |
| 1756 |
<xsd:annotation> |
| 1757 |
<xsd:documentation>The ArtifactValueType type defines structures containing |
| 1758 |
either the artifact data itself or a pointer to it.</xsd:documentation> |
| 1759 |
</xsd:annotation> |
| 1760 |
</xsd:complexType> |
| 1761 |
<xsd:element name="artifact_value" type="inter:ArtifactValueType" abstract="true"> |
| 1762 |
<xsd:annotation> |
| 1763 |
<xsd:documentation>The artifact_value element contains either a piece of |
| 1764 |
artifact data itself or a pointer to it.</xsd:documentation> |
| 1765 |
</xsd:annotation> |
| 1766 |
</xsd:element> |
| 1767 |
|
| 1768 |
<xsd:complexType name="EmbeddedArtifactValueType"> |
| 1769 |
<xsd:annotation> |
| 1770 |
<xsd:documentation>The base data structure that holds artifact values that |
| 1771 |
are embedded into the results model.</xsd:documentation> |
| 1772 |
</xsd:annotation> |
| 1773 |
<xsd:complexContent> |
| 1774 |
<xsd:extension base="inter:ArtifactValueType"> |
| 1775 |
<xsd:attribute name="mime_type" type="xsd:string" use="required"> |
| 1776 |
<xsd:annotation> |
| 1777 |
<xsd:documentation>The MIME type of the embedded content. Since the |
| 1778 |
list of MIME types are continually expanding, this schema |
| 1779 |
does not make an attempt to constrain the allowed |
| 1780 |
values.</xsd:documentation> |
| 1781 |
</xsd:annotation> |
| 1782 |
</xsd:attribute> |
| 1783 |
</xsd:extension> |
| 1784 |
</xsd:complexContent> |
| 1785 |
</xsd:complexType> |
| 1786 |
<xsd:complexType name="TextArtifactValueType"> |
| 1787 |
<xsd:annotation> |
| 1788 |
<xsd:documentation>The data model that holds text-based artifacts.</xsd:documentation> |
| 1789 |
</xsd:annotation> |
| 1790 |
<xsd:complexContent> |
| 1791 |
<xsd:extension base="inter:EmbeddedArtifactValueType"> |
| 1792 |
<xsd:sequence> |
| 1793 |
<xsd:element name="data" type="xsd:string"> |
| 1794 |
<xsd:annotation> |
| 1795 |
<xsd:documentation>The data element contains the text of an |
| 1796 |
artifact that was provided as a text file or a block of |
| 1797 |
text.</xsd:documentation> |
| 1798 |
</xsd:annotation> |
| 1799 |
</xsd:element> |
| 1800 |
</xsd:sequence> |
| 1801 |
</xsd:extension> |
| 1802 |
</xsd:complexContent> |
| 1803 |
</xsd:complexType> |
| 1804 |
<xsd:element name="text_artifact_value" type="inter:TextArtifactValueType" substitutionGroup="inter:artifact_value"> |
| 1805 |
<xsd:annotation> |
| 1806 |
<xsd:documentation>The text_artifact_value element contains an artifact |
| 1807 |
that was provided as a text file or a block of text.</xsd:documentation> |
| 1808 |
</xsd:annotation> |
| 1809 |
</xsd:element> |
| 1810 |
|
| 1811 |
<xsd:complexType name="BinaryArtifactValueType"> |
| 1812 |
<xsd:annotation> |
| 1813 |
<xsd:documentation>The data model that holds binary data-based artifacts.</xsd:documentation> |
| 1814 |
</xsd:annotation> |
| 1815 |
<xsd:complexContent> |
| 1816 |
<xsd:extension base="inter:EmbeddedArtifactValueType"> |
| 1817 |
<xsd:sequence> |
| 1818 |
<xsd:element name="data" type="xsd:base64Binary"> |
| 1819 |
<xsd:annotation> |
| 1820 |
<xsd:documentation>The data element contains a binary file, |
| 1821 |
which was provided as an artifact.</xsd:documentation> |
| 1822 |
</xsd:annotation> |
| 1823 |
</xsd:element> |
| 1824 |
</xsd:sequence> |
| 1825 |
</xsd:extension> |
| 1826 |
</xsd:complexContent> |
| 1827 |
</xsd:complexType> |
| 1828 |
<xsd:element name="binary_artifact_value" type="inter:BinaryArtifactValueType" substitutionGroup="inter:artifact_value"> |
| 1829 |
<xsd:annotation> |
| 1830 |
<xsd:documentation>The binary_artifact_value element contains an artifact |
| 1831 |
that was provided as a binary file.</xsd:documentation> |
| 1832 |
</xsd:annotation> |
| 1833 |
</xsd:element> |
| 1834 |
|
| 1835 |
<xsd:complexType name="ReferenceArtifactValueType"> |
| 1836 |
<xsd:annotation> |
| 1837 |
<xsd:documentation>The data model that references external artifacts.</xsd:documentation> |
| 1838 |
</xsd:annotation> |
| 1839 |
<xsd:complexContent> |
| 1840 |
<xsd:extension base="inter:ArtifactValueType"> |
| 1841 |
<xsd:sequence> |
| 1842 |
<xsd:element name="reference"> |
| 1843 |
<xsd:annotation> |
| 1844 |
<xsd:documentation>The reference element contains a URI, which |
| 1845 |
is a pointer to the location of an artifact.</xsd:documentation> |
| 1846 |
</xsd:annotation> |
| 1847 |
<xsd:complexType> |
| 1848 |
<xsd:attribute name="href" type="xsd:anyURI"> |
| 1849 |
<xsd:annotation> |
| 1850 |
<xsd:documentation>The href attribute specifies a URI |
| 1851 |
provided by the user.</xsd:documentation> |
| 1852 |
</xsd:annotation> |
| 1853 |
</xsd:attribute> |
| 1854 |
</xsd:complexType> |
| 1855 |
</xsd:element> |
| 1856 |
</xsd:sequence> |
| 1857 |
</xsd:extension> |
| 1858 |
</xsd:complexContent> |
| 1859 |
</xsd:complexType> |
| 1860 |
<xsd:element name="reference_artifact_value" type="inter:ReferenceArtifactValueType" substitutionGroup="inter:artifact_value"> |
| 1861 |
<xsd:annotation> |
| 1862 |
<xsd:documentation>The reference_artifact_value element contains a reference |
| 1863 |
to the location of an artifact.</xsd:documentation> |
| 1864 |
</xsd:annotation> |
| 1865 |
</xsd:element> |
| 1866 |
|
| 1867 |
<xsd:complexType name="ArtifactResultType"> |
| 1868 |
<xsd:annotation> |
| 1869 |
<xsd:documentation>The ArtifactResultType type defines structures containing |
| 1870 |
information about the submitted artifact, its value, who provided and |
| 1871 |
submitted it, and when it was submitted.</xsd:documentation> |
| 1872 |
</xsd:annotation> |
| 1873 |
<xsd:sequence> |
| 1874 |
<xsd:element ref="inter:artifact_value" minOccurs="1" maxOccurs="1"> |
| 1875 |
<xsd:annotation> |
| 1876 |
<xsd:documentation>The artifact_value element contains either the artifact data |
| 1877 |
itself or a pointer to it.</xsd:documentation> |
| 1878 |
</xsd:annotation> |
| 1879 |
</xsd:element> |
| 1880 |
<xsd:element name="provider" type="inter:ProviderValuePattern" minOccurs="1" maxOccurs="1"> |
| 1881 |
<xsd:annotation> |
| 1882 |
<xsd:documentation>The provider element contains information about the |
| 1883 |
user or system that provided the artifact.</xsd:documentation> |
| 1884 |
</xsd:annotation> |
| 1885 |
</xsd:element> |
| 1886 |
<xsd:element name="submitter" type="inter:UserType" minOccurs="1" maxOccurs="1"> |
| 1887 |
<xsd:annotation> |
| 1888 |
<xsd:documentation>The submitter element contains information about |
| 1889 |
the user who submitted the artifact.</xsd:documentation> |
| 1890 |
</xsd:annotation> |
| 1891 |
</xsd:element> |
| 1892 |
</xsd:sequence> |
| 1893 |
<xsd:attribute name="artifact_ref" type="inter:ArtifactIDPattern" use="required"> |
| 1894 |
<xsd:annotation> |
| 1895 |
<xsd:documentation>The artifact_ref holds the unique identifier of the |
| 1896 |
artifact object that describes what the artifact is about, the type of |
| 1897 |
data it holds, and other metadata.</xsd:documentation> |
| 1898 |
</xsd:annotation> |
| 1899 |
</xsd:attribute> |
| 1900 |
<xsd:attribute name="timestamp" type="xsd:dateTime" use="required"> |
| 1901 |
<xsd:annotation> |
| 1902 |
<xsd:documentation>The timestamp attribute holds the date and time when |
| 1903 |
the artifact was collected.</xsd:documentation> |
| 1904 |
</xsd:annotation> |
| 1905 |
</xsd:attribute> |
| 1906 |
</xsd:complexType> |
| 1907 |
|
| 1908 |
|
| 1909 |
|
| 1910 |
|
| 1911 |
<xsd:complexType name="TargetsType"> |
| 1912 |
<xsd:annotation> |
| 1913 |
<xsd:documentation>The TargetsType type defines structures containing a set |
| 1914 |
of target elements.</xsd:documentation> |
| 1915 |
</xsd:annotation> |
| 1916 |
<xsd:sequence> |
| 1917 |
<xsd:element ref="inter:target" minOccurs="1" maxOccurs="unbounded"> |
| 1918 |
<xsd:annotation> |
| 1919 |
<xsd:documentation>A target element describes the user, system, or |
| 1920 |
role that applies to all questionnaires in scope. For instance, |
| 1921 |
specifying that user Joe Smith should complete this document; |
| 1922 |
applies to system with ip address of 123.45.67.89; applies to all |
| 1923 |
systems functioning as (role) web servers; or all (role) |
| 1924 |
administrators should complete this document. </xsd:documentation> |
| 1925 |
</xsd:annotation> |
| 1926 |
</xsd:element> |
| 1927 |
</xsd:sequence> |
| 1928 |
</xsd:complexType> |
| 1929 |
<xsd:complexType name="UserType"> |
| 1930 |
<xsd:annotation> |
| 1931 |
<xsd:documentation>The UserType type defines structures containing |
| 1932 |
information about a user such as name, organization, position, email, and |
| 1933 |
role.</xsd:documentation> |
| 1934 |
</xsd:annotation> |
| 1935 |
<xsd:complexContent> |
| 1936 |
<xsd:extension base="inter:NamedItemBaseType"> |
| 1937 |
<xsd:sequence> |
| 1938 |
<xsd:element name="organization" type="xsd:normalizedString" minOccurs="0" maxOccurs="unbounded"> |
| 1939 |
<xsd:annotation> |
| 1940 |
<xsd:documentation>The organization element specifies the |
| 1941 |
company or institution that the user belongs |
| 1942 |
to.</xsd:documentation> |
| 1943 |
</xsd:annotation> |
| 1944 |
</xsd:element> |
| 1945 |
<xsd:element name="position" type="xsd:normalizedString" minOccurs="0" maxOccurs="unbounded"> |
| 1946 |
<xsd:annotation> |
| 1947 |
<xsd:documentation>The position element holds the job title or |
| 1948 |
the position of the user within his/her |
| 1949 |
organization.</xsd:documentation> |
| 1950 |
</xsd:annotation> |
| 1951 |
</xsd:element> |
| 1952 |
<xsd:element name="email" type="xsd:token" minOccurs="0" maxOccurs="unbounded"> |
| 1953 |
<xsd:annotation> |
| 1954 |
<xsd:documentation>The email element holds the email address |
| 1955 |
where the user can be contacted.</xsd:documentation> |
| 1956 |
<xsd:documentation>TODO: define an email pattern</xsd:documentation> |
| 1957 |
</xsd:annotation> |
| 1958 |
</xsd:element> |
| 1959 |
</xsd:sequence> |
| 1960 |
</xsd:extension> |
| 1961 |
</xsd:complexContent> |
| 1962 |
</xsd:complexType> |
| 1963 |
<xsd:complexType name="SystemTargetType"> |
| 1964 |
<xsd:annotation> |
| 1965 |
<xsd:documentation>The SystemTargetType type defines structures containing |
| 1966 |
information about the organization it belongs to, a set of ip addresses |
| 1967 |
of computers/networks included in the system, descrioption about it, and |
| 1968 |
the roles it performs.</xsd:documentation> |
| 1969 |
</xsd:annotation> |
| 1970 |
<xsd:complexContent> |
| 1971 |
<xsd:extension base="inter:NamedItemBaseType"> |
| 1972 |
<xsd:sequence> |
| 1973 |
<xsd:element name="organization" type="xsd:string" minOccurs="0" maxOccurs="1"> |
| 1974 |
<xsd:annotation> |
| 1975 |
<xsd:documentation>The organization element specifies what |
| 1976 |
company or institution the system belongs |
| 1977 |
to.</xsd:documentation> |
| 1978 |
</xsd:annotation> |
| 1979 |
</xsd:element> |
| 1980 |
<xsd:element name="ipaddress" type="xsd:string" minOccurs="0" maxOccurs="unbounded"> |
| 1981 |
<xsd:annotation> |
| 1982 |
<xsd:documentation>The ipaddress element holds the ip address of |
| 1983 |
a target computer/network.</xsd:documentation> |
| 1984 |
<xsd:documentation>TODO: define an IPv4/v6 address pattern</xsd:documentation> |
| 1985 |
</xsd:annotation> |
| 1986 |
</xsd:element> |
| 1987 |
<xsd:element name="description" type="inter:TextType" minOccurs="0" maxOccurs="1"> |
| 1988 |
<xsd:annotation> |
| 1989 |
<xsd:documentation>The description element holds information on |
| 1990 |
what the target system is about.</xsd:documentation> |
| 1991 |
</xsd:annotation> |
| 1992 |
</xsd:element> |
| 1993 |
</xsd:sequence> |
| 1994 |
</xsd:extension> |
| 1995 |
</xsd:complexContent> |
| 1996 |
</xsd:complexType> |
| 1997 |
|
| 1998 |
|
| 1999 |
|
| 2000 |
|
| 2001 |
<xsd:complexType name="VariablesType"> |
| 2002 |
<xsd:annotation> |
| 2003 |
<xsd:documentation>The VariablesType type defines structures containing a |
| 2004 |
set of variables.</xsd:documentation> |
| 2005 |
</xsd:annotation> |
| 2006 |
<xsd:sequence> |
| 2007 |
<xsd:element ref="inter:variable" minOccurs="1" maxOccurs="unbounded"> |
| 2008 |
<xsd:annotation> |
| 2009 |
<xsd:documentation>A variable element holds a value defined by the |
| 2010 |
author, a value based on a question's answer, or a value from an |
| 2011 |
external source.</xsd:documentation> |
| 2012 |
</xsd:annotation> |
| 2013 |
</xsd:element> |
| 2014 |
</xsd:sequence> |
| 2015 |
</xsd:complexType> |
| 2016 |
<xsd:complexType name="VariableType"> |
| 2017 |
<xsd:annotation> |
| 2018 |
<xsd:documentation>The VariableType type defines structures used to hold a |
| 2019 |
single value.</xsd:documentation> |
| 2020 |
</xsd:annotation> |
| 2021 |
<xsd:complexContent> |
| 2022 |
<xsd:extension base="inter:ItemBaseType"> |
| 2023 |
<xsd:sequence> |
| 2024 |
<xsd:element name="description" type="inter:TextType" minOccurs="0" maxOccurs="1"> |
| 2025 |
<xsd:annotation> |
| 2026 |
<xsd:documentation>The description element holds information |
| 2027 |
that describes the value stored on the variable.</xsd:documentation> |
| 2028 |
</xsd:annotation> |
| 2029 |
</xsd:element> |
| 2030 |
</xsd:sequence> |
| 2031 |
<xsd:attribute name="id" type="inter:VariableIDPattern" use="required"> |
| 2032 |
<xsd:annotation> |
| 2033 |
<xsd:documentation>Each item is required to have a unique |
| 2034 |
identifier that conforms to the definition of NCName in the |
| 2035 |
Recommendation "Namespaces in XML 1.0", i.e., all XML 1.0 names |
| 2036 |
that do not contain colons.</xsd:documentation> |
| 2037 |
</xsd:annotation> |
| 2038 |
</xsd:attribute> |
| 2039 |
<xsd:attribute name="datatype" type="inter:VariableDataType" use="required"> |
| 2040 |
<xsd:annotation> |
| 2041 |
<xsd:documentation>The datatype attribute specifies how to treat |
| 2042 |
the variable's value. It can be TEXT or |
| 2043 |
NUMERIC.</xsd:documentation> |
| 2044 |
</xsd:annotation> |
| 2045 |
</xsd:attribute> |
| 2046 |
</xsd:extension> |
| 2047 |
</xsd:complexContent> |
| 2048 |
</xsd:complexType> |
| 2049 |
<xsd:complexType name="ConstantVariableType"> |
| 2050 |
<xsd:annotation> |
| 2051 |
<xsd:documentation>The ConstantVariableType type defines structures |
| 2052 |
containing a value defined by the author of the |
| 2053 |
document.</xsd:documentation> |
| 2054 |
</xsd:annotation> |
| 2055 |
<xsd:complexContent> |
| 2056 |
<xsd:extension base="inter:VariableType"> |
| 2057 |
<xsd:sequence> |
| 2058 |
<xsd:element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"> |
| 2059 |
<xsd:annotation> |
| 2060 |
<xsd:documentation>The value element holds the data stored on |
| 2061 |
the variable.</xsd:documentation> |
| 2062 |
</xsd:annotation> |
| 2063 |
</xsd:element> |
| 2064 |
</xsd:sequence> |
| 2065 |
</xsd:extension> |
| 2066 |
</xsd:complexContent> |
| 2067 |
</xsd:complexType> |
| 2068 |
<xsd:complexType name="LocalVariableType"> |
| 2069 |
<xsd:annotation> |
| 2070 |
<xsd:documentation>The LocalVariableType type defines structures containing |
| 2071 |
a value determined during evaluation. The value is determined based on |
| 2072 |
the answer to the linked question. If one or more set elements are present, the |
| 2073 |
value is computed based on those set elements. The value stored in the first |
| 2074 |
set element that produces a match pattern is used. If none of the set elements |
| 2075 |
have a pattern that matches the response, then an error result is generated. |
| 2076 |
|
| 2077 |
If no set element is provided, the value used will be the same as the |
| 2078 |
answer, with a few exceptions. The mappings are listed below. |
| 2079 |
1) If the question is a boolean question and the variable data type is |
| 2080 |
NUMERIC, then the value based on the answer must be 1 for true and 0 for |
| 2081 |
false. |
| 2082 |
2) If the question is a boolean question and the variable data type is TEXT, |
| 2083 |
then the value is determined by the question's model as follows: |
| 2084 |
a) MODEL_YES_NO: the value must be yes if true or no if false. |
| 2085 |
b) MODEL_TRUE_FALSE: the value must be true if true or false if false. |
| 2086 |
3) If the question is a choice question, the variable data type must be TEXT |
| 2087 |
and the value must be set to the text value of the choice. |
| 2088 |
4) If the question is a numeric question, the variable data type must be NUMERIC |
| 2089 |
and the value must be set to the value of the answer. |
| 2090 |
5) If the question is a string question, the variable data type must be TEXT |
| 2091 |
and the value must be set to the value of the answer.</xsd:documentation> |
| 2092 |
<xsd:documentation>If a local variable is referenced and the value cannot be |
| 2093 |
determined, then the referencing question or test action should cause an ERROR |
| 2094 |
result to be generated by all referencing test actions.</xsd:documentation> |
| 2095 |
</xsd:annotation> |
| 2096 |
<xsd:complexContent> |
| 2097 |
<xsd:extension base="inter:VariableType"> |
| 2098 |
<xsd:sequence> |
| 2099 |
<xsd:element name="set" minOccurs="0" maxOccurs="1"> |
| 2100 |
<xsd:annotation> |
| 2101 |
<xsd:documentation>The set element contains information |
| 2102 |
describing how to compute the value to be stored on the |
| 2103 |
variable. It holds the patterns, choice_refs, range or boolean |
| 2104 |
values to be matched with the answer to the linked question; |
| 2105 |
and the appropriate value to be stored on the variable based |
| 2106 |
on the match.</xsd:documentation> |
| 2107 |
</xsd:annotation> |
| 2108 |
</xsd:element> |
| 2109 |
</xsd:sequence> |
| 2110 |
<xsd:attribute name="question_ref" type="inter:QuestionIDPattern" use="required"> |
| 2111 |
<xsd:annotation> |
| 2112 |
<xsd:documentation>The question_ref attribute holds the unique |
| 2113 |
identifier of the question in which the variable is linked. |
| 2114 |
</xsd:documentation> |
| 2115 |
</xsd:annotation> |
| 2116 |
</xsd:attribute> |
| 2117 |
</xsd:extension> |
| 2118 |
</xsd:complexContent> |
| 2119 |
</xsd:complexType> |
| 2120 |
<xsd:complexType name="ExternalVariableType"> |
| 2121 |
<xsd:annotation> |
| 2122 |
<xsd:documentation>The ExternalVariableType type defines structures |
| 2123 |
containing a value defined elsewhere or some external |
| 2124 |
source.</xsd:documentation> |
| 2125 |
</xsd:annotation> |
| 2126 |
<xsd:complexContent> |
| 2127 |
<xsd:extension base="inter:VariableType"/> |
| 2128 |
</xsd:complexContent> |
| 2129 |
</xsd:complexType> |
| 2130 |
<xsd:complexType name="SetExpressionBaseType" abstract="true"> |
| 2131 |
<xsd:annotation> |
| 2132 |
<xsd:documentation>The SetExpressionBaseType type is the base type of all set |
| 2133 |
expressions. It defines the value to use if the expression evaluates to |
| 2134 |
TRUE.</xsd:documentation> |
| 2135 |
</xsd:annotation> |
| 2136 |
<xsd:sequence> |
| 2137 |
<xsd:element name="value"> |
| 2138 |
<xsd:annotation> |
| 2139 |
<xsd:documentation>The value element contains the data to be stored on |
| 2140 |
the variable if the expression evaluates to TRUE.</xsd:documentation> |
| 2141 |
</xsd:annotation> |
| 2142 |
</xsd:element> |
| 2143 |
</xsd:sequence> |
| 2144 |
</xsd:complexType> |
| 2145 |
<xsd:element name="expression" type="inter:SetExpressionBaseType" abstract="true"> |
| 2146 |
<xsd:annotation> |
| 2147 |
<xsd:documentation>The expression element provides a substitution for a variety |
| 2148 |
of expressions that can be used to compute a variable value.</xsd:documentation> |
| 2149 |
</xsd:annotation> |
| 2150 |
</xsd:element> |
| 2151 |
|
| 2152 |
<xsd:complexType name="SetExpressionPatternType"> |
| 2153 |
<xsd:complexContent> |
| 2154 |
<xsd:annotation> |
| 2155 |
<xsd:documentation>The SetExpressionPatternType type defines criteria for |
| 2156 |
evaluating the result of a question answer as a string. If the pattern |
| 2157 |
matches, the expression must evaluate to TRUE.</xsd:documentation> |
| 2158 |
</xsd:annotation> |
| 2159 |
<xsd:extension base="inter:SetExpressionBaseType"> |
| 2160 |
<xsd:attribute name="pattern" type="xsd:string" use="required"> |
| 2161 |
<xsd:annotation> |
| 2162 |
<xsd:documentation>The pattern attribute is a string representation |
| 2163 |
of the pattern to be matched.</xsd:documentation> |
| 2164 |
</xsd:annotation> |
| 2165 |
</xsd:attribute> |
| 2166 |
</xsd:extension> |
| 2167 |
</xsd:complexContent> |
| 2168 |
</xsd:complexType> |
| 2169 |
<xsd:element name="when_pattern" type="inter:SetExpressionPatternType" substitutionGroup="inter:expression"> |
| 2170 |
<xsd:annotation> |
| 2171 |
<xsd:documentation>The when_pattern element type defines criteria for |
| 2172 |
evaluating the result of a numeric or string question result based on |
| 2173 |
a pattern. If the pattern matches, the expression must evaluate |
| 2174 |
to TRUE.</xsd:documentation> |
| 2175 |
</xsd:annotation> |
| 2176 |
</xsd:element> |
| 2177 |
|
| 2178 |
<xsd:complexType name="SetExpressionChoiceType"> |
| 2179 |
<xsd:complexContent> |
| 2180 |
<xsd:annotation> |
| 2181 |
<xsd:documentation>The SetExpressionChoiceType type defines criteria for |
| 2182 |
evaluating the result of a question answer based on the choice made. If the |
| 2183 |
referenced choice is selected the expression must evaluate to TRUE.</xsd:documentation> |
| 2184 |
</xsd:annotation> |
| 2185 |
<xsd:extension base="inter:SetExpressionBaseType"> |
| 2186 |
<xsd:attribute name="choice_ref" type="inter:ChoiceIDPattern" use="required"> |
| 2187 |
<xsd:annotation> |
| 2188 |
<xsd:documentation>The choice_ref attribute is a reference to the choice |
| 2189 |
associated with the question.</xsd:documentation> |
| 2190 |
</xsd:annotation> |
| 2191 |
</xsd:attribute> |
| 2192 |
</xsd:extension> |
| 2193 |
</xsd:complexContent> |
| 2194 |
</xsd:complexType> |
| 2195 |
<xsd:element name="when_choice" type="inter:SetExpressionChoiceType" substitutionGroup="inter:expression"> |
| 2196 |
<xsd:annotation> |
| 2197 |
<xsd:documentation>The when_choice element type defines criteria for |
| 2198 |
evaluating the result of a choice question result based on the answer selected. |
| 2199 |
If the choice_ref matches identifier of the selected choice, the expression must |
| 2200 |
evaluate to TRUE.</xsd:documentation> |
| 2201 |
</xsd:annotation> |
| 2202 |
</xsd:element> |
| 2203 |
|
| 2204 |
<xsd:complexType name="SetExpressionRangeType"> |
| 2205 |
<xsd:complexContent> |
| 2206 |
<xsd:annotation> |
| 2207 |
<xsd:documentation>The SetExpressionRangeType type defines criteria for |
| 2208 |
evaluating the result of a question answer based on the decimal value entered. If the |
| 2209 |
answer is within the range (inclusive) the expression must evaluate to TRUE.</xsd:documentation> |
| 2210 |
</xsd:annotation> |
| 2211 |
<xsd:extension base="inter:SetExpressionBaseType"> |
| 2212 |
<xsd:attribute name="min" type="xsd:decimal" use="required"> |
| 2213 |
<xsd:annotation> |
| 2214 |
<xsd:documentation>The minimum decimal value of the range (inclusive).</xsd:documentation> |
| 2215 |
</xsd:annotation> |
| 2216 |
</xsd:attribute> |
| 2217 |
<xsd:attribute name="max" type="xsd:decimal" use="required"> |
| 2218 |
<xsd:annotation> |
| 2219 |
<xsd:documentation>The maximum decimal value of the range (inclusive).</xsd:documentation> |
| 2220 |
</xsd:annotation> |
| 2221 |
</xsd:attribute> |
| 2222 |
</xsd:extension> |
| 2223 |
</xsd:complexContent> |
| 2224 |
</xsd:complexType> |
| 2225 |
<xsd:element name="when_range" type="inter:SetExpressionRangeType" substitutionGroup="inter:expression"> |
| 2226 |
<xsd:annotation> |
| 2227 |
<xsd:documentation>The when_range element type defines criteria for |
| 2228 |
evaluating the result of a numeric question result based on the answer selected. |
| 2229 |
If the answer is within the range (inclusive), the expression must |
| 2230 |
evaluate to TRUE.</xsd:documentation> |
| 2231 |
</xsd:annotation> |
| 2232 |
</xsd:element> |
| 2233 |
|
| 2234 |
<xsd:complexType name="SetExpressionBooleanType"> |
| 2235 |
<xsd:complexContent> |
| 2236 |
<xsd:annotation> |
| 2237 |
<xsd:documentation>The SetExpressionBooleanType type defines criteria for |
| 2238 |
evaluating the result of a question answer based on the boolean value entered. If the |
| 2239 |
answer matches the expression must evaluate to TRUE.</xsd:documentation> |
| 2240 |
</xsd:annotation> |
| 2241 |
<xsd:extension base="inter:SetExpressionBaseType"> |
| 2242 |
<xsd:attribute name="value" type="xsd:boolean" use="required"> |
| 2243 |
<xsd:annotation> |
| 2244 |
<xsd:documentation>The boolean value to match.</xsd:documentation> |
| 2245 |
</xsd:annotation> |
| 2246 |
</xsd:attribute> |
| 2247 |
</xsd:extension> |
| 2248 |
</xsd:complexContent> |
| 2249 |
</xsd:complexType> |
| 2250 |
<xsd:element name="when_boolean" type="inter:SetExpressionBooleanType" substitutionGroup="inter:expression"> |
| 2251 |
<xsd:annotation> |
| 2252 |
<xsd:documentation>The when_boolean element type defines criteria for |
| 2253 |
evaluating the result of a boolean question result based on the answer selected. |
| 2254 |
If the answer matches, the expression must |
| 2255 |
evaluate to TRUE.</xsd:documentation> |
| 2256 |
</xsd:annotation> |
| 2257 |
</xsd:element> |
| 2258 |
|
| 2259 |
<xsd:complexType name="VariableSetType"> |
| 2260 |
<xsd:annotation> |
| 2261 |
<xsd:documentation>The VariableSetType type defines structures containing |
| 2262 |
information describing how to compute a variable value. It holds the |
| 2263 |
patterns, choice_refs, range, or boolean values to be matched; and the |
| 2264 |
appropriate value to be stored on the variable based on the |
| 2265 |
match.</xsd:documentation> |
| 2266 |
</xsd:annotation> |
| 2267 |
<xsd:sequence> |
| 2268 |
<xsd:element ref="inter:expression" maxOccurs="unbounded"> |
| 2269 |
<xsd:annotation> |
| 2270 |
<xsd:documentation>The expression element provides a substitution for a variety |
| 2271 |
of expressions that can be used to compute a variable value. Each expression |
| 2272 |
must be evaluated in order until one expression matches. The computed value |
| 2273 |
of the set is the value of first expression that matches.</xsd:documentation> |
| 2274 |
</xsd:annotation> |
| 2275 |
</xsd:element> |
| 2276 |
</xsd:sequence> |
| 2277 |
</xsd:complexType> |
| 2278 |
<xsd:simpleType name="VariableDataType"> |
| 2279 |
<xsd:annotation> |
| 2280 |
<xsd:documentation>The VariableDataType simple type defines how a variable |
| 2281 |
data value should be treated or used.</xsd:documentation> |
| 2282 |
</xsd:annotation> |
| 2283 |
<xsd:restriction base="xsd:token"> |
| 2284 |
<xsd:enumeration value="TEXT"> |
| 2285 |
<xsd:annotation> |
| 2286 |
<xsd:documentation>The TEXT value specifies that the variable data |
| 2287 |
value should be treated as text.</xsd:documentation> |
| 2288 |
</xsd:annotation> |
| 2289 |
</xsd:enumeration> |
| 2290 |
<xsd:enumeration value="NUMERIC"> |
| 2291 |
<xsd:annotation> |
| 2292 |
<xsd:documentation>The NUMERIC value specifies that the variable data |
| 2293 |
value should be treated as numeric.</xsd:documentation> |
| 2294 |
</xsd:annotation> |
| 2295 |
</xsd:enumeration> |
| 2296 |
</xsd:restriction> |
| 2297 |
</xsd:simpleType> |
| 2298 |
<xsd:complexType name="SubstitutionTextType"> |
| 2299 |
<xsd:annotation> |
| 2300 |
<xsd:documentation>A type that is used to represent text from a variable that may be inserted into a text string within this model.</xsd:documentation> |
| 2301 |
</xsd:annotation> |
| 2302 |
<xsd:attribute name="var_ref" type="inter:VariableIDPattern" use="required"/> |
| 2303 |
</xsd:complexType> |
| 2304 |
|
| 2305 |
|
| 2306 |
|
| 2307 |
|
| 2308 |
<xsd:complexType name="ReferenceType" mixed="true"> |
| 2309 |
<xsd:annotation> |
| 2310 |
<xsd:documentation>The ReferenceType complex type defines structures used to |
| 2311 |
hold information about an external reference given its URI and |
| 2312 |
description.</xsd:documentation> |
| 2313 |
<xsd:documentation>This structure may be used to reference other standards |
| 2314 |
such as CVE, CCE, or CPE. To do so, the href attribute would give the |
| 2315 |
relevant namespace. For example, the namespace of the current version of |
| 2316 |
CPE is http://cpe.mitre.org/dictionary/2.0 and the body of this element |
| 2317 |
would hold a specific CPE identifier. References to other information |
| 2318 |
(documents, web pages, etc.) are also permitted.</xsd:documentation> |
| 2319 |
</xsd:annotation> |
| 2320 |
<xsd:simpleContent> |
| 2321 |
<xsd:extension base="inter:TextType"> |
| 2322 |
<xsd:attribute name="href" type="xsd:anyURI"> |
| 2323 |
<xsd:annotation> |
| 2324 |
<xsd:documentation> The href attribute holds the URI of an external |
| 2325 |
reference. This may be the namespace associated with the |
| 2326 |
information in the body or a web URL containing relevant |
| 2327 |
information. </xsd:documentation> |
| 2328 |
</xsd:annotation> |
| 2329 |
</xsd:attribute> |
| 2330 |
</xsd:extension> |
| 2331 |
</xsd:simpleContent> |
| 2332 |
</xsd:complexType> |
| 2333 |
<xsd:complexType name="StepType"> |
| 2334 |
<xsd:annotation> |
| 2335 |
<xsd:documentation>The StepType complex type defines structures that |
| 2336 |
describe one step (out of possibly multiple steps) that a user should |
| 2337 |
take to respond to a question. The steps would appear as part of |
| 2338 |
the question's instructions element.</xsd:documentation> |
| 2339 |
</xsd:annotation> |
| 2340 |
<xsd:sequence> |
| 2341 |
<xsd:element name="description" type="inter:TextType" minOccurs="0" maxOccurs="1"> |
| 2342 |
<xsd:annotation> |
| 2343 |
<xsd:documentation>The description element contains information |
| 2344 |
about this step.</xsd:documentation> |
| 2345 |
</xsd:annotation> |
| 2346 |
</xsd:element> |
| 2347 |
<xsd:element name="reference" type="inter:ReferenceType" minOccurs="0" maxOccurs="unbounded"> |
| 2348 |
<xsd:annotation> |
| 2349 |
<xsd:documentation>The reference element contains information about |
| 2350 |
any external references related to this step.</xsd:documentation> |
| 2351 |
</xsd:annotation> |
| 2352 |
</xsd:element> |
| 2353 |
<xsd:element name="step" type="inter:StepType" minOccurs="0" maxOccurs="unbounded"> |
| 2354 |
<xsd:annotation> |
| 2355 |
<xsd:documentation>The step element contains a substep for this |
| 2356 |
step.</xsd:documentation> |
| 2357 |
</xsd:annotation> |
| 2358 |
</xsd:element> |
| 2359 |
</xsd:sequence> |
| 2360 |
<xsd:attribute name="is_done" type="xsd:boolean" use="optional" default="false"> |
| 2361 |
<xsd:annotation> |
| 2362 |
<xsd:documentation>The is_done attribute indicates whether this step has |
| 2363 |
been done. The value is true when it is done. Otherwise, it is false. |
| 2364 |
It is an optional attribute that defaults to false.</xsd:documentation> |
| 2365 |
</xsd:annotation> |
| 2366 |
</xsd:attribute> |
| 2367 |
<xsd:attribute name="is_required" type="xsd:boolean" use="optional" default="true"> |
| 2368 |
<xsd:annotation> |
| 2369 |
<xsd:documentation>The is_required attribute indicates whether a step is |
| 2370 |
required or not. If it is not, then it can be skipped. It is an |
| 2371 |
optional attribute that defaults to true.</xsd:documentation> |
| 2372 |
</xsd:annotation> |
| 2373 |
</xsd:attribute> |
| 2374 |
</xsd:complexType> |
| 2375 |
|
| 2376 |
|
| 2377 |
|
| 2378 |
|
| 2379 |
<xsd:complexType name="ItemBaseType"> |
| 2380 |
<xsd:annotation> |
| 2381 |
<xsd:documentation>The ItemBaseType complex type defines structures allowing |
| 2382 |
a set of notes to be included. This type is inherited by many of the |
| 2383 |
elements in the OCIL language.</xsd:documentation> |
| 2384 |
</xsd:annotation> |
| 2385 |
<xsd:sequence> |
| 2386 |
<xsd:element name="notes" type="xsd:string" minOccurs="0" maxOccurs="unbounded"> |
| 2387 |
<xsd:annotation> |
| 2388 |
<xsd:documentation>An optional set of notes to describe additional |
| 2389 |
information.</xsd:documentation> |
| 2390 |
</xsd:annotation> |
| 2391 |
</xsd:element> |
| 2392 |
</xsd:sequence> |
| 2393 |
<xsd:attribute name="revision" type="xsd:nonNegativeInteger" default="0"> |
| 2394 |
<xsd:annotation> |
| 2395 |
<xsd:documentation>The specific refision of this item. This attribute is |
| 2396 |
optional to support compatability with existing content. By default |
| 2397 |
the revision is '0' meaning that it is the initial revision. It is |
| 2398 |
assumed that subsequent revisions will increment this value by |
| 2399 |
1.</xsd:documentation> |
| 2400 |
</xsd:annotation> |
| 2401 |
</xsd:attribute> |
| 2402 |
</xsd:complexType> |
| 2403 |
<xsd:complexType name="NamedItemBaseType"> |
| 2404 |
<xsd:annotation> |
| 2405 |
<xsd:documentation>The NamedItemBaseType complex type defines structures |
| 2406 |
allowing a set of notes and the name of a target (system or user) to be |
| 2407 |
included.</xsd:documentation> |
| 2408 |
</xsd:annotation> |
| 2409 |
<xsd:complexContent> |
| 2410 |
<xsd:extension base="inter:ItemBaseType"> |
| 2411 |
<xsd:sequence> |
| 2412 |
<xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"> |
| 2413 |
<xsd:annotation> |
| 2414 |
<xsd:documentation>The name element holds the name of a target |
| 2415 |
(system or user).</xsd:documentation> |
| 2416 |
</xsd:annotation> |
| 2417 |
</xsd:element> |
| 2418 |
</xsd:sequence> |
| 2419 |
</xsd:extension> |
| 2420 |
</xsd:complexContent> |
| 2421 |
</xsd:complexType> |
| 2422 |
<xsd:complexType name="CompoundTestActionType"> |
| 2423 |
<xsd:annotation> |
| 2424 |
<xsd:documentation>The CompoundTestActionType type describes the structures |
| 2425 |
used to combine multiple test_action elements into a single |
| 2426 |
result.</xsd:documentation> |
| 2427 |
</xsd:annotation> |
| 2428 |
<xsd:complexContent> |
| 2429 |
<xsd:extension base="inter:ItemBaseType"> |
| 2430 |
<xsd:sequence> |
| 2431 |
<xsd:element name="title" type="inter:TextType" minOccurs="0" maxOccurs="1"> |
| 2432 |
<xsd:annotation> |
| 2433 |
<xsd:documentation>The title element contains a descriptive |
| 2434 |
heading for the set of test_actions.</xsd:documentation> |
| 2435 |
</xsd:annotation> |
| 2436 |
</xsd:element> |
| 2437 |
<xsd:element name="description" type="inter:TextType" minOccurs="0" maxOccurs="1"> |
| 2438 |
<xsd:annotation> |
| 2439 |
<xsd:documentation>The description element holds information |
| 2440 |
describing the set of test_actions.</xsd:documentation> |
| 2441 |
</xsd:annotation> |
| 2442 |
</xsd:element> |
| 2443 |
<xsd:element name="references" type="inter:ReferencesType" minOccurs="0" maxOccurs="1"> |
| 2444 |
<xsd:annotation> |
| 2445 |
<xsd:documentation>The references element holds one or more |
| 2446 |
reference elements. Examples could include references to |
| 2447 |
other standards, including but not limited to CVE, CCE, |
| 2448 |
or CPE.</xsd:documentation> |
| 2449 |
</xsd:annotation> |
| 2450 |
</xsd:element> |
| 2451 |
<xsd:element name="actions" type="inter:OperationType" minOccurs="1" maxOccurs="1"> |
| 2452 |
<xsd:annotation> |
| 2453 |
<xsd:documentation>The actions element holds one or more |
| 2454 |
test_action elements along with the operators used to combine |
| 2455 |
them into a single result.</xsd:documentation> |
| 2456 |
</xsd:annotation> |
| 2457 |
</xsd:element> |
| 2458 |
</xsd:sequence> |
| 2459 |
</xsd:extension> |
| 2460 |
</xsd:complexContent> |
| 2461 |
</xsd:complexType> |
| 2462 |
<xsd:complexType name="ReferencesType"> |
| 2463 |
<xsd:annotation> |
| 2464 |
<xsd:documentation>The ReferencesType complex type contains a set of |
| 2465 |
references.</xsd:documentation> |
| 2466 |
</xsd:annotation> |
| 2467 |
<xsd:sequence> |
| 2468 |
<xsd:element name="reference" type="inter:ReferenceType" minOccurs="1" maxOccurs="unbounded"> |
| 2469 |
<xsd:annotation> |
| 2470 |
<xsd:documentation>The reference element contains information about |
| 2471 |
any external references. Examples could include references to other |
| 2472 |
standards such as CVE, CCE, or CPE.</xsd:documentation> |
| 2473 |
</xsd:annotation> |
| 2474 |
</xsd:element> |
| 2475 |
</xsd:sequence> |
| 2476 |
</xsd:complexType> |
| 2477 |
<xsd:complexType name="OperationType"> |
| 2478 |
<xsd:annotation> |
| 2479 |
<xsd:documentation> The OperationType type defines structures that hold a |
| 2480 |
set of test_actions and provide instructions as to how to aggregate their |
| 2481 |
individual results into a single result. </xsd:documentation> |
| 2482 |
</xsd:annotation> |
| 2483 |
<xsd:sequence> |
| 2484 |
<xsd:element name="test_action_ref" type="inter:TestActionRefType" minOccurs="1" maxOccurs="unbounded"> |
| 2485 |
<xsd:annotation> |
| 2486 |
<xsd:documentation>The test_action_ref element holds the identifier |
| 2487 |
of a test_action element. At least one test_action_ref must be |
| 2488 |
included.</xsd:documentation> |
| 2489 |
</xsd:annotation> |
| 2490 |
</xsd:element> |
| 2491 |
</xsd:sequence> |
| 2492 |
<xsd:attribute name="operation" type="inter:OperatorType" use="optional" default="AND"> |
| 2493 |
<xsd:annotation> |
| 2494 |
<xsd:documentation>The operation attribute describes how to aggregate the |
| 2495 |
results of a set of test_actions. Its value defaults to the Boolean |
| 2496 |
operator "AND".</xsd:documentation> |
| 2497 |
</xsd:annotation> |
| 2498 |
</xsd:attribute> |
| 2499 |
<xsd:attribute name="negate" type="xsd:boolean" use="optional" default="false"> |
| 2500 |
<xsd:annotation> |
| 2501 |
<xsd:documentation>The negate attribute can be used to specify whether to |
| 2502 |
toggle the result from PASS to FAIL, and vice versa. A result other |
| 2503 |
than PASS or FAIL (e.g. ERROR, NOT_TESTED) will be unchanged by |
| 2504 |
a negate operation.</xsd:documentation> |
| 2505 |
</xsd:annotation> |
| 2506 |
</xsd:attribute> |
| 2507 |
</xsd:complexType> |
| 2508 |
<xsd:simpleType name="OperatorType"> |
| 2509 |
<xsd:annotation> |
| 2510 |
<xsd:documentation>The OperatorType simple type provides a list of possible |
| 2511 |
operator values that operate on a set of test_action |
| 2512 |
elements.</xsd:documentation> |
| 2513 |
</xsd:annotation> |
| 2514 |
<xsd:restriction base="xsd:token"> |
| 2515 |
<xsd:enumeration value="AND"> |
| 2516 |
<xsd:annotation> |
| 2517 |
<xsd:documentation>The AND operator produces a true result if every |
| 2518 |
argument is true. If one or more arguments are false, the result of |
| 2519 |
the AND is false. See the truth table provided in the ResultType |
| 2520 |
type for a complete list of how the various result types are |
| 2521 |
combined by an AND operation.</xsd:documentation> |
| 2522 |
</xsd:annotation> |
| 2523 |
</xsd:enumeration> |
| 2524 |
<xsd:enumeration value="OR"> |
| 2525 |
<xsd:annotation> |
| 2526 |
<xsd:documentation>The OR operator produces a true result if one or |
| 2527 |
more arguments is true. If every argument is false, the result of |
| 2528 |
the OR is false. See the truth table provided in the ResultType |
| 2529 |
type for a complete list of how the various result types are |
| 2530 |
combined by an OR operation.</xsd:documentation> |
| 2531 |
</xsd:annotation> |
| 2532 |
</xsd:enumeration> |
| 2533 |
</xsd:restriction> |
| 2534 |
</xsd:simpleType> |
| 2535 |
|
| 2536 |
<xsd:complexType name="TextType"> |
| 2537 |
<xsd:annotation> |
| 2538 |
<xsd:documentation>The TextType complex type defines an element that holds |
| 2539 |
basic string information.</xsd:documentation> |
| 2540 |
</xsd:annotation> |
| 2541 |
<xsd:simpleContent> |
| 2542 |
<xsd:extension base="xsd:normalizedString"> |
| 2543 |
<xsd:attribute ref="xml:lang"> |
| 2544 |
<xsd:annotation> |
| 2545 |
<xsd:documentation>This attribute specifies the language in which |
| 2546 |
to interpret the information.</xsd:documentation> |
| 2547 |
</xsd:annotation> |
| 2548 |
</xsd:attribute> |
| 2549 |
</xsd:extension> |
| 2550 |
</xsd:simpleContent> |
| 2551 |
</xsd:complexType> |
| 2552 |
|
| 2553 |
|
| 2554 |
|
| 2555 |
|
| 2556 |
<xsd:simpleType name="TestActionRefValuePattern"> |
| 2557 |
<xsd:annotation> |
| 2558 |
<xsd:documentation> A test_action_ref may refer to either a test_action or a |
| 2559 |
questionnaire. This type represents the union of these two ID |
| 2560 |
patterns.</xsd:documentation> |
| 2561 |
</xsd:annotation> |
| 2562 |
<xsd:restriction base="xsd:token"> |
| 2563 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:testaction:[1-9][0-9]*"/> |
| 2564 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:questionnaire:[1-9][0-9]*"/> |
| 2565 |
</xsd:restriction> |
| 2566 |
</xsd:simpleType> |
| 2567 |
<xsd:simpleType name="QuestionnaireIDPattern"> |
| 2568 |
<xsd:annotation> |
| 2569 |
<xsd:documentation>ID values for questionnaires must match this pattern. |
| 2570 |
Each ID must be unique within an OCIL document.</xsd:documentation> |
| 2571 |
</xsd:annotation> |
| 2572 |
<xsd:restriction base="xsd:token"> |
| 2573 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:questionnaire:[1-9][0-9]*"/> |
| 2574 |
</xsd:restriction> |
| 2575 |
</xsd:simpleType> |
| 2576 |
<xsd:simpleType name="QuestionTestActionIDPattern"> |
| 2577 |
<xsd:annotation> |
| 2578 |
<xsd:documentation>ID values for test_actions must match this pattern. Each |
| 2579 |
ID must be unique within an OCIL document.</xsd:documentation> |
| 2580 |
</xsd:annotation> |
| 2581 |
<xsd:restriction base="xsd:token"> |
| 2582 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:testaction:[1-9][0-9]*"/> |
| 2583 |
</xsd:restriction> |
| 2584 |
</xsd:simpleType> |
| 2585 |
<xsd:simpleType name="QuestionIDPattern"> |
| 2586 |
<xsd:annotation> |
| 2587 |
<xsd:documentation>ID values for questions must match this pattern. Each ID |
| 2588 |
must be unique within an OCIL document.</xsd:documentation> |
| 2589 |
</xsd:annotation> |
| 2590 |
<xsd:restriction base="xsd:token"> |
| 2591 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:question:[1-9][0-9]*"/> |
| 2592 |
</xsd:restriction> |
| 2593 |
</xsd:simpleType> |
| 2594 |
<xsd:simpleType name="ChoiceIDPattern"> |
| 2595 |
<xsd:annotation> |
| 2596 |
<xsd:documentation> ID values for choices in choice_questions must match |
| 2597 |
this pattern. Each ID must be unique within an OCIL |
| 2598 |
document.</xsd:documentation> |
| 2599 |
</xsd:annotation> |
| 2600 |
<xsd:restriction base="xsd:token"> |
| 2601 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:choice:[1-9][0-9]*"/> |
| 2602 |
</xsd:restriction> |
| 2603 |
</xsd:simpleType> |
| 2604 |
<xsd:simpleType name="ChoiceGroupIDPattern"> |
| 2605 |
<xsd:annotation> |
| 2606 |
<xsd:documentation> ID values for choice_group references in |
| 2607 |
choice_questions must match this pattern. Each ID must be unique within |
| 2608 |
an OCIL document.</xsd:documentation> |
| 2609 |
</xsd:annotation> |
| 2610 |
<xsd:restriction base="xsd:token"> |
| 2611 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:choicegroup:[1-9][0-9]*"/> |
| 2612 |
</xsd:restriction> |
| 2613 |
</xsd:simpleType> |
| 2614 |
<xsd:simpleType name="VariableIDPattern"> |
| 2615 |
<xsd:annotation> |
| 2616 |
<xsd:documentation> ID values for variable references must match this |
| 2617 |
pattern. Each ID must be unique within an OCIL |
| 2618 |
document.</xsd:documentation> |
| 2619 |
</xsd:annotation> |
| 2620 |
<xsd:restriction base="xsd:token"> |
| 2621 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:variable:[1-9][0-9]*"/> |
| 2622 |
</xsd:restriction> |
| 2623 |
</xsd:simpleType> |
| 2624 |
<xsd:simpleType name="ArtifactIDPattern"> |
| 2625 |
<xsd:annotation> |
| 2626 |
<xsd:documentation>ID values for artifact references must match this |
| 2627 |
pattern. Each ID must be unique within an OCIL |
| 2628 |
document.</xsd:documentation> |
| 2629 |
</xsd:annotation> |
| 2630 |
<xsd:restriction base="xsd:token"> |
| 2631 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:artifact:[1-9][0-9]*"/> |
| 2632 |
</xsd:restriction> |
| 2633 |
</xsd:simpleType> |
| 2634 |
<xsd:simpleType name="ProviderValuePattern"> |
| 2635 |
<xsd:annotation> |
| 2636 |
<xsd:documentation>Provider for artifacts may be a user or a system. This |
| 2637 |
type represents the union of these two ID patterns.</xsd:documentation> |
| 2638 |
</xsd:annotation> |
| 2639 |
<xsd:restriction base="xsd:token"> |
| 2640 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:user:[1-9][0-9]*"/> |
| 2641 |
<xsd:pattern value="ocil:[A-Za-z0-9_\-\.]+:system:[1-9][0-9]*"/> |
| 2642 |
</xsd:restriction> |
| 2643 |
</xsd:simpleType> |
| 2644 |
</xsd:schema> |