|
525
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
<head> |
|
|
4 |
<meta charset="utf-8"> |
|
|
5 |
<title>Example: DataSchema.XML for XML Data</title> |
|
|
6 |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic"> |
|
|
7 |
<link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css"> |
|
|
8 |
<link rel="stylesheet" href="../assets/css/main.css"> |
|
|
9 |
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
|
|
10 |
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> |
|
|
11 |
<script src="../../build/yui/yui-min.js"></script> |
|
|
12 |
|
|
|
13 |
</head> |
|
|
14 |
<body> |
|
|
15 |
<!-- |
|
|
16 |
<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
|
|
17 |
--> |
|
|
18 |
<div id="doc"> |
|
|
19 |
<div id="hd"> |
|
|
20 |
<h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1> |
|
|
21 |
</div> |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
<h1>Example: DataSchema.XML for XML Data</h1> |
|
|
25 |
<div class="yui3-g"> |
|
|
26 |
<div class="yui3-u-3-4"> |
|
|
27 |
<div id="main"> |
|
|
28 |
<div class="content"><div class="intro"> |
|
|
29 |
<p>DataSchema.XML normalizes arbitrary XML data against a given schema into an object with known properties.</p> |
|
|
30 |
|
|
|
31 |
<p><strong>Note:</strong> XML parsing currently has known issues on the Android WebKit browser.</p> |
|
|
32 |
</div> |
|
|
33 |
|
|
|
34 |
<div class="example yui3-skin-sam"> |
|
|
35 |
<style scoped> |
|
|
36 |
/* custom styles for this example */ |
|
|
37 |
#demo .output {margin-bottom:1em; padding:10px; border:1px solid #D9D9D9;} |
|
|
38 |
</style> |
|
|
39 |
|
|
|
40 |
<form id="demo"> |
|
|
41 |
<h4>Basic example</h4> |
|
|
42 |
<h6>Data</h6> |
|
|
43 |
<pre> |
|
|
44 |
<root> |
|
|
45 |
<session>34637542</session> |
|
|
46 |
<category name="music" id="5"><results> |
|
|
47 |
<song id="59672468"> |
|
|
48 |
<title>I Kissed A Girl</title> |
|
|
49 |
<rank>1</rank> |
|
|
50 |
<artist id="30326214">Katy Perry</artist> |
|
|
51 |
</song> |
|
|
52 |
<song id="47973564"> |
|
|
53 |
<title>Shake It</title> |
|
|
54 |
<rank>2</rank> |
|
|
55 |
<artist id="45575683">Metro Station</artist> |
|
|
56 |
</song> |
|
|
57 |
<song id="52207363"> |
|
|
58 |
<title>Bleeding Love</title> |
|
|
59 |
<rank>3</rank> |
|
|
60 |
<artist id="37956508">Leona Lewis</artist> |
|
|
61 |
</song> |
|
|
62 |
</results></category> |
|
|
63 |
</root> |
|
|
64 |
</pre> |
|
|
65 |
|
|
|
66 |
<h6>Schema</h6> |
|
|
67 |
<pre> |
|
|
68 |
{ |
|
|
69 |
resultListLocator: "song", |
|
|
70 |
resultFields: [{key:"title"}, {key:"artist"}, {key:"rank"}] |
|
|
71 |
} |
|
|
72 |
</pre> |
|
|
73 |
|
|
|
74 |
<h6>Normalized data</h6> |
|
|
75 |
<input type="button" id="demo_apply_basic" value="Apply schema =>"> |
|
|
76 |
<div id="demo_output_basic" class="output"></div> |
|
|
77 |
|
|
|
78 |
<h4>Complex example</h4> |
|
|
79 |
<h6>Data</h6> |
|
|
80 |
<pre> |
|
|
81 |
<Response> |
|
|
82 |
<Session>542235629</Session> |
|
|
83 |
<Tracks start="1" count="10" total="98" errorCount="0" |
|
|
84 |
defaultSort="popularity+" description="Top 100 Tracks" |
|
|
85 |
name="Top 100 Tracks"> |
|
|
86 |
<Track id="59672468" rating="-1" title="I Kissed A Girl"> |
|
|
87 |
<Artist id="30326214" rating="-1">Katy Perry</Artist> |
|
|
88 |
<ItemInfo><ChartPosition last="26" this="1"/></ItemInfo> |
|
|
89 |
</Track> |
|
|
90 |
<Track id="47973564" rating="-1" title="Shake It"> |
|
|
91 |
<Artist id="45575683" rating="-1">Metro Station</Artist> |
|
|
92 |
<ItemInfo><ChartPosition last="27" this="2"/></ItemInfo> |
|
|
93 |
</Track> |
|
|
94 |
<Track id="52207363" rating="-1" title="Bleeding Love"> |
|
|
95 |
<Artist id="37956508" rating="-1">Leona Lewis</Artist> |
|
|
96 |
<ItemInfo><ChartPosition last="28" this="3"/></ItemInfo> |
|
|
97 |
</Track> |
|
|
98 |
</Tracks> |
|
|
99 |
</Response> |
|
|
100 |
</pre> |
|
|
101 |
|
|
|
102 |
<h6>Schema</h6> |
|
|
103 |
<pre> |
|
|
104 |
{ |
|
|
105 |
metaFields: {session:"//Session", total:"//Tracks/@total"}, |
|
|
106 |
resultListLocator: "//Track", |
|
|
107 |
resultFields: [{key:"song", locator:"@title"}, |
|
|
108 |
{key:"artist", locator:"Artist"}, |
|
|
109 |
{key:"rank", locator:"ItemInfo/ChartPosition/@this"}] |
|
|
110 |
} |
|
|
111 |
</pre> |
|
|
112 |
|
|
|
113 |
<h6>Normalized data</h6> |
|
|
114 |
<input type="button" id="demo_apply_complex" value="Apply schema =>"> |
|
|
115 |
<div id="demo_output_complex" class="output"></div> |
|
|
116 |
|
|
|
117 |
<h4>Nested example</h4> |
|
|
118 |
<h6>Data</h6> |
|
|
119 |
<pre> |
|
|
120 |
<desserts> |
|
|
121 |
<dessert type="treat"> |
|
|
122 |
<name>cupcake</name> |
|
|
123 |
<flavors> |
|
|
124 |
<flavor name="chocolate"/> |
|
|
125 |
<flavor name="red velvet"/> |
|
|
126 |
</flavors> |
|
|
127 |
</dessert> |
|
|
128 |
<dessert type="treat"> |
|
|
129 |
<name>ice cream</name> |
|
|
130 |
<flavors> |
|
|
131 |
<flavor name="chocolate"/> |
|
|
132 |
<flavor name="strawberry"/> |
|
|
133 |
<flavor name="vanilla"/> |
|
|
134 |
</flavors> |
|
|
135 |
</dessert> |
|
|
136 |
<dessert type="treat"> |
|
|
137 |
<name>pie</name> |
|
|
138 |
<flavors> |
|
|
139 |
<flavor name="banana cream"/> |
|
|
140 |
<flavor name="blueberry"/> |
|
|
141 |
<flavor name="cherry"/> |
|
|
142 |
</flavors> |
|
|
143 |
</dessert> |
|
|
144 |
<dessert type="beverage"> |
|
|
145 |
<name>hot chocolate</name>> |
|
|
146 |
</dessert> |
|
|
147 |
<dessert type="beverage"> |
|
|
148 |
<name>port wine</name> |
|
|
149 |
</dessert> |
|
|
150 |
</desserts> |
|
|
151 |
</pre> |
|
|
152 |
|
|
|
153 |
<h6>Schema</h6> |
|
|
154 |
<pre> |
|
|
155 |
{ |
|
|
156 |
resultListLocator: "dessert", |
|
|
157 |
resultFields: [ |
|
|
158 |
{key:"type", locator:"@type"}, |
|
|
159 |
{key:"name", locator:"name"}, |
|
|
160 |
{key:"flavors", schema: { |
|
|
161 |
resultListLocator: "flavor", |
|
|
162 |
resultFields: [ |
|
|
163 |
{key:"flavor", locator:"@name"} |
|
|
164 |
] |
|
|
165 |
}} |
|
|
166 |
] |
|
|
167 |
} |
|
|
168 |
</pre> |
|
|
169 |
|
|
|
170 |
<h6>Normalized data</h6> |
|
|
171 |
<input type="button" id="demo_apply_nested" value="Apply schema =>"> |
|
|
172 |
<div id="demo_output_nested" class="output"></div> |
|
|
173 |
</form> |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
<script> |
|
|
177 |
YUI().use("dump", "node", "datatype-xml", "dataschema-xml", function (Y) { |
|
|
178 |
Y.on("click", function(e){ |
|
|
179 |
var data_in = Y.DataType.XML.parse('<root><session>34637542</session><category name="music" id="5"><results><song id="59672468"><title>I Kissed A Girl</title><rank>1</rank><artist id="30326214">Katy Perry</artist></song><song id="47973564"><title>Shake It</title><rank>2</rank><artist id="45575683">Metro Station</artist></song><song id="52207363"><title>Bleeding Love</title><rank>3</rank><artist id="37956508">Leona Lewis</artist></song></results></category></root>'), |
|
|
180 |
schema = { |
|
|
181 |
resultListLocator: "song", |
|
|
182 |
resultFields: [{key:"title"}, {key:"artist"}, {key:"rank"}] // Or simply ["title", "artist", "rank"] |
|
|
183 |
}; |
|
|
184 |
Y.one("#demo_output_basic").setHTML(Y.dump(Y.DataSchema.XML.apply(schema, data_in))); |
|
|
185 |
}, "#demo_apply_basic"); |
|
|
186 |
|
|
|
187 |
|
|
|
188 |
Y.on("click", function(e){ |
|
|
189 |
var data_in = Y.DataType.XML.parse('<Response><Session>542235629</Session><Tracks start="1" count="10" total="98" errorCount="0" defaultSort="popularity+" description="Top 100 Tracks" name="Top 100 Tracks" ><Track id="59672468" rating="-1" title="I Kissed A Girl"><Artist id="30326214" rating="-1">Katy Perry</Artist><ItemInfo><ChartPosition last="26" this="1"/></ItemInfo></Track><Track id="47973564" rating="-1" title="Shake It"><Artist id="45575683" rating="-1">Metro Station</Artist><ItemInfo><ChartPosition last="27" this="2"/></ItemInfo></Track><Track id="52207363" rating="-1" title="Bleeding Love"><Artist id="37956508" rating="-1">Leona Lewis</Artist><ItemInfo><ChartPosition last="28" this="3"/></ItemInfo></Track></Tracks></Response>'), |
|
|
190 |
schema = { |
|
|
191 |
metaFields: {session:"//Session", total:"//Tracks/@total"}, |
|
|
192 |
resultListLocator: "//Track", |
|
|
193 |
resultFields: [{key:"song", locator:"@title"}, {key:"artist", locator:"Artist"}, {key:"rank", locator:"ItemInfo/ChartPosition/@this"}] |
|
|
194 |
}; |
|
|
195 |
Y.one("#demo_output_complex").setHTML(Y.dump(Y.DataSchema.XML.apply(schema, data_in))); |
|
|
196 |
}, "#demo_apply_complex"); |
|
|
197 |
|
|
|
198 |
Y.on("click", function(e){ |
|
|
199 |
var data_in = Y.DataType.XML.parse('<desserts><dessert type="treat"><name>cupcake</name><flavors><flavor name="chocolate"/><flavor name="red velvet"/></flavors></dessert><dessert type="treat"><name>ice cream</name><flavors><flavor name="chocolate"/><flavor name="strawberry"/><flavor name="vanilla"/></flavors></dessert><dessert type="treat"><name>pie</name><flavors><flavor name="banana cream"/><flavor name="blueberry"/><flavor name="cherry"/></flavors></dessert><dessert type="beverage"><name>hot chocolate</name></dessert><dessert type="beverage"><name>port wine</name></dessert></desserts>'), |
|
|
200 |
schema = { |
|
|
201 |
resultListLocator: "dessert", |
|
|
202 |
resultFields: [ |
|
|
203 |
{key:"type", locator:"@type"}, |
|
|
204 |
{key:"name", locator:"name"}, |
|
|
205 |
{key:"flavors", schema: { |
|
|
206 |
resultListLocator: "flavor", |
|
|
207 |
resultFields: [ |
|
|
208 |
{key:"flavor", locator:"@name"} |
|
|
209 |
] |
|
|
210 |
}} |
|
|
211 |
] |
|
|
212 |
}; |
|
|
213 |
Y.one("#demo_output_nested").setHTML(Y.dump(Y.DataSchema.XML.apply(schema, data_in))); |
|
|
214 |
}, "#demo_apply_nested"); |
|
|
215 |
}); |
|
|
216 |
</script> |
|
|
217 |
|
|
|
218 |
</div> |
|
|
219 |
|
|
|
220 |
<p>In order to use DataSchema.XML, input data must be an XML document.</p> |
|
|
221 |
|
|
|
222 |
<pre class="code prettyprint">YUI().use("datatype-xml", "dataschema-xml", function(Y) { |
|
|
223 |
var data_in = Y.DataType.XML.parse('<root><session>34637542</session><category name="music" id="5"><results><song id="59672468"><title>I Kissed A Girl</title><rank>1</rank><artist id="30326214">Katy Perry</artist></song><song id="47973564"><title>Shake It</title><rank>2</rank><artist id="45575683">Metro Station</artist></song><song id="52207363"><title>Bleeding Love</title><rank>3</rank><artist id="37956508">Leona Lewis</artist></song></results></category></root>'), |
|
|
224 |
schema = { |
|
|
225 |
resultListLocator: "song", |
|
|
226 |
// Or simply ["title", "artist", "rank"] |
|
|
227 |
resultFields: [{key:"title"}, {key:"artist"}, {key:"rank"}] |
|
|
228 |
}, |
|
|
229 |
data_out = Y.DataSchema.XML.apply(schema, data_in)); |
|
|
230 |
|
|
|
231 |
alert(data_out); |
|
|
232 |
});</pre> |
|
|
233 |
|
|
|
234 |
|
|
|
235 |
<p>The data itself can get fairly complex, with deeply nested nodes and values held in attributes. In your schema, you can use XPath notation to define these locations.</p> |
|
|
236 |
|
|
|
237 |
<pre class="code prettyprint">YUI().use("datatype-xml", "dataschema-xml", function(Y) { |
|
|
238 |
var data_in = Y.DataType.XML.parse('<Response><Session>542235629</Session><Tracks start="1" count="10" total="98" errorCount="0" defaultSort="popularity+" description="Top 100 Tracks" name="Top 100 Tracks" ><Track id="59672468" rating="-1" title="I Kissed A Girl"><Artist id="30326214" rating="-1">Katy Perry</Artist><ItemInfo><ChartPosition last="26" this="1"/></ItemInfo></Track><Track id="47973564" rating="-1" title="Shake It"><Artist id="45575683" rating="-1">Metro Station</Artist><ItemInfo><ChartPosition last="27" this="2"/></ItemInfo></Track><Track id="52207363" rating="-1" title="Bleeding Love"><Artist id="37956508" rating="-1">Leona Lewis</Artist><ItemInfo><ChartPosition last="28" this="3"/></ItemInfo></Track></Tracks></Response>'), |
|
|
239 |
schema = { |
|
|
240 |
metaFields: {session:"//Session", total:"//Tracks/@total"}, |
|
|
241 |
resultListLocator: "//Track", |
|
|
242 |
resultFields: [ |
|
|
243 |
{key:"song", locator:"@title"}, |
|
|
244 |
{key:"artist", locator:"Artist"}, |
|
|
245 |
{key:"rank", locator:"ItemInfo/ChartPosition/@this"} |
|
|
246 |
] |
|
|
247 |
}, |
|
|
248 |
data_out = Y.DataSchema.XML.apply(schema, data_in)); |
|
|
249 |
|
|
|
250 |
alert(data_out); |
|
|
251 |
});</pre> |
|
|
252 |
|
|
|
253 |
|
|
|
254 |
<p>Nested schemas are supported as of version 3.1:</p> |
|
|
255 |
|
|
|
256 |
<pre class="code prettyprint">YUI().use("datatype-xml", "dataschema-xml", function(Y) { |
|
|
257 |
var data_in = Y.DataType.XML.parse('<desserts><dessert type="treat"><name>cupcake</name><flavors><flavor name="chocolate"/><flavor name="red velvet"/></flavors></dessert><dessert type="treat"><name>ice cream</name><flavors><flavor name="chocolate"/><flavor name="strawberry"/><flavor name="vanilla"/></flavors></dessert><dessert type="treat"><name>pie</name><flavors><flavor name="banana cream"/><flavor name="blueberry"/><flavor name="cherry"/></flavors></dessert><dessert type="beverage"><name>hot chocolate</name></dessert><dessert type="beverage"><name>port wine</name></dessert></desserts>'), |
|
|
258 |
schema = { |
|
|
259 |
resultListLocator: "dessert", |
|
|
260 |
resultFields: [ |
|
|
261 |
{key:"type", locator:"@type"}, |
|
|
262 |
{key:"name", locator:"name"}, |
|
|
263 |
{key:"flavors", schema: { |
|
|
264 |
resultListLocator: "flavor", |
|
|
265 |
resultFields: [ |
|
|
266 |
{key:"flavor", locator:"@name"} |
|
|
267 |
] |
|
|
268 |
}} |
|
|
269 |
] |
|
|
270 |
}, |
|
|
271 |
data_out = Y.DataSchema.XML.apply(schema, data_in)); |
|
|
272 |
|
|
|
273 |
alert(data_out); |
|
|
274 |
});</pre> |
|
|
275 |
|
|
|
276 |
</div> |
|
|
277 |
</div> |
|
|
278 |
</div> |
|
|
279 |
|
|
|
280 |
<div class="yui3-u-1-4"> |
|
|
281 |
<div class="sidebar"> |
|
|
282 |
|
|
|
283 |
|
|
|
284 |
|
|
|
285 |
<div class="sidebox"> |
|
|
286 |
<div class="hd"> |
|
|
287 |
<h2 class="no-toc">Examples</h2> |
|
|
288 |
</div> |
|
|
289 |
|
|
|
290 |
<div class="bd"> |
|
|
291 |
<ul class="examples"> |
|
|
292 |
|
|
|
293 |
|
|
|
294 |
<li data-description="Schema parsing a JavaScript array."> |
|
|
295 |
<a href="dataschema-array.html">DataSchema.Array</a> |
|
|
296 |
</li> |
|
|
297 |
|
|
|
298 |
|
|
|
299 |
|
|
|
300 |
<li data-description="Schema parsing JSON data."> |
|
|
301 |
<a href="dataschema-json.html">DataSchema.JSON</a> |
|
|
302 |
</li> |
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
<li data-description="Schema parsing XML data."> |
|
|
307 |
<a href="dataschema-xml.html">DataSchema.XML for XML Data</a> |
|
|
308 |
</li> |
|
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
|
312 |
<li data-description="Schema parsing data held in TABLE elements."> |
|
|
313 |
<a href="dataschema-table.html">DataSchema.XML for HTML Tables</a> |
|
|
314 |
</li> |
|
|
315 |
|
|
|
316 |
|
|
|
317 |
|
|
|
318 |
<li data-description="Schema parsing delimited plain-text data."> |
|
|
319 |
<a href="dataschema-text.html">DataSchema.Text</a> |
|
|
320 |
</li> |
|
|
321 |
|
|
|
322 |
|
|
|
323 |
|
|
|
324 |
<li data-description="Parsing data into specified types as the schema is being applied."> |
|
|
325 |
<a href="dataschema-parsing.html">Enforcing DataTypes</a> |
|
|
326 |
</li> |
|
|
327 |
|
|
|
328 |
|
|
|
329 |
|
|
|
330 |
|
|
|
331 |
|
|
|
332 |
|
|
|
333 |
|
|
|
334 |
|
|
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
|
338 |
|
|
|
339 |
|
|
|
340 |
|
|
|
341 |
</ul> |
|
|
342 |
</div> |
|
|
343 |
</div> |
|
|
344 |
|
|
|
345 |
|
|
|
346 |
|
|
|
347 |
<div class="sidebox"> |
|
|
348 |
<div class="hd"> |
|
|
349 |
<h2 class="no-toc">Examples That Use This Component</h2> |
|
|
350 |
</div> |
|
|
351 |
|
|
|
352 |
<div class="bd"> |
|
|
353 |
<ul class="examples"> |
|
|
354 |
|
|
|
355 |
|
|
|
356 |
|
|
|
357 |
|
|
|
358 |
|
|
|
359 |
|
|
|
360 |
|
|
|
361 |
|
|
|
362 |
|
|
|
363 |
|
|
|
364 |
|
|
|
365 |
|
|
|
366 |
|
|
|
367 |
|
|
|
368 |
<li data-description="The Local DataSource manages retrieval of in-page data, from JavaScript arrays and objects to DOM elements."> |
|
|
369 |
<a href="../datasource/datasource-local.html">DataSource.Local</a> |
|
|
370 |
</li> |
|
|
371 |
|
|
|
372 |
|
|
|
373 |
|
|
|
374 |
<li data-description="The Get DataSource, which manages retrieval of data from remote sources via the Get Utility, can be useful for accessing data from cross-domain servers without the need for a proxy."> |
|
|
375 |
<a href="../datasource/datasource-get.html">DataSource.Get</a> |
|
|
376 |
</li> |
|
|
377 |
|
|
|
378 |
|
|
|
379 |
|
|
|
380 |
<li data-description="The IO DataSource manages retrieval of data from remote sources, via the IO Utility."> |
|
|
381 |
<a href="../datasource/datasource-io.html">DataSource.IO</a> |
|
|
382 |
</li> |
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
|
386 |
<li data-description="The Function DataSource, which manages retrieval of data from a JavaScript function, provides a highly customizeable mechanism for implementer-defined data retrieval algorithms"> |
|
|
387 |
<a href="../datasource/datasource-function.html">DataSource.Function</a> |
|
|
388 |
</li> |
|
|
389 |
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
<li data-description="Use the DataSourceCache plugin to enable caching and reduce server calls to remote sources."> |
|
|
393 |
<a href="../datasource/datasource-caching.html">DataSource with Caching</a> |
|
|
394 |
</li> |
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
<li data-description="The DataSourceCache plugin supports offline caching so that cached data persists across browser sessions."> |
|
|
399 |
<a href="../datasource/datasource-offlinecache.html">DataSource with Offline Cache</a> |
|
|
400 |
</li> |
|
|
401 |
|
|
|
402 |
|
|
|
403 |
</ul> |
|
|
404 |
</div> |
|
|
405 |
</div> |
|
|
406 |
|
|
|
407 |
</div> |
|
|
408 |
</div> |
|
|
409 |
</div> |
|
|
410 |
</div> |
|
|
411 |
|
|
|
412 |
<script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
|
413 |
<script>prettyPrint();</script> |
|
|
414 |
|
|
|
415 |
<script> |
|
|
416 |
YUI.Env.Tests = { |
|
|
417 |
examples: [], |
|
|
418 |
project: '../assets', |
|
|
419 |
assets: '../assets/dataschema', |
|
|
420 |
name: 'dataschema-xml', |
|
|
421 |
title: 'DataSchema.XML for XML Data', |
|
|
422 |
newWindow: '', |
|
|
423 |
auto: false |
|
|
424 |
}; |
|
|
425 |
YUI.Env.Tests.examples.push('dataschema-array'); |
|
|
426 |
YUI.Env.Tests.examples.push('dataschema-json'); |
|
|
427 |
YUI.Env.Tests.examples.push('dataschema-xml'); |
|
|
428 |
YUI.Env.Tests.examples.push('dataschema-table'); |
|
|
429 |
YUI.Env.Tests.examples.push('dataschema-text'); |
|
|
430 |
YUI.Env.Tests.examples.push('dataschema-parsing'); |
|
|
431 |
YUI.Env.Tests.examples.push('datasource-local'); |
|
|
432 |
YUI.Env.Tests.examples.push('datasource-get'); |
|
|
433 |
YUI.Env.Tests.examples.push('datasource-io'); |
|
|
434 |
YUI.Env.Tests.examples.push('datasource-function'); |
|
|
435 |
YUI.Env.Tests.examples.push('datasource-caching'); |
|
|
436 |
YUI.Env.Tests.examples.push('datasource-offlinecache'); |
|
|
437 |
|
|
|
438 |
</script> |
|
|
439 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
440 |
|
|
|
441 |
|
|
|
442 |
|
|
|
443 |
</body> |
|
|
444 |
</html> |