aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-02-11 23:23:38 +0000
committerbloodstalker <thabogre@gmail.com>2017-02-11 23:23:38 +0000
commit0fa1864adbcbc2bddb97082f18bf724aba057b42 (patch)
treea15162fd135f5269ce65f4ef855c2a2483c811f6 /samples
parentthe xsd is fixed now so removed the broken message (diff)
downloadmutator-0fa1864adbcbc2bddb97082f18bf724aba057b42.tar.gz
mutator-0fa1864adbcbc2bddb97082f18bf724aba057b42.zip
fixed and working
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>