|
|
7a6a25 |
From 3d081a4345b2b4f838e5e9fb4fab78b1bad717a9 Mon Sep 17 00:00:00 2001
|
|
|
7a6a25 |
From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= <jcerny@redhat.com>
|
|
|
7a6a25 |
Date: Wed, 22 May 2019 15:03:52 +0200
|
|
|
7a6a25 |
Subject: [PATCH] Resolve parsing issues with OVAL 5.11.2 schemas
|
|
|
7a6a25 |
|
|
|
7a6a25 |
Similar to 8ba623120fc9f479285f9d6032cb925db420011d but for OVAL 5.11.2.
|
|
|
7a6a25 |
The missing namespace imports have already been fixed in
|
|
|
7a6a25 |
32d4d9be295084f95bfbaec07ea84373b3b4aeb7. Addressing:
|
|
|
7a6a25 |
```
|
|
|
7a6a25 |
File '/root/openscap/schemas/oval/5.11.2/oval-definitions-schema.xsd'
|
|
|
7a6a25 |
line 1446: local union type: A type, derived by list or union, must have
|
|
|
7a6a25 |
the simple ur-type definition as base type, not
|
|
|
7a6a25 |
'{http://oval.mitre.org/XMLSchema/oval-definitions-5}(NULL)'.
|
|
|
7a6a25 |
File '/root/openscap/schemas/oval/5.11.2/oval-definitions-schema.xsd'
|
|
|
7a6a25 |
line 1459: local union type: A type, derived by list or union, must have
|
|
|
7a6a25 |
the simple ur-type definition as base type, not
|
|
|
7a6a25 |
'{http://oval.mitre.org/XMLSchema/oval-definitions-5}(NULL)'.
|
|
|
7a6a25 |
File '/root/openscap/schemas/oval/5.11.2/oval-definitions-schema.xsd'
|
|
|
7a6a25 |
line 1472: local union type: A type, derived by list or union, must have
|
|
|
7a6a25 |
the simple ur-type definition as base type, not
|
|
|
7a6a25 |
'{http://oval.mitre.org/XMLSchema/oval-definitions-5}(NULL)'.
|
|
|
7a6a25 |
File '/root/openscap/schemas/oval/5.11.2/oval-definitions-schema.xsd'
|
|
|
7a6a25 |
line 1485: local union type: A type, derived by list or union, must have
|
|
|
7a6a25 |
the simple ur-type definition as base type, not
|
|
|
7a6a25 |
'{http://oval.mitre.org/XMLSchema/oval-definitions-5}(NULL)'.
|
|
|
7a6a25 |
File '/root/openscap/schemas/oval/5.11.2/oval-definitions-schema.xsd'
|
|
|
7a6a25 |
line 1652: local union type: A type, derived by list or union, must have
|
|
|
7a6a25 |
the simple ur-type definition as base type, not
|
|
|
7a6a25 |
'{http://oval.mitre.org/XMLSchema/oval-definitions-5}(NULL)'.
|
|
|
7a6a25 |
File '/root/openscap/schemas/oval/5.11.2/oval-definitions-schema.xsd'
|
|
|
7a6a25 |
line 1665: local union type: A type, derived by list or union, must have
|
|
|
7a6a25 |
the simple ur-type definition as base type, not
|
|
|
7a6a25 |
'{http://oval.mitre.org/XMLSchema/oval-definitions-5}(NULL)'.
|
|
|
7a6a25 |
File '/root/openscap/schemas/oval/5.11.2/oval-definitions-schema.xsd'
|
|
|
7a6a25 |
line 1678: local union type: A type, derived by list or union, must have
|
|
|
7a6a25 |
the simple ur-type definition as base type, not
|
|
|
7a6a25 |
'{http://oval.mitre.org/XMLSchema/oval-definitions-5}(NULL)'.
|
|
|
7a6a25 |
File '/root/openscap/schemas/oval/5.11.2/oval-definitions-schema.xsd'
|
|
|
7a6a25 |
line 1691: local union type: A type, derived by list or union, must have
|
|
|
7a6a25 |
the simple ur-type definition as base type, not
|
|
|
7a6a25 |
'{http://oval.mitre.org/XMLSchema/oval-definitions-5}(NULL)'.
|
|
|
7a6a25 |
OpenSCAP Error: Could not parse XML schema [validate.c:113]
|
|
|
7a6a25 |
```
|
|
|
7a6a25 |
---
|
|
|
7a6a25 |
schemas/oval/5.11.2/oval-definitions-schema.xsd | 16 ++++++++--------
|
|
|
7a6a25 |
.../oval-system-characteristics-schema.xsd | 8 ++++----
|
|
|
7a6a25 |
2 files changed, 12 insertions(+), 12 deletions(-)
|
|
|
7a6a25 |
|
|
|
7a6a25 |
diff --git a/schemas/oval/5.11.2/oval-definitions-schema.xsd b/schemas/oval/5.11.2/oval-definitions-schema.xsd
|
|
|
7a6a25 |
index 9aa338603..42c238e1e 100644
|
|
|
7a6a25 |
--- a/schemas/oval/5.11.2/oval-definitions-schema.xsd
|
|
|
7a6a25 |
+++ b/schemas/oval/5.11.2/oval-definitions-schema.xsd
|
|
|
7a6a25 |
@@ -1450,7 +1450,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-def:EntitySimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:hexBinary oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="binary"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -1463,7 +1463,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-def:EntitySimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:boolean oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="boolean"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -1476,7 +1476,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-def:EntitySimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:float oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="float"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -1489,7 +1489,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-def:EntitySimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:integer oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="int"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -1656,7 +1656,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-def:EntityStateSimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:hexBinary oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="binary"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -1669,7 +1669,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-def:EntityStateSimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:boolean oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="boolean"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -1682,7 +1682,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-def:EntityStateSimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:float oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="float"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -1695,7 +1695,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-def:EntityStateSimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:integer oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="int"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
diff --git a/schemas/oval/5.11.2/oval-system-characteristics-schema.xsd b/schemas/oval/5.11.2/oval-system-characteristics-schema.xsd
|
|
|
7a6a25 |
index 030274c4a..c71de366a 100644
|
|
|
7a6a25 |
--- a/schemas/oval/5.11.2/oval-system-characteristics-schema.xsd
|
|
|
7a6a25 |
+++ b/schemas/oval/5.11.2/oval-system-characteristics-schema.xsd
|
|
|
7a6a25 |
@@ -493,7 +493,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-sc:EntityItemSimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:hexBinary oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="binary"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -506,7 +506,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-sc:EntityItemSimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:boolean oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="boolean"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -519,7 +519,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-sc:EntityItemSimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:float oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="float"/>
|
|
|
7a6a25 |
</xsd:restriction>
|
|
|
7a6a25 |
@@ -532,7 +532,7 @@
|
|
|
7a6a25 |
<xsd:simpleContent>
|
|
|
7a6a25 |
<xsd:restriction base="oval-sc:EntityItemSimpleBaseType">
|
|
|
7a6a25 |
<xsd:simpleType>
|
|
|
7a6a25 |
- <xsd:union memberTypes="xsd:integer oval:EmptyStringType"/>
|
|
|
7a6a25 |
+ <xsd:restriction base="xsd:string"/>
|
|
|
7a6a25 |
</xsd:simpleType>
|
|
|
7a6a25 |
<xsd:attribute name="datatype" type="oval:SimpleDatatypeEnumeration" use="required" fixed="int"/>
|
|
|
7a6a25 |
</xsd:restriction>
|