1<?xml version="1.0" encoding="UTF-8"?> 2<TestSuite xmlns="http://www.netallied.de/xsd2cppsax/testsuite" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://www.netallied.de/xsd2cppsax/testsuite test_suite.xsd" 5 outDir="tests_output"> 6 7 <!-- test XSDs --> 8 <test config="config/testing.conf" input="tests/t04.xsd" rootElement="root"> 9 <document input="tests/t04.xml" output="t04_01.xml"> 10 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithBoolListAttribute, Attribute: boolList, Line: 33, Column: 40, Additional: f t</expectedError> 11 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithBoolListAttribute, Attribute: boolList, Line: 34, Column: 40, Additional: t f</expectedError> 12 </document> 13 <document input="tests/t04_02.xml" output="t04_02.xml" /> 14 <document input="tests/t04_03.xml" output="t04_03.xml" /> 15 <document input="tests/t04_inf_nan.xml" output="t04_inf_nan.xml"> 16 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatList, Line: 13, Column: 54, Additional: INFa +INF1 -INF. +Na</expectedError> 17 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatList, Line: 14, Column: 49, Additional: INF1 -INF. +NaN -NaN</expectedError> 18 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatList, Line: 15, Column: 43, Additional: INF. +NaN -NaN NaNa</expectedError> 19 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatList, Line: 16, Column: 37, Additional: NaN -NaN NaNa NaN1 N</expectedError> 20 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatList, Line: 17, Column: 32, Additional: NaN NaNa NaN1 NaN.</expectedError> 21 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatList, Line: 18, Column: 27, Additional: NaNa NaN1 NaN.</expectedError> 22 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatList, Line: 19, Column: 22, Additional: NaN1 NaN.</expectedError> 23 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatList, Line: 20, Column: 17, Additional: NaN.</expectedError> 24 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatElement, Line: 29, Column: 35, </expectedError> 25 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatElement, Line: 30, Column: 36, </expectedError> 26 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatElement, Line: 31, Column: 36, </expectedError> 27 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatElement, Line: 32, Column: 35, </expectedError> 28 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatElement, Line: 33, Column: 35, </expectedError> 29 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatElement, Line: 34, Column: 35, </expectedError> 30 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatElement, Line: 35, Column: 35, </expectedError> 31 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: FloatElement, Line: 36, Column: 35, </expectedError> 32 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatListAttribute, Attribute: listAttr, Line: 42, Column: 41, Additional: INFa +INF1 -INF. +Na</expectedError> 33 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatListAttribute, Attribute: listAttr, Line: 43, Column: 41, Additional: INF1 -INF. +NaN -NaN</expectedError> 34 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatListAttribute, Attribute: listAttr, Line: 44, Column: 41, Additional: INF. +NaN -NaN NaNa</expectedError> 35 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatListAttribute, Attribute: listAttr, Line: 45, Column: 41, Additional: NaN -NaN NaNa NaN1 N</expectedError> 36 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatListAttribute, Attribute: listAttr, Line: 46, Column: 41, Additional: NaN NaNa NaN1 NaN.</expectedError> 37 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatListAttribute, Attribute: listAttr, Line: 47, Column: 41, Additional: NaNa NaN1 NaN.</expectedError> 38 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatListAttribute, Attribute: listAttr, Line: 48, Column: 41, Additional: NaN1 NaN.</expectedError> 39 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatListAttribute, Attribute: listAttr, Line: 49, Column: 41, Additional: NaN.</expectedError> 40 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatAttribute, Attribute: floatAttr, Line: 58, Column: 38, Additional: INFa</expectedError> 41 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatAttribute, Attribute: floatAttr, Line: 59, Column: 38, Additional: +INF1</expectedError> 42 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatAttribute, Attribute: floatAttr, Line: 60, Column: 38, Additional: -INF.</expectedError> 43 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatAttribute, Attribute: floatAttr, Line: 61, Column: 38, Additional: +NaN</expectedError> 44 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatAttribute, Attribute: floatAttr, Line: 62, Column: 38, Additional: -NaN</expectedError> 45 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatAttribute, Attribute: floatAttr, Line: 63, Column: 38, Additional: NaNa</expectedError> 46 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatAttribute, Attribute: floatAttr, Line: 64, Column: 38, Additional: NaN1</expectedError> 47 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: ElementWithFloatAttribute, Attribute: floatAttr, Line: 65, Column: 38, Additional: NaN.</expectedError> 48 </document> 49 </test> 50 51 <test config="config/testing.conf" input="tests/t05.xsd" rootElement="root"> 52 <document input="tests/t05.xml" output="t05_01.xml"> 53 <expectedError>Error: ERROR_ATTRIBUTE_PARSING_FAILED Element: stringAttrAtomic, Attribute: stringEnumAtomic, Line: 6, Column: 36, Additional: foo</expectedError> 54 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: stringDataAtomic, Line: 21, Column: 21</expectedError> 55 <expectedError>Error: ERROR_TEXTDATA_PARSING_FAILED Element: floatDataAtomic, Line: 26, Column: 20</expectedError> 56 </document> 57 </test> 58 59 <test config="config/testing.conf" input="tests/t06.xsd" rootElement="root"> 60 <document input="tests/t06.xml" output="t06_01.xml" /> 61 </test> 62 63 <test config="config/testing.conf" input="tests/t07.xsd" rootElement="root"> 64 <document input="tests/t07.xml" output="t07_01.xml" /> 65 </test> 66 67 <test config="config/testing.conf" input="tests/t08.xsd" rootElement="root"> 68 <document input="tests/t08.xml" output="t08_01.xml" /> 69 </test> 70 71 <test config="config/testing.conf" input="tests/t09.xsd" rootElement="root"> 72 <document input="tests/t09.xml" output="t09_01.xml" /> 73 <document input="tests/t09_02.xml" output="t09_02.xml" /> 74 <document input="tests/t09_03.xml" output="t09_03.xml"> 75 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: int_attr, Line: 11, Column: 31, Additional:</expectedError> 76 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: bool_attr, Line: 11, Column: 31, Additional:</expectedError> 77 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: string_attr, Line: 11, Column: 31, Additional:</expectedError> 78 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: enum_attr, Line: 11, Column: 31, Additional:</expectedError> 79 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: union_attr, Line: 11, Column: 31, Additional:</expectedError> 80 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: uri_attr, Line: 11, Column: 31, Additional:</expectedError> 81 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: intList_attr, Line: 11, Column: 31, Additional:</expectedError> 82 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: boolList_attr, Line: 11, Column: 31, Additional:</expectedError> 83 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: stringList_attr, Line: 11, Column: 31, Additional:</expectedError> 84 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: enumList_attr, Line: 11, Column: 31, Additional:</expectedError> 85 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: unionList_attr, Line: 11, Column: 31, Additional:</expectedError> 86 <expectedError>Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: attributeHolderAttrsRequired, Attribute: uriList_attr, Line: 11, Column: 31, Additional:</expectedError> 87 </document> 88 </test> 89 90 <test config="config/testing.conf" input="tests/t10.xsd" rootElement="root"> 91 <document input="tests/t10.xml" output="t10_01.xml" /> 92 </test> 93 94 <test config="config/testing.conf" input="tests/t11.xsd" rootElement="root"> 95 <document input="tests/t11_01.xml" output="t11_01.xml" /> 96 </test> 97 98 <test config="config/testing.conf" input="tests/t12.xsd" rootElement="root"> 99 <document input="tests/t12_01.xml" output="t12_01.xml" /> 100 </test> 101 102 <!-- simple type validation --> 103 <test config="config/testing.conf" input="tests/validation_simple_types/t01.xsd" rootElement="root"> 104 <document input="tests/validation_simple_types/t01_01.xml" output="validation_simple_types__t01_01.xml" /> 105 <document input="tests/validation_simple_types/t01_error_01.xml" output="validation_simple_types__t01_error_01.xml"> 106 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: listItemWOFacetsAttrsElem, Attribute: floatListMaxLength_attr, Line: 9, Column: 1, Additional: 0.1 0.2 0.3 0.4 0.5 0.6</expectedError> 107 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: listItemWOFacetsAttrsElem, Attribute: unrestrictedListWithrestrictedItem_attr, Line: 9, Column: 1, Additional: 8 6 5 4 3</expectedError> 108 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: attributeHolder, Attribute: maxInc_attr, Line: 26, Column: 1, Additional: 6</expectedError> 109 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: attributeHolder, Attribute: maxInc_float_attr, Line: 26, Column: 1, Additional: 5.6</expectedError> 110 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: attributeHolder, Attribute: inc_attr, Line: 26, Column: 1, Additional: 6</expectedError> 111 <expectedError>Error: ERROR_VALIDATION_MAX_EXCLUSIVE Element: attributeHolder, Attribute: ex_attr, Line: 26, Column: 1, Additional: 5</expectedError> 112 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: attributeHolder, Attribute: stringLength_attr, Line: 26, Column: 1, Additional: aaaaaa</expectedError> 113 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: attributeHolder, Attribute: stringMinLength_attr, Line: 26, Column: 1, Additional: aaaa</expectedError> 114 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: attributeHolder, Attribute: stringMaxLength_attr, Line: 26, Column: 1, Additional: aaaaaa</expectedError> 115 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: attributeHolder, Attribute: intListLength_attr, Line: 26, Column: 1, Additional: 1 2 3 4 5 6</expectedError> 116 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: attributeHolder, Attribute: intListMaxLength_attr, Line: 26, Column: 1, Additional: 1 2 3 4 5 6</expectedError> 117 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: attributeHolder, Attribute: intListMinLength_attr, Line: 26, Column: 1, Additional: 1 2 3 4 </expectedError> 118 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: attributeHolder, Attribute: nameListLength_attr, Line: 26, Column: 1, Additional: ab cd ef gh ij kl</expectedError> 119 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: attributeHolder, Attribute: nameListMaxLength_attr, Line: 26, Column: 1, Additional: ab cd ef gh ij kl</expectedError> 120 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: attributeHolder, Attribute: nameListMinLength_attr, Line: 26, Column: 1, Additional: ab cd ef gh</expectedError> 121 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: attributeHolder, Attribute: restrictedItemListLength_attr, Line: 26, Column: 1, Additional: 9 6 7</expectedError> 122 <expectedError>Error: ERROR_VALIDATION_MIN_INCLUSIVE Element: attributeHolder, Attribute: inc_attr, Line: 35, Column: 1, Additional: 2</expectedError> 123 <expectedError>Error: ERROR_VALIDATION_MIN_EXCLUSIVE Element: attributeHolder, Attribute: ex_attr, Line: 35, Column: 1, Additional: 3</expectedError> 124 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: attributeHolder, Attribute: stringLength_attr, Line: 35, Column: 1, Additional: aaaa</expectedError> 125 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: attributeHolder, Attribute: intListLength_attr, Line: 35, Column: 1, Additional: 1 2 3 4 </expectedError> 126 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: attributeHolder, Attribute: nameListLength_attr, Line: 35, Column: 1, Additional: ab cd ef gh</expectedError> 127 <expectedError>Error: ERROR_VALIDATION_MIN_INCLUSIVE Element: attributeHolder, Attribute: restrictedItemListLength_attr, Line: 35, Column: 1, Additional: 2 4 5 6 7</expectedError> 128 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: attributeHolder, Attribute: restrictedStringList_attr, Line: 35, Column: 1, Additional: cccccc ddddd </expectedError> 129 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: attributeHolder, Attribute: restrictedStringList_attr, Line: 35, Column: 1, Additional: aaaaa bbbbb cccccc ddddd </expectedError> 130 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: maxInc_elem, Line: 37, Column: 30</expectedError> 131 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: maxInc_elem, Line: 40, Column: 16</expectedError> 132 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: maxInc_float_elem, Line: 41, Column: 44</expectedError> 133 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: maxInc_float_elem, Line: 44, Column: 22</expectedError> 134 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: inc_elem, Line: 45, Column: 24</expectedError> 135 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: inc_elem, Line: 48, Column: 13</expectedError> 136 <expectedError>Error: ERROR_VALIDATION_MIN_INCLUSIVE Element: inc_elem, Line: 49, Column: 24</expectedError> 137 <expectedError>Error: ERROR_VALIDATION_MIN_INCLUSIVE Element: inc_elem, Line: 52, Column: 13</expectedError> 138 <expectedError>Error: ERROR_VALIDATION_MAX_EXCLUSIVE Element: ex_elem, Line: 53, Column: 22</expectedError> 139 <expectedError>Error: ERROR_VALIDATION_MAX_EXCLUSIVE Element: ex_elem, Line: 56, Column: 12</expectedError> 140 <expectedError>Error: ERROR_VALIDATION_MIN_EXCLUSIVE Element: ex_elem, Line: 57, Column: 22</expectedError> 141 <expectedError>Error: ERROR_VALIDATION_MIN_EXCLUSIVE Element: ex_elem, Line: 60, Column: 12</expectedError> 142 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: stringLength_elem, Line: 63, Column: 8</expectedError> 143 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: stringLength_elem, Line: 64, Column: 2</expectedError> 144 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: stringLength_elem, Line: 64, Column: 22</expectedError> 145 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: stringLength_elem, Line: 65, Column: 45</expectedError> 146 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: stringMinLength_elem, Line: 66, Column: 51</expectedError> 147 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: stringMaxLength_elem, Line: 68, Column: 8</expectedError> 148 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: stringMaxLength_elem, Line: 69, Column: 2</expectedError> 149 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: stringMaxLength_elem, Line: 69, Column: 25</expectedError> 150 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: intListLength_elem, Line: 71, Column: 51</expectedError> 151 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: intListLength_elem, Line: 71, Column: 51</expectedError> 152 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: intListLength_elem, Line: 72, Column: 55</expectedError> 153 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: intListLength_elem, Line: 72, Column: 55</expectedError> 154 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: intListMaxLength_elem, Line: 73, Column: 38</expectedError> 155 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: intListMinLength_elem, Line: 74, Column: 57</expectedError> 156 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: intListMinLength_elem, Line: 74, Column: 57</expectedError> 157 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 77, Column: 56</expectedError> 158 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 77, Column: 56</expectedError> 159 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 78, Column: 58</expectedError> 160 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 79, Column: 62</expectedError> 161 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 79, Column: 62</expectedError> 162 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 80, Column: 42</expectedError> 163 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 80, Column: 64</expectedError> 164 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: nameListMaxLength_elem, Line: 83, Column: 68</expectedError> 165 <expectedError>Error: ERROR_VALIDATION_MAX_LENGTH Element: nameListMaxLength_elem, Line: 84, Column: 45</expectedError> 166 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: nameListMinLength_elem, Line: 86, Column: 62</expectedError> 167 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: nameListMinLength_elem, Line: 86, Column: 62</expectedError> 168 <expectedError>Error: ERROR_VALIDATION_MIN_LENGTH Element: nameListMinLength_elem, Line: 87, Column: 64</expectedError> 169 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: restrictedItemListLength_elem, Line: 90, Column: 72</expectedError> 170 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: restrictedItemListLength_elem, Line: 90, Column: 72</expectedError> 171 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: restrictedItemListLength_elem, Line: 91, Column: 45</expectedError> 172 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: restrictedItemListLength_elem, Line: 91, Column: 77</expectedError> 173 <expectedError>Error: ERROR_VALIDATION_MAX_INCLUSIVE Element: restrictedItemListLength_elem, Line: 92, Column: 43</expectedError> 174 <expectedError>Error: ERROR_VALIDATION_MIN_INCLUSIVE Element: restrictedItemListLength_elem, Line: 93, Column: 43</expectedError> 175 <expectedError>Error: ERROR_VALIDATION_MIN_INCLUSIVE Element: restrictedItemListLength_elem, Line: 94, Column: 72</expectedError> 176 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: restrictedItemListLength_elem, Line: 94, Column: 72</expectedError> 177 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: restrictedItemListLength_elem, Line: 94, Column: 72</expectedError> 178 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: restrictedStringList_elem, Line: 96, Column: 55</expectedError> 179 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: restrictedStringList_elem, Line: 96, Column: 83</expectedError> 180 </document> 181 <document input="tests/validation_simple_types/t01_mem_mgr_prob.xml" output="validation_simple_types__t01_mem_mgr_prob.xml" /> 182 </test> 183 <test config="config/testing.conf" input="tests/validation_simple_types/t03.xsd" rootElement="root"> 184 <document input="tests/validation_simple_types/t03_error_01.xml" output="validation_simple_types__t03_error_01.xml"> 185 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 7, Column: 56</expectedError> 186 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 7, Column: 56</expectedError> 187 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 8, Column: 58</expectedError> 188 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 9, Column: 62</expectedError> 189 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 9, Column: 62</expectedError> 190 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 10, Column: 42</expectedError> 191 <expectedError>Error: ERROR_VALIDATION_LENGTH Element: nameListLength_elem, Line: 10, Column: 64</expectedError> 192 </document> 193 </test> 194 <test config="config/testing.conf" input="tests/validation_simple_types/t04.xsd" rootElement="root"> 195 <document input="tests/validation_simple_types/t04_01.xml" output="validation_simple_types__t04_01.xml" /> 196 <document input="tests/validation_simple_types/t04_error_01.xml" output="validation_simple_types__t04_error_01.xml"> 197 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternElem, Attribute: stringPatternAttr, Line: 7, Column: 38</expectedError> 198 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternElem, Line: 7, Column: 62</expectedError> 199 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternElem, Line: 10, Column: 2</expectedError> 200 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternElem, Line: 11, Column: 46</expectedError> 201 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternListElem, Attribute: stringPatternListAttr, Line: 13, Column: 46</expectedError> 202 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternListElem, Attribute: stringPatternListAttr, Line: 13, Column: 46</expectedError> 203 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternListElem, Line: 13, Column: 54</expectedError> 204 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternListElem, Line: 13, Column: 78</expectedError> 205 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternListElem, Line: 15, Column: 10</expectedError> 206 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternListElem, Line: 16, Column: 2</expectedError> 207 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternListElem, Line: 17, Column: 34</expectedError> 208 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: stringPatternListElem, Line: 17, Column: 34</expectedError> 209 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: nameElem, Attribute: nameAttr, Line: 19, Column: 43, Additional: 1foo1</expectedError> 210 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: nameElem, Attribute: ncnameAttr, Line: 19, Column: 43, Additional: foo:</expectedError> 211 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: nameElem, Attribute: nmtokenAttr, Line: 19, Column: 43, Additional: *1foo</expectedError> 212 </document> 213 </test> 214 215 <test config="config/testing.conf" input="tests/validation_simple_types/t05.xsd" rootElement="root"> 216 <document input="tests/validation_simple_types/t05.xml" output="validation_simple_types__t05.xml"> 217 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 15</expectedError> 218 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 16</expectedError> 219 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 17</expectedError> 220 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 18</expectedError> 221 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 19</expectedError> 222 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 20</expectedError> 223 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 21</expectedError> 224 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 22</expectedError> 225 <expectedError>Error: ERROR_VALIDATION_PATTERN Element: sid, Line: 23</expectedError> 226 </document> 227 </test> 228 229 <!-- complex type validation --> 230 <test config="config/testing.conf" input="tests/validation_complex_types/t01.xsd" rootElement="root"> 231 <document input="tests/validation_complex_types/t01_01.xml" output="validation_complex_types__t01_01.xml" /> 232 <document input="tests/validation_complex_types/t01_02.xml" output="validation_complex_types__t01_02.xml" /> 233 <document input="tests/validation_complex_types/t01_03.xml" output="validation_complex_types__t01_03.xml" /> 234 <document input="tests/validation_complex_types/t01_04.xml" output="validation_complex_types__t01_04.xml" /> 235 <document input="tests/validation_complex_types/t01_error_01.xml" output="validation_complex_types__t01_error_01.xml"> 236 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 6, Column: 8, Additional: child: elem1</expectedError> 237 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 6, Column: 8, Additional: child: elem2</expectedError> 238 </document> 239 <document input="tests/validation_complex_types/t01_error_02.xml" output="validation_complex_types__t01_error_02.xml"> 240 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 7, Column: 8, Additional: child: elem2</expectedError> 241 </document> 242 <document input="tests/validation_complex_types/t01_error_03.xml" output="validation_complex_types__t01_error_03.xml"> 243 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_PREVIOUS_SIBLING_NOT_PRESENT Element: elem2, Line: 6, Column: 8, Additional: sibling: elem1</expectedError> 244 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 7, Column: 8, Additional: child: elem1</expectedError> 245 </document> 246 <document input="tests/validation_complex_types/t01_error_04.xml" output="validation_complex_types__t01_error_04.xml"> 247 <expectedError>Error: ERROR_VALIDATION_MAX_OCCURS_EXCEEDED Element: elem1, Line: 8, Column: 8, Additional:</expectedError> 248 </document> 249 </test> 250 251 <test config="config/testing.conf" input="tests/validation_complex_types/t02.xsd" rootElement="root"> 252 <document input="tests/validation_complex_types/t02_01.xml" output="validation_complex_types__t02_01.xml" /> 253 <document input="tests/validation_complex_types/t02_02.xml" output="validation_complex_types__t02_02.xml" /> 254 <document input="tests/validation_complex_types/t02_03.xml" output="validation_complex_types__t02_03.xml" /> 255 <document input="tests/validation_complex_types/t02_error_01.xml" output="validation_complex_types__t02_error_01.xml"> 256 <expectedError>Error: ERROR_VALIDATION_CHOICE_SIBLING_ALREADY_PRESENT Element: elem2, Line: 7, Column: 8, Additional: sibling: elem1</expectedError> 257 </document> 258 <document input="tests/validation_complex_types/t02_error_02.xml" output="validation_complex_types__t02_error_02.xml"> 259 <expectedError>Error: ERROR_VALIDATION_CHOICE_NO_CHILD_PRESENT Element: root, Line: 6, Column: 8, Additional:</expectedError> 260 </document> 261 <document input="tests/validation_complex_types/t02_error_03.xml" output="validation_complex_types__t02_error_03.xml"> 262 <expectedError>Error: ERROR_VALIDATION_MAX_OCCURS_EXCEEDED Element: elem1, Line: 8, Column: 8, Additional:</expectedError> 263 </document> 264 </test> 265 266 <test config="config/testing.conf" input="tests/validation_complex_types/t03.xsd" rootElement="root"> 267 <document input="tests/validation_complex_types/t03_01.xml" output="validation_complex_types__t03_01.xml" /> 268 <document input="tests/validation_complex_types/t03_02.xml" output="validation_complex_types__t03_02.xml" /> 269 <document input="tests/validation_complex_types/t03_03.xml" output="validation_complex_types__t03_03.xml" /> 270 <document input="tests/validation_complex_types/t03_error_01.xml" output="validation_complex_types__t03_error_01.xml"> 271 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 6, Column: 8, Additional: child: elem2</expectedError> 272 </document> 273 <document input="tests/validation_complex_types/t03_error_02.xml" output="validation_complex_types__t03_error_02.xml"> 274 <expectedError>Error: ERROR_VALIDATION_MAX_OCCURS_EXCEEDED Element: elem2, Line: 7, Column: 8, Additional:</expectedError> 275 </document> 276 <document input="tests/validation_complex_types/t03_error_03.xml" output="validation_complex_types__t03_error_03.xml"> 277 <expectedError>Error: ERROR_VALIDATION_MAX_OCCURS_EXCEEDED Element: elem1, Line: 8, Column: 8, Additional:</expectedError> 278 </document> 279 </test> 280 281 <test config="config/testing.conf" input="tests/validation_complex_types/t04.xsd" rootElement="root"> 282 <document input="tests/validation_complex_types/t04_01.xml" output="validation_complex_types__t04_01.xml" /> 283 <document input="tests/validation_complex_types/t04_02.xml" output="validation_complex_types__t04_02.xml" /> 284 <document input="tests/validation_complex_types/t04_03.xml" output="validation_complex_types__t04_03.xml" /> 285 <document input="tests/validation_complex_types/t04_error_01.xml" output="validation_complex_types__t04_error_01.xml"> 286 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_NEXT_SIBLING_ALREADY_PRESENT Element: seq2Elem1, Line: 9, Column: 13, Additional: sibling: seq2Elem3</expectedError> 287 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_NEXT_SIBLING_ALREADY_PRESENT Element: seq2Elem1, Line: 10, Column: 13, Additional: sibling: seq2Elem3</expectedError> 288 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_NEXT_SIBLING_ALREADY_PRESENT Element: seq2Elem1, Line: 11, Column: 13, Additional: sibling: seq2Elem3</expectedError> 289 <expectedError>Error: ERROR_VALIDATION_MAX_OCCURS_EXCEEDED Element: seq2Elem1, Line: 11, Column: 13, Additional:</expectedError> 290 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 14, Column: 8, Additional: child: allElem1</expectedError> 291 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 14, Column: 8, Additional: child: allElem3</expectedError> 292 </document> 293 <document input="tests/validation_complex_types/t04_error_02.xml" output="validation_complex_types__t04_error_02.xml"> 294 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: allElem1, Line: 7, Column: 13, Additional: child: seqElem1</expectedError> 295 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: allElem1, Line: 7, Column: 13, Additional: child: seqElem3</expectedError> 296 <expectedError>Error: ERROR_VALIDATION_MAX_OCCURS_EXCEEDED Element: allElem3, Line: 10, Column: 11, Additional:</expectedError> 297 </document> 298 <document input="tests/validation_complex_types/t04_error_03.xml" output="validation_complex_types__t04_error_03.xml"> 299 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 7, Column: 8, Additional: child: allElem1</expectedError> 300 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: root, Line: 7, Column: 8, Additional: child: allElem3</expectedError> 301 </document> 302 <document input="tests/validation_complex_types/t04_error_04.xml" output="validation_complex_types__t04_error_04.xml"> 303 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_PREVIOUS_SIBLING_NOT_PRESENT Element: seqElem2, Line: 8, Column: 12, Additional: sibling: seqElem1</expectedError> 304 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_PREVIOUS_SIBLING_NOT_PRESENT Element: seqElem2, Line: 9, Column: 12, Additional: sibling: seqElem1</expectedError> 305 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_PREVIOUS_SIBLING_NOT_PRESENT Element: seqElem2, Line: 10, Column: 12, Additional: sibling: seqElem1</expectedError> 306 <expectedError>Error: ERROR_VALIDATION_MAX_OCCURS_EXCEEDED Element: seqElem2, Line: 10, Column: 12, Additional:</expectedError> 307 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_NEXT_SIBLING_ALREADY_PRESENT Element: seqElem1, Line: 12, Column: 12, Additional: sibling: seqElem2</expectedError> 308 <expectedError>Error: ERROR_VALIDATION_CHOICE_SIBLING_ALREADY_PRESENT Element: choiceElem3, Line: 14, Column: 16, Additional: sibling: choiceElem2</expectedError> 309 <expectedError>Error: ERROR_VALIDATION_SEQUENCE_NEXT_SIBLING_ALREADY_PRESENT Element: seqElem1, Line: 17, Column: 12, Additional: sibling: seqElem2</expectedError> 310 <expectedError>Error: ERROR_VALIDATION_MAX_OCCURS_EXCEEDED Element: choiceElem2, Line: 20, Column: 16, Additional:</expectedError> 311 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: allElem1, Line: 24, Column: 13, Additional: child: seqElem3</expectedError> 312 </document> 313 </test> 314 315 <test config="config/testing.conf" input="tests/validation_complex_types/ancestor_type_unique.xsd" rootElement="root"> 316 <document input="tests/validation_complex_types/ancestor_type_unique_01.xml" output="validation_complex_types__ancestor_type_unique_01.xml" /> 317 <document input="tests/validation_complex_types/ancestor_type_unique__error_01.xml" output="validation_complex_types__ancestor_type_unique__error_01.xml"> 318 <expectedError>Error: ERROR_VALIDATION_UNEXPECTED_ELEMENT Element: childWithAnonType, Line: 22, Column: 23, Additional:</expectedError> 319 <expectedError>Error: ERROR_VALIDATION_UNEXPECTED_CLOSING_TAG Element: parent, Line: 23, Column: 13, Additional:</expectedError> 320 </document> 321 </test> 322 323 <test config="config/testing.conf" input="tests/validation_complex_types/collada_animation.xsd" rootElement="root"> 324 <document input="tests/validation_complex_types/collada_animation_01.xml" output="validation_complex_types__collada_animation_01.xml" /> 325 <document input="tests/validation_complex_types/collada_animation_02.xml" output="validation_complex_types__collada_animation_02.xml" /> 326 <document input="tests/validation_complex_types/collada_animation_03.xml" output="validation_complex_types__collada_animation_03.xml" /> 327 <document input="tests/validation_complex_types/collada_animation_04.xml" output="validation_complex_types__collada_animation_04.xml" /> 328 <document input="tests/validation_complex_types/collada_animation_05.xml" output="validation_complex_types__collada_animation_05.xml" /> 329 <document input="tests/validation_complex_types/collada_animation_error_01.xml" output="validation_complex_types__collada_animation_error_01.xml"> 330 <expectedError>Error: ERROR_VALIDATION_UNEXPECTED_ELEMENT Element: extra, Line: 6, Column: 9, Additional:</expectedError> 331 <expectedError>Error: ERROR_VALIDATION_UNEXPECTED_CLOSING_TAG Element: animation, Line: 7, Column: 14, Additional:</expectedError> 332 </document> 333 <document input="tests/validation_complex_types/collada_animation_error_02.xml" output="validation_complex_types__collada_animation_error_02.xml"> 334 <expectedError>Error: ERROR_VALIDATION_UNEXPECTED_CLOSING_TAG Element: animation, Line: 6, Column: 14, Additional:</expectedError> 335 </document> 336 </test> 337 338 <!-- CAEX --> 339 <test config="config/testing.conf" input="CAEX_ClassModel.xsd" rootElement="CAEXFile"> 340 <document input="2008-04-16_CAEX-DemoCell_Logics.aml" output="2008-04-16_CAEX-DemoCell_Logics.aml"> 341 <expectedError>Error: ERROR_UNKNOWN_ATTRIBUTE Element: CAEXFile, Attribute: xsi:noNamespaceSchemaLocation, Line: 2, Column: 73, Additional: CAEX_ClassModel.xsd</expectedError> 342 </document> 343 </test> 344 345 <!-- PLC open --> 346 <test config="config/testing.conf" input="tc6_xml_v20.xsd" rootElement="project"> 347 </test> 348 349 <!-- COLLADA 1.5 --> 350 <test config="config/testing.conf" input="collada_schema_1_5.xsd" rootElement="COLLADA"> 351 <document input="tests/collada_mathml_01.dae" output="collada_mathml_01.dae"> 352 <expectedError>Error: ERROR_UNKNOWN_ATTRIBUTE Element: COLLADA, Attribute: xsi:schemaLocation</expectedError> 353 </document> 354 <document input="tests/collada_mathml_02.dae" output="collada_mathml_02.dae"> 355 <expectedError>Error: ERROR_UNKNOWN_ATTRIBUTE Element: COLLADA, Attribute: xsi:schemaLocation</expectedError> 356 </document> 357 <document input="tests/collada_mathml_03.dae" output="collada_mathml_03.dae"> 358 <expectedError>Error: ERROR_UNKNOWN_ATTRIBUTE Element: COLLADA, Attribute: xsi:schemaLocation</expectedError> 359 </document> 360 <document input="tests/collada_mathml_04.dae" output="collada_mathml_04.dae"> 361 <expectedError>Error: ERROR_UNKNOWN_ATTRIBUTE Element: COLLADA, Attribute: xsi:schemaLocation</expectedError> 362 <expectedError>Error: ERROR_UNKNOWN_ATTRIBUTE Element: formula, Attribute: xmlns:math, Line: 16, Column: 22, Additional: http://www.w3.org/1998/Math/MathML</expectedError> 363 <expectedError>Error: ERROR_VALIDATION_MIN_OCCURS_UNMATCHED Element: technique_common, Line: 28, Column: 23, Additional: child: math</expectedError> 364 </document> 365 </test> 366 367 <!-- COLLADA 1.4 --> 368 <test config="config/testing.conf" input="collada_schema_1_4.xsd" rootElement="COLLADA"> 369 <document input="tests/collada_ns_in_extra_01.dae" output="collada_ns_in_extra_01.dae" /> 370 </test> 371 372</TestSuite> 373