<xsd:element name="environmentvariable_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The environmentvariable_state element contains two entities that are used to check the name of the specified environment varible and the value associated with it.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="name" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>This element describes the name of an environment variable.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="envstename" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="ind-def:environmentvariable_state/ind-def:name">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the name entity of an environmentvariable_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="value" type="oval-def:EntityStateAnyType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The actual value of the specified environment variable.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="envstevalue" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="ind-def:environmentvariable_state/ind-def:value">
<sch:assert test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())">
<sch:value-of select="../@id" /> - The datatype has been set to 'int' but the value is not an integer.</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
|