1 | <root xsi:noNamespaceSchemaLocation="TypeInfoNoDTD.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ss="http://www.secondSchema" > |
---|
2 | <attrTest |
---|
3 | anySimpleType="asdas" |
---|
4 | string="string" |
---|
5 | boolean="true" |
---|
6 | decimal="2.0" |
---|
7 | float="2.1" |
---|
8 | double="2.1" |
---|
9 | duration="P1Y2M3DT10H30M" |
---|
10 | dateTime="2000-10-30T11:12:00" |
---|
11 | time="11:12:00" |
---|
12 | date="2000-10-30" |
---|
13 | gYearMonth="1999-01" |
---|
14 | gYear="1999" |
---|
15 | gMonthDay="--01-08" |
---|
16 | gDay="---21" |
---|
17 | gMonth="--12--" |
---|
18 | hexBinary="0FB7" |
---|
19 | base64Binary="abcd" |
---|
20 | anyURI="http://www.example.com/" |
---|
21 | QName="xsla" |
---|
22 | normalizedString="example" |
---|
23 | token="example" |
---|
24 | language="en" |
---|
25 | NMTOKEN="example" |
---|
26 | NMTOKENS="example bar" |
---|
27 | Name="example" |
---|
28 | NCName="example" |
---|
29 | integer="1" |
---|
30 | nonPositiveInteger="-1" |
---|
31 | negativeInteger="-1" |
---|
32 | long="1" |
---|
33 | int="1" |
---|
34 | short="1" |
---|
35 | byte="1" |
---|
36 | nonNegativeInteger="1" |
---|
37 | unsignedLong="1" |
---|
38 | unsignedInt="1" |
---|
39 | unsignedShort="1" |
---|
40 | unsignedByte="1" |
---|
41 | positiveInteger="1" |
---|
42 | ID="abc" |
---|
43 | IDREF="abc" |
---|
44 | IDREFS="abc" |
---|
45 | defaultString="test" |
---|
46 | xmlns:prefix="http://lala" |
---|
47 | xsi:noNamespaceSchemaLocation="hello" |
---|
48 | /> |
---|
49 | <eleTest > |
---|
50 | <level1string >string</level1string> |
---|
51 | <level1boolean >true</level1boolean> |
---|
52 | <level1decimal >2.0</level1decimal> |
---|
53 | <level1float >2.1</level1float> |
---|
54 | <level1double >2.1</level1double> |
---|
55 | <level1duration >P1Y2M3DT10H30M</level1duration> |
---|
56 | <level1dateTime >2000-10-30T11:12:00</level1dateTime> |
---|
57 | <level1time >11:12:00</level1time> |
---|
58 | <level1date >2000-10-30</level1date> |
---|
59 | <level1gYearMonth >1999-01</level1gYearMonth> |
---|
60 | <level1gYear >1999</level1gYear> |
---|
61 | <level1gMonthDay >--01-08</level1gMonthDay> |
---|
62 | <level1gDay >---21</level1gDay> |
---|
63 | <level1gMonth >--12--</level1gMonth> |
---|
64 | <level1hexBinary >0FB7</level1hexBinary> |
---|
65 | <level1base64Binary >abcd</level1base64Binary> |
---|
66 | <level1anyURI >http://www.example.com/</level1anyURI> |
---|
67 | <level1QName >xsla</level1QName> |
---|
68 | <level1normalizedString >example</level1normalizedString> |
---|
69 | <level1token >example</level1token> |
---|
70 | <level1language >en</level1language> |
---|
71 | <level1NMTOKEN >example</level1NMTOKEN> |
---|
72 | <level1NMTOKENS >example bar</level1NMTOKENS> |
---|
73 | <level1Name >example</level1Name> |
---|
74 | <level1NCName >example</level1NCName> |
---|
75 | <level1integer >1</level1integer> |
---|
76 | <level1nonPositiveInteger >-1</level1nonPositiveInteger> |
---|
77 | <level1negativeInteger >-1</level1negativeInteger> |
---|
78 | <level1long >1</level1long> |
---|
79 | <level1int >1</level1int> |
---|
80 | <level1short >1</level1short> |
---|
81 | <level1byte >1</level1byte> |
---|
82 | <level1nonNegativeInteger >1</level1nonNegativeInteger> |
---|
83 | <level1unsignedLong >1</level1unsignedLong> |
---|
84 | <level1unsignedInt >1</level1unsignedInt> |
---|
85 | <level1unsignedShort >1</level1unsignedShort> |
---|
86 | <level1unsignedByte >1</level1unsignedByte> |
---|
87 | <level1positiveInteger >1</level1positiveInteger> |
---|
88 | <level1anyType /> |
---|
89 | </eleTest> |
---|
90 | <simpleDerTest decimalDerived="50" stringDerived="hello" > |
---|
91 | <decimalDerived >20</decimalDerived> |
---|
92 | <stringDerived >hello</stringDerived> |
---|
93 | </simpleDerTest> |
---|
94 | <complexTest a="abcd" b="hello" c="50" > |
---|
95 | <a >abcd</a> |
---|
96 | <b >hello</b> |
---|
97 | <c >50</c> |
---|
98 | </complexTest> |
---|
99 | <complexDerTest a="abcd" b="hello" c="50" > |
---|
100 | <a >abcd</a> |
---|
101 | <b >hello</b> |
---|
102 | <c >50</c> |
---|
103 | <d >abcdefg</d> |
---|
104 | </complexDerTest> |
---|
105 | <unionTest > |
---|
106 | <testEle >50</testEle> |
---|
107 | <testEle >hello</testEle> |
---|
108 | <testEle >200</testEle> |
---|
109 | <testEle >abcdefg</testEle> |
---|
110 | <testEle2 testAttr="50" testAttr2="hello" /> |
---|
111 | <testEle2 testAttr="hello" testAttr2="50" /> |
---|
112 | <testEle2 testAttr="200" testAttr2="abcdefg" /> |
---|
113 | <testEle2 testAttr="abcdefg" testAttr2="200" /> |
---|
114 | </unionTest> |
---|
115 | <anonymousTest partNum="50"> |
---|
116 | <quantity>50</quantity> |
---|
117 | <size>25</size> |
---|
118 | <anonElement>11</anonElement> |
---|
119 | </anonymousTest> |
---|
120 | <xsiTypeTest> |
---|
121 | <number>99</number> |
---|
122 | <number xsi:type="level1" >74</number> |
---|
123 | <number xsi:type="level2" >49</number> |
---|
124 | <complexXsi > |
---|
125 | <a >a</a> |
---|
126 | </complexXsi> |
---|
127 | <complexXsi xsi:type="level1Complex" > |
---|
128 | <a >a</a> |
---|
129 | <b >b</b> |
---|
130 | </complexXsi> |
---|
131 | <complexXsi xsi:type="level2Complex" > |
---|
132 | <a >a</a> |
---|
133 | <b >b</b> |
---|
134 | <c >c</c> |
---|
135 | </complexXsi> |
---|
136 | </xsiTypeTest> |
---|
137 | <anyTestPartial xhtml:attr2="some value" > |
---|
138 | <xhtml:fakeTag1 /> |
---|
139 | <xhtml:fakeTag2 /> |
---|
140 | <ss:realTag1 >la</ss:realTag1> |
---|
141 | </anyTestPartial> |
---|
142 | <anyTest ss:attr1="string" ss:attr2="2" ss:attr3="string" ss:attr4="2"> |
---|
143 | <ss:realTag2 >la</ss:realTag2> |
---|
144 | <ss:realTag3 >la</ss:realTag3> |
---|
145 | <ss:notRealTag >la</ss:notRealTag> |
---|
146 | </anyTest> |
---|
147 | <anyTestAttr1 ss:attr5="2" /> |
---|
148 | <anyTestAttr2 ss:attr5="2" /> |
---|
149 | <anyTestMissing /> |
---|
150 | <invalidTest simple="abcd" invalid="asdas" > |
---|
151 | <simple >abcd</simple> |
---|
152 | <complex > |
---|
153 | <a >asa</a> |
---|
154 | <invalid /> |
---|
155 | </complex> |
---|
156 | <number xsi:type="stringDerivedType" >74</number> |
---|
157 | <complexXsi xsi:type="simpleDerTestType" > |
---|
158 | <a >a</a> |
---|
159 | <b >b</b> |
---|
160 | </complexXsi> |
---|
161 | <unionTest >hello1</unionTest> |
---|
162 | <empty ><a /><a /></empty> |
---|
163 | <invalidAttrTest attr="lala" /> |
---|
164 | <missingAttrTest /> |
---|
165 | <prohibitedAttrTest attr="lala" /> |
---|
166 | </invalidTest> |
---|
167 | </root> |
---|