<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:ind-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#independent" xmlns:oval-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#independent" elementFormDefault="qualified" version="5.0">
	<xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" schemaLocation="oval-system-characteristics-schema.xsd" />
	<!-- =============================================================================== -->
	<!-- ================================  FAMILY ITEM  ================================ -->
	<!-- =============================================================================== -->
	<xsd:element name="family_item" substitutionGroup="oval-sc:item">
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="oval-sc:ItemType">
					<xsd:sequence>
						<xsd:element name="family" type="ind-sc:EntityItemFamilyType" minOccurs="0" maxOccurs="1" />
					</xsd:sequence>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>
	<!-- =============================================================================== -->
	<!-- ===============================  FILE MD5 ITEM  =============================== -->
	<!-- =============================================================================== -->
	<xsd:element name="filemd5_item" substitutionGroup="oval-sc:item">
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="oval-sc:ItemType">
					<xsd:sequence>
						<xsd:element name="path" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="filename" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="md5" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
					</xsd:sequence>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>
	<!-- =============================================================================== -->
	<!-- =======================  ENVIRONMENT VARIABLE ITEM  =========================== -->
	<!-- =============================================================================== -->
	<xsd:element name="environmentvariable_item" substitutionGroup="oval-sc:item">
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="oval-sc:ItemType">
					<xsd:sequence>
						<xsd:element name="name" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="value" type="oval-sc:EntityItemAnyType" minOccurs="0" maxOccurs="1" />
					</xsd:sequence>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>
	<!-- =============================================================================== -->
	<!-- ==========================  TEXT FILE CONTENT ITEM  =========================== -->
	<!-- =============================================================================== -->
	<xsd:element name="textfilecontent_item" substitutionGroup="oval-sc:item">
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="oval-sc:ItemType">
					<xsd:sequence>
						<xsd:element name="path" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="filename" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="line" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="subexpression" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="unbounded" />
					</xsd:sequence>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>
	<!-- =============================================================================== -->
	<!-- ===============================  VARIABLE ITEM  =============================== -->
	<!-- =============================================================================== -->
	<xsd:element name="variable_item" substitutionGroup="oval-sc:item">
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="oval-sc:ItemType">
					<xsd:sequence>
						<xsd:element name="var_ref" type="ind-sc:EntityItemVariableRefType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="value" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="unbounded" />
					</xsd:sequence>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>
	<!-- =============================================================================== -->
	<!-- ===========================  XML FILE CONTENT ITEM  =========================== -->
	<!-- =============================================================================== -->
	<xsd:element name="xmlfilecontent_item" substitutionGroup="oval-sc:item">
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="oval-sc:ItemType">
					<xsd:sequence>
						<xsd:element name="path" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="filename" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="xpath" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
						<xsd:element name="value_of" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1" />
					</xsd:sequence>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>
	<!-- =============================================================================== -->
	<!-- =============================================================================== -->
	<!-- =============================================================================== -->
	<xsd:complexType name="EntityItemFamilyType">
		<xsd:simpleContent>
			<xsd:restriction base="oval-sc:EntityItemStringType">
				<xsd:enumeration value="ios" />
				<xsd:enumeration value="macos" />
				<xsd:enumeration value="unix" />
				<xsd:enumeration value="windows" />
			</xsd:restriction>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:complexType name="EntityItemVariableRefType">
		<xsd:simpleContent>
			<xsd:restriction base="oval-sc:EntityItemStringType">
				<xsd:pattern value="oval:[A-Za-z\-\.]+:var:[1-9][0-9]*" />
			</xsd:restriction>
		</xsd:simpleContent>
	</xsd:complexType>
</xsd:schema>
