aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/mutator0-report-schema.xsd35
1 files changed, 26 insertions, 9 deletions
diff --git a/samples/mutator0-report-schema.xsd b/samples/mutator0-report-schema.xsd
index 7509e11..7edf2c3 100644
--- a/samples/mutator0-report-schema.xsd
+++ b/samples/mutator0-report-schema.xsd
@@ -1,15 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--this schema is used to validate the report generated and is only meant as a dev test-->
+<!--this is meant to test mutator-lvl0 not tinyxml2-->
<mutator:schema xmlns:mutator="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema">
-<mutator:element name="Report">
- <mutator:element name="MisraDiag">
- <mutator:attribute name="Misra-C-2004Rule" use="required"></mutator:attribute>
- <mutator:attribute name="FileName" use="required"></mutator:attribute>
- <mutator:attribute name="SpellingLineNumber" use="optional"></mutator:attribute>
- <mutator:attribute name="SpellingColumnNumber" use="optional"></mutator:attribute>
- </mutator:element>
-</mutator:element>
+ <mutator:attributeGroup name="MisraCReport">
+ <mutator:attribute name="Misra-C-2004Rule" use="required"></mutator:attribute>
+ <mutator:attribute name="FileName" use="required"></mutator:attribute>
+ <mutator:attribute name="SpellingLineNumber" use="optional"></mutator:attribute>
+ <mutator:attribute name="SpellingColumnNumber" use="optional"></mutator:attribute>
+ </mutator:attributeGroup>
-</mutator:schema> \ No newline at end of file
+ <mutator:element name="MisraDiag">
+ <mutator:complexType>
+ <mutator:simpleContent>
+ <mutator:extension base="mutator:string">
+ <mutator:attributeGroup ref="MisraCReport"/>
+ </mutator:extension>
+ </mutator:simpleContent>
+ </mutator:complexType>
+ </mutator:element>
+
+ <mutator:element name="Report">
+ <mutator:complexType>
+ <mutator:sequence>
+ <mutator:element name="MisraDiag" maxOccurs="unbounded"/>
+ </mutator:sequence>
+ </mutator:complexType>
+ </mutator:element>
+
+</mutator:schema>