WD-xslt20req-20010214
58.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>XSLT Requirements</title>
<style type="text/css">
p.element-syntax { border: solid thin }code { font-family: monospace }
.tabheader { background-color: #e0e0e0 }
.row0 { background-color: #f0f0f0 }
.row1 { background-color: white }
.java-class {
font-family: monospace;
white-space: pre;
}
.lit {font-family:monospace}
.req {font-size:90%; font-weight:bold}
.id {font-size:80%}
.p0 {color:red; font-weight:bold}
.p1 {color:blue; font-weight:bold}
.p2 {color:#999999; font-weight:bold}
.p3 {color:green; font-weight:bold}
.r0 {background:white}
.r1 {background:white}
.s1 {margin-left: 20pt}
</style>
<link rel="stylesheet" type="text/css"
href="http://www.w3.org/StyleSheets/TR/W3C-WD">
</head>
<body>
<div class="head">
<a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/WWW/w3c_home"
alt="W3C" height="48" width="72"></a>
<h1>XSLT Requirements<br>
Version 2.0</h1>
<h2>W3C Working Draft 14 February 2001</h2>
<dl>
<dt>This version:</dt>
<dd><a
href="http://www.w3.org/TR/2001/WD-xslt20req-20010214">http://www.w3.org/TR/2001/WD-xslt20req-20010214</a>
<br>
(available in <a
href="http://www.w3.org/TR/2001/WD-xslt20req-20010214.xml">XML</a> or <a
href="http://www.w3.org/TR/2001/WD-xslt20req-20010214.html">HTML</a>)</dd>
<dt>Latest version:</dt>
<dd><a
href="http://www.w3.org/TR/xslt20req">http://www.w3.org/TR/xslt20req</a>
<br>
</dd>
<dt>Editors:</dt>
<dd>Steve Muench (Oracle) <a
href="mailto:Steve.Muench@oracle.com"><Steve.Muench@oracle.com></a>
<br>
Mark Scardina (Oracle) <a
href="mailto:Mark.Scardina@oracle.com"><Mark.Scardina@oracle.com></a>
<br>
</dd>
</dl>
<p class="copyright"><a
href="http://www.w3.org/Consortium/Legal/ipr-notice-20000612#Copyright">Copyright</a>
©2001 <a href="http://www.w3.org/"><abbr
title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a
href="http://www.lcs.mit.edu/"><abbr
title="Massachusetts Institute of Technology">MIT</abbr></a>, <a
href="http://www.inria.fr/"><abbr lang="fr"
title="Institut National de Recherche en Informatique et Automatique">INRIA</abbr></a>,
<a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a
href="http://www.w3.org/Consortium/Legal/ipr-notice-20000612#Legal_Disclaimer">liability</a>,
<a
href="http://www.w3.org/Consortium/Legal/ipr-notice-20000612#W3C_Trademarks">trademark</a>,
<a
href="http://www.w3.org/Consortium/Legal/copyright-documents-19990405">document
use</a> and <a
href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">software
licensing</a> rules apply.</p>
<hr title="Separator for header">
</div>
<h2><a name="abstract">Abstract</a></h2>
<p>This document describes the requirements for the XSLT 2.0
specification.</p>
<h2><a name="status">Status of this document</a></h2>
<p>This section describes the status of this document at the time of its
publication. Other documents may supersede this document. The latest status of
this document series is maintained at the W3C. This document is the first
public XSLT 2.0 Requirements working draft.</p>
<p>This is a W3C Working Draft for review by W3C Members and other interested
parties. It is a draft document and may be updated, replaced or made obsolete
by other documents at any time. It is inappropriate to use W3C Working Drafts
as reference material or to cite them as other than "work in progress". This
is work in progress and does not imply endorsement by the <a
href="http://www.w3.org/Consortium/Member/List">W3C membership</a>.</p>
<p>This document has been produced as part of the <a
href="http://www.w3.org/Style/Activity">W3C Style activity</a>, following the
procedures set out for the W3C Process. The document has been written by the
<a href="http://www.w3.org/Style/XSL/Group/">XSL Working Group</a> (<a
href="http://cgi.w3.org/MemberAccess/AccessRequest">W3C members only</a>). The
goals of the XSL Working Group are discussed in the <a
href="http://www.w3.org/Style/2000/xsl-charter.html">XSL Working Group
charter</a>. The XSL Working Group feels that the contents of this Working
Draft are relatively stable, and therefore encourages feedback on this
version.</p>
<p>Comments on this document should be sent to the W3C mailing list <a
href="mailto:xsl-editors@w3.org">xsl-editors@w3.org</a> (archived at <a
href="http://lists.w3.org/Archives/Public/xsl-editors/">
http://lists.w3.org/Archives/Public/xsl-editors/</a>). A list of current W3C
Recommendations and other technical documents can be found at <a
href="http://www.w3.org/TR/">http://www.w3.org/TR/</a>.</p>
<h2><a name="contents">Table of contents</a></h2>
1 <a href="#section-Goals">Goals</a> <br>
2 <a href="#section-Requirements">Requirements</a> <br>
3 <a href="#section-References">References</a> <br>
<h3>Appendices</h3>
<hr>
<h2><a name="section-Goals"></a>1 Goals</h2>
<p>XSLT 2.0 has the following goals:</p>
<ul>
<li>Simplify manipulation of XML Schema-typed content</li>
<li>Simplify manipulation of string content</li>
<li>Support related XML standards</li>
<li>Improve ease of use</li>
<li>Improve interoperability</li>
<li>Improve i18n support</li>
<li>Maintain backward compatibility</li>
<li>Enable improved processor efficiency</li>
</ul>
<p>In addition, the following are explicitly <i>not</i> goals:</p>
<ul>
<li>Simplifying the ability to parse unstructured information to produce
structured results.</li>
<li>Turning XSLT into a general-purpose programming language</li>
</ul>
<h2><a name="section-Requirements"></a>2 Requirements</h2>
<table border="0" cellspacing="0" width="100%">
<tbody>
<tr class="r1">
<td colspan="1" valign="top" align="right"><b>1</b></td>
<td colspan="2"><u class="p0">Must Support the XML "Family" of
Standards</u> <br>
<p>As part of the evolving family of XML standards, XSLT 2.0 MUST
support the W3C XML architecture by integrating well with other
standards in the family.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>1.1</b></td>
<td colspan="1"><u class="p0">Must Maintain Backwards Compatibility with
XSLT 1.1</u> <br>
<p>Any stylesheet whose behavior is fully defined in XSLT 1.1 and
which generates no errors will produce the same result tree under XSLT
2.0</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>1.2</b></td>
<td colspan="1"><u class="p0">Must Match Elements with Null Values</u>
<br>
<p>A stylesheet SHOULD be able to match elements and attributes whose
value is explicitly <code>null</code>.</p>
<blockquote>
<p><b>Ed. Note: </b> <i>Just</i> matching
<code>@xsi:null="true"</code> would find elements with this
attribute even if the element actually had content like:</p>
<div class="java-class">
<foo xsi:null="true">SomeValue</foo></div>
<br>
or used the xsi:null when the element did not allow its content to
be nullable, both of which are invalid.</blockquote>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>1.3</b></td>
<td colspan="1"><u class="p1">Should Allow Included Documents to
"Encapsulate" Local Stylesheets</u> <br>
<p>XSLT 2.0 SHOULD define a mechanism to allow the templates in a
stylesheet associated with a <i>secondary</i> source document, to be
imported and used to format the included fragment, taking precedence
over any applicable templates in the current stylesheet.</p>
<table border="0">
<tbody>
<tr>
<td colspan="1"><u><b>Use Case</b></u></td>
</tr>
<tr>
<td colspan="1"><p>When a MATHML document is included in the
current source document, that MATHML fragment could already
contain its own <?xml-stylesheet?> indicating
appropriate templates to properly style the Math.</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>1.4</b></td>
<td colspan="1"><u class="p2">Could Support Accessing Infoset Items for
XML Declaration</u> <br>
<p>A stylesheet COULD be able to access information like the version
and encoding from the XML declaration of a document.</p>
<table border="0">
<tbody>
<tr>
<td colspan="1"><u><b>Use Case</b></u></td>
</tr>
<tr>
<td colspan="1"><p>A stylesheet should be able to set the output
encoding to use the same encoding as the input document.</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>1.5</b></td>
<td colspan="1"><u class="p2">Could Provide QName Aware String
Functions</u> <br>
<p>Users manipulating documents (e.g. stylesheets, schemas) that have
QName-valued element or attribute content need functions that take a
string containing a QName as their argument, convert it to an expanded
name using either the namespace declarations in scope at that point in
the stylesheet, or the namespace declarations in scope for a specific
source node, and return properties of the expanded name such as its
namespace URI and local name.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>1.6</b></td>
<td colspan="1"><u class="p2">Could Enable Constructing a Namespace with
Computed Name</u> <br>
<p>Provide an <code><xsl:namespace></code> analog to
<code><xsl:element></code> for constructing a namespace node
with a computed prefix and URI.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>1.7</b></td>
<td colspan="1"><u class="p2">Could Simplify Resolving Prefix Conflicts
in QName-Valued Attributes</u> <br>
<p>XSLT 2.0 COULD simplify the renaming of conflicting namespace
prefixes in result tree fragments, particularly for attributes
declared in a schema as being QNames. Once the processor knows an
attribute value is a QName, an XSLT processor should be able to rename
prefixes and generate namespace declarations to preserve the semantics
of that attribute value, just as it does for attribute names.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>1.8</b></td>
<td colspan="1"><u class="p2">Could Support XHTML Output Method</u> <br>
<p>Complementing the existing output methods for <code>html</code>,
<code>xml</code>, and <code>text</code>, an xhtml output method could
be provided to simplify transformations which target XHTML output.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top" align="right"><b>2</b></td>
<td colspan="2"><u class="p0">Must Improve Ease of Use</u> <br>
<p>XSLT 2.0 MUST address frequently requested enhancements to make
using XPath even more straightfoward for handling common use
cases.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.1</b></td>
<td colspan="1"><u class="p0">Must Allow Matching on Default Namespace
Without Explicit Prefix</u> <br>
<p>Many users stumble trying to match an element with a default
namespace. They expect to be able to do something like:</p>
<div class="java-class">
<xsl:stylesheet version="1.0" <br>
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"<br>
xmlns="urn:myuri"><br>
<!-- Expect this matches <foo> in default namespace
--><br>
<xsl:template match="foo"></div>
<br>
<p>thinking that leaving off the prefix from the <code>foo</code>
element name, that it will match <code><foo></code> elements in
the default namespace with the URI of <code>urn:myuri</code>. Instead,
they are required to assign a non-null prefix name to their namespace
URI and then match on "<code>someprefix:foo</code>" instead, which has
proven to be far from obvious. XSLT 2.0 SHOULD provide an explicit way
to handle this scenario to avoid further user confusion.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.2</b></td>
<td colspan="1"><u class="p0">Must Add Date Formatting Functions</u>
<br>
<p>One of the more frequent requests from XSLT 1.0 users is the
ability to format date information with similar control to XSLT's
<code>format-number()</code>. XML Schema introduces several kinds of
date and time datatypes which will further increase the demand for
date formatting during transformations. Functionality similar to that
provided by <a
href="http://java.sun.com/products/jdk/1.1/docs/api/java.text.SimpleDateFormat.html">java.text.SimpleDateFormat</a>.
A date analog of XSLT's named <code>xsl:decimal-format</code> may be
required to handle locale-specific date formatting issues.</p>
<table border="0">
<tbody>
<tr>
<td colspan="1"><u><b>Use Case</b></u></td>
</tr>
<tr>
<td colspan="1"><ol>
<li><p>Given an XML element like: <code><Period
start="2000-05-07" end="2000-05-13"/></code></p>
<p>Format it as: <code>Invoice: 7 May 2000 - 13 May
2000</code></p>
</li>
<li><p>Given the same element above, format it according to
the current locale as:</p>
<div class="java-class">
Fattura: 7 Maggio 2000 - 13 Maggio 2000</div>
<br>
</li>
</ol>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.3</b></td>
<td colspan="1"><u class="p0">Must Simplify Accessing Id's and Key's in
Other Documents</u> <br>
<p>Currently it is cumbersome to lookup nodes by <code>id()</code> or
<code>key()</code> in documents other than the source document. Users
must first use an <code>xsl:for-each</code> instruction, selecting the
desired <code>document()</code> to make it the current node, then
relative XPath expressions within the scope of the
<code>xsl:for-each</code> can refer to <code>id()</code> or
<code>key()</code> as desired.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.4</b></td>
<td colspan="1"><u class="p1">Should Provide Function to Absolutize
Relative URIs</u> <br>
<p>There SHOULD be a way in XSLT 2.0 to create an absolute URI. The
functionality should allow passing a node-set and return a string
value representing the absolute URI resolved with respect to the base
URI of the current node.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.5</b></td>
<td colspan="1"><u class="p1">Should Include Unparsed Text from an
External Resource</u> <br>
<p>Frequently stylesheets must import text from external resources.
Today users have to resort to extension functions to accomplish this
because XSLT 1.0 only provides the <code>document()</code> function
which, while useful, can only read external resources that are
well-formed XML documents.</p>
<table border="0">
<tbody>
<tr>
<td colspan="1"><u><b>Use Case</b></u></td>
</tr>
<tr>
<td colspan="1"><p>Given an XML document like:</p>
<div class="java-class">
<section><br>
<para>The code for the example looks like
this:</para><br>
<example><br>
<external-file href="ParseXML.java"/><br>
</example><br>
</section></div>
<br>
<p>Format the section and include the source of the sample
code from the external file in the output.</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.6</b></td>
<td colspan="1"><u class="p1">Should Allow Authoring Extension Functions
in XSLT</u> <br>
<p>As part of the XSLT 1.1 work done on extension functions, a
proposal to author XSLT extension functions in XSLT itself was
deferred for reconsideration in XSLT 2.0. This would allow the
functions in an extension namespace to be implemented in "pure" XSLT,
without resulting to external programming languages.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.7</b></td>
<td colspan="1"><u class="p1">Should Output Character Entity References
Instead of Numeric Character Entities</u> <br>
<p>Users have frequently requested the ability to have the output of
their transformation use (named) character references instead of the
numeric character entity. The ability to control this preference as
the level of the whole document is sufficient. For example, rather
than seeing <code>&#160;</code> in the output, the user could
request to see the equivalent <code>&nbsp;</code> instead.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.8</b></td>
<td colspan="1"><u class="p1">Should Construct Entity Reference by
Name</u> <br>
<p>Analogous to the ability to create elements and attributes, users
have expressed a desire to construct named entity references.</p>
<blockquote>
<p><b>Ed. Note: </b>Does this require a change to the data
model?</p>
</blockquote>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.9</b></td>
<td colspan="1"><u class="p1">Should Support for Unicode String
Normalization</u> <br>
<p>For reliable string comparison of Unicode strings, users need the
ability to apply Unicode normalization before comparing the
strings.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.10</b></td>
<td colspan="1"><u class="p1">Should Standardize Extension Element
Language Bindings</u> <br>
<p>XSLT 1.1 undertook the standarization of language bindings for XSLT
extension functions. For XSLT 2.0, analogous bindings SHOULD be
provided for extension elements.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.11</b></td>
<td colspan="1"><u class="p2">Could Improve Efficiency of
Transformations on Large Documents</u> <br>
<p>Many useful transformations take place on large documents
consisting of thousands of repeating "sub-documents". Today
transformations over these documents are impractical due to the need
to have the entire source tree in memory. Enabling "progressive"
transformations, where the processor is able to produce progressively
more output as more input is received, is tantamount to avoiding the
need for XSLT processors to have random access to the entire source
document. This might be accomplished by:</p>
<ul>
<li>Identifying a core subset of XPath that does not require random
access to the source tree, or</li>
<li>Consider a "transform all subtrees" mode where the stylesheet
says, "Apply the transformation implied by this stylesheet to each
node that matches <code>XXX</code>, considered as the root of a
separate tree, and copy all the results of these
mini-transformations as separate subtrees on to the final result
tree."</li>
</ul>
<table border="0">
<tbody>
<tr>
<td colspan="1"><u><b>Use Case</b></u></td>
</tr>
<tr>
<td colspan="1"><p>Transforming an XML document representing the
daily closing prices of NASDAQ stocks for 1999 like the
example below (over 1.3 millon
<code><ClosingQuote></code> sub-elements) to produce a
comma-separated list of Ticker, Date, and Closing Price.</p>
<div class="java-class">
<YearOfNasdaqCloses Year="1999"
TotalSecurities="5207"><br>
<ClosingQuote Ticker="AAABB"><br>
<Date>01/01/1999</Date><br>
<Price>6.25</Price><br>
<Percent>0.5</Percent><br>
</ClosingQuote><br>
<!-- 1,353,818 Additional Entries Removed --><br>
<ClosingQuote Ticker="ZVXI"><br>
<Date>12/31/1999</Date><br>
<Price>16.10</Price><br>
<Percent>-1.05</Percent><br>
</ClosingQuote><br>
</YearOfNasdaqCloses></div>
<br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.12</b></td>
<td colspan="1"><u class="p2">Could Support for Reverse IDREF
attributes</u> <br>
<p>Given a particular value of an <code>ID</code>, produce a list of
all elements that have an <code>IDREF</code> or <code>IDREFS</code>
attribute which refers to this ID.</p>
<blockquote>
<p><b>Ed. Note: </b>This functionality can be accomplished using the
current <code><xsl:key></code> and <code>key()</code>
mechanism.</p>
</blockquote>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.13</b></td>
<td colspan="1"><u class="p2">Could Support for Case-Insensitive
Comparisons</u> <br>
<p>XSLT 2.0 could expand its comparison functionality to include
support for case-insensitive string comparison.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.14</b></td>
<td colspan="1"><u class="p2">Could Support Lexigraphic String
Comparisons</u> <br>
<p>We don't let users compare strings like <code>$x >
'a'</code>.</p>
<blockquote>
<p><b>Ed. Note: </b>i18n issues.</p>
</blockquote>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.15</b></td>
<td colspan="1"><u class="p2">Could Allow Comparing Nodes Based on
Document Order</u> <br>
<p>Support the ability to test whether one node comes before another
in document order.</p>
<blockquote>
<p><b>Ed. Note: </b>Need a Use Case for this.</p>
</blockquote>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.16</b></td>
<td colspan="1"><u class="p2">Could Improve Support for Unparsed
Entities</u> <br>
<p>In XSLT 1.0 there is an asymmetry in support for unparsed entities.
They can be handled on input but not on output. In particular, there
is no way to do an identity transformation that preserves them. At a
minimum we need the ability to retrieve the Public ID of an unparsed
entity.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.17</b></td>
<td colspan="1"><u class="p2">Could Allow Processing a Node with the
"Next Best Matching" Template</u> <br>
<p>In the construction of large stylesheets for complex documents, it
is often necessary to construct templates that implement special
behavior for a particular instance of an element, and then apply the
normal styling for that element. Currently this is not possible
because <code><xsl:apply-templates/></code> specifies that for
any given node only a single template will be selected and
instantiated.</p>
<p>Currently the processor determines a list of matching templates and
then discards all but the one with the highest priority. In order to
support this requirement, the processor would retain the list of
matching templates sorted in priority order. A new instruction, for
example <code><xsl:next-match/></code>, in a template would
simply trigger the next template in the list of matching templates.
This "next best match" recursion naturally bottoms out at the builtin
template which can be seen as the lowest priority matching template
for every match pattern.</p>
<table border="0">
<tbody>
<tr>
<td colspan="1"><u><b>Use Case</b></u></td>
</tr>
<tr>
<td colspan="1"><p>Consider a large, complex stylesheet for a
particular document type. In order to support a new
application, the schema designer for that document type adds a
new global attribute, that is an attribute allowed on every
element in the schema. For example, consider the addition of a
global attribute named <code>diff</code> for marking changes
made between one version of a document and another. You must
now augment your stylesheet to support this new behavior.</p>
<p>One would like to add a single new template, or a small
number of templates, that would implement the new
functionality for the entire doctype. Something like this:</p>
<div class="java-class">
<xsl:template match="*[@diff='new']"><br>
<div class="new"><br>
<!-- do whatever you would have done for this element
--><br>
</div><br>
</xsl:template><br>
<br>
<xsl:template match="para"><br>
<p><br>
<xsl:apply-templates/><br>
</p><br>
</xsl:template><br>
</div>
<br>
<p>When passed a document that contains <code><p
diff='new'>...</p></code>, it would produce:</p>
<div class="java-class">
<div class="new"><br>
<p>...</p><br>
</div><br>
</div>
<br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>2.18</b></td>
<td colspan="1"><u class="p2">Could Make Coercions Symmetric By Allowing
Scalar to Nodeset Conversion</u> <br>
<p>Presently, no datatype can be coerced or cast to a node-set. By
allowing a string value to convert to a node-set, some user "gotchas"
could be avoided due.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top" align="right"><b>3</b></td>
<td colspan="2"><u class="p0">Must Support XML Schema</u> <br>
<p><a href="http://www.w3.org/TR/xmlschema-1/">XML Schema:
Structures</a> and <a href="http://www.w3.org/TR/xmlschema-2/">XML
Schema: Datatypes</a> enable users to define and use both simple and
structured types and associate them to elements and attributes in a
schema. XSLT 2.0 MUST provide support for the common operations
needed for matching and construction of transformed documents based on
a source document containing these typed elements and attributes.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>3.1</b></td>
<td colspan="1"><u class="p0">Must Simplify Constructing and Copying
Typed Content</u> <br>
<p>It MUST be possible to construct XML Schema-typed elements and
attributes. In addition, when copying an element or an attribute to
the result, it should be possible to preserve the type during the
process.</p>
<blockquote>
<p><b>Ed. Note: </b>Use Case needs work.</p>
</blockquote>
<table border="0">
<tbody>
<tr>
<td colspan="1"><u><b>Use Case</b></u></td>
</tr>
<tr>
<td colspan="1"><ol>
<li>
<div class="java-class">
<href
xsi:type="urireference">foo.xml</href></div>
<br>
</li>
<li>
<div class="java-class">
<href xsl:type="urireference"><xsl:value-of
select="$foo"/></href></div>
<br>
</li>
<li>
<div class="java-class">
<href><xsl:typed-value-of
select="$foo"/></href></div>
<br>
</li>
</ol>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>3.2</b></td>
<td colspan="1"><u class="p0">Must Support Sorting Nodes Based on XML
Schema Type</u> <br>
<p>XSLT 1.0 supports sorting based on <code>string</code>-valued and
<code>number</code>-valued expressions. <a
href="http://www.w3.org/TR/xmlschema-2/">XML Schema: Datatypes</a>
introduces new scalar types (for example, <code>date</code>) with
well-known sort orders. It MUST be possible to sort based on these
extended set of scalar data types. Since <a
href="http://www.w3.org/TR/xmlschema-2/">XML Schema: Datatypes</a>
does not define an ordering for complex types, this sorting support
should only be considered for simple types.</p>
<blockquote>
<p><b>Ed. Note: </b>Should be consistent with whatever we define for
the matrix of conversion and comparisons.</p>
</blockquote>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>3.3</b></td>
<td colspan="1"><u class="p2">Could Support Scientific Notation in
Number Formatting</u> <br>
<p>Several users have requested the ability to have the existing
<code>format-number()</code> function extended to format numbers using
Scientific Notation.</p>
</td>
</tr>
<tr class="r1">
<td colspan="1" valign="top"> </td>
<td colspan="1" valign="top" align="right"><b>3.4</b></td>
<td colspan="1"><u class="p2">Could Provide Ability to Detect Whether
"Rich" Schema Information is Available</u> <br>
<p>A stylesheet that requires XML Schema type-related functionality
COULD be able to test whether a "rich" Post-Schema-Validated Infoset
is available from the XML Schema processor, so that the stylesheet can
provide fallback behavior or choose to exit with <code><xsl:message
abort="yes"/></code>.</p>
</td>
</tr>
<tr class="r0">
<td colspan="1" valign="top" align="right"><b>4</b></td>
<td colspan="2"><u class="p0">Must Simplify Grouping</u> <br>
<p>Grouping is complicated in XSLT 1.0. It MUST be possible for users
to group nodes in a document based on</p>
<ul>
<li>common string-values</li>
<li>common names</li>
<li>common values for any other expression</li>
</ul>
<p>In addition XSLT must allow grouping based on sequential position,
e.g. selecting groups of adjacent <code><P></code> elements.
Ideally it should also make it easier to do fixed-size grouping as
well, e.g. groups of three adjacent nodes, for laying out data in
multiple columns. For each group of nodes identified, it must be
possible to instantiate a template for the group. Grouping must be
"nestable" to multiple levels so that groups of distinct nodes can be
identified, then from among the distinct groups selected, further
sub-grouping of distinct node in the current group can be done.</p>
<p>Often users express this requirement in different words, asking for
a way to easily select the distinct values of an XPath expression
relative to a nodeset. For example, many users using keys have
requested a function like <code>distinct-keys('</code> <i>keyname</i>
<code>')</code> to return a node-set containing, for each value of the
named key that is present in the current document, the first node in
document order that has that key value. Others have suggested adding a
<code>select-distinct="</code> <i>XpathExpression</i> <code>"</code>
to places where XSLT currently allows a <code>select</code>
attribute.</p>
<table border="0">
<tbody>
<tr>
<td colspan="1"><u><b>Use Case</b></u></td>
</tr>
<tr>
<td colspan="1"><ol>
<li><p><b>Group by common values, groups unsorted, with
group totals</b></p>
<p>Given XML document:</p>
<div class="java-class">
<cities><br>
<city name="milan" country="italy"
pop="5"/><br>
<city
name="paris" country="france" pop="7"/><br>
<city name="munich" country="germany"
pop="4"/><br>
<city name="lyon"
country="france" pop="2"/><br>
<city name="venice" country="italy"
pop="1"/><br>
</cities></div>
<br>
<p>Produce a 3-column table listing each distinct country
in the first column, an alphabetical list of the city
names for each country in the 2nd column, and the sum of
the population for the cities in each country in the third
column:</p>
<div class="java-class">
<table><br>
<tr><br>
<th>Country</th><br>
<th>City List</th><br>
<th>Population</th><br>
</tr><br>
<tr><br>
<td>italy</td><br>
<td>milan, venice</td><br>
<td>6</td><br>
</tr><br>
<tr><br>
<td>france</td><br>
<td>lyon, paris</td><br>
<td>9</td><br>
</tr> <br>
<tr><br>
<td>germany</td><br>
<td>munich</td><br>
<td>4</td><br>
</tr> <br>
</table></div>
<br>
</li>
<li><p><b>Group by common values, sorting the groups, with
group totals</b></p>
<p>Given same XML document as in use case 1 above, produce
a 3-column table listing each distinct country in the
first column (sorted in alphabetical order), an
alphabetical list of the city names for each country in
the 2nd column, and the sum of the population for the
cities in each country in the third column:</p>
<div class="java-class">
<table><br>
<tr><br>
<th>Country</th><br>
<th>City List</th><br>
<th>Population</th><br>
</tr><br>
<tr><br>
<td>france</td><br>
<td>lyon, paris</td><br>
<td>9</td><br>
</tr> <br>
<tr><br>
<td>germany</td><br>
<td>munich</td><br>
<td>4</td><br>
</tr> <br>
<tr><br>
<td>italy</td><br>
<td>milan, venice</td><br>
<td>6</td><br>
</tr><br>
</table></div>
<br>
</li>
<li><p><b>Group by common values, sorting the groups by a
group total</b></p>
<p>Given same XML document as in use case 1 above, produce
a 3-column table listing each distinct country in the
first column (sorted in order of decreasing total
population), a list of the city names for each country in
the 2nd column (sorted in order of decreasing population),
and the sum of the population for the cities in each
country in the third column:</p>
<div class="java-class">
<table><br>
<tr><br>
<th>Country</th><br>
<th>City List</th><br>
<th>Population</th><br>
</tr><br>
<tr><br>
<td>france</td><br>
<td>paris, lyon</td><br>
<td>9</td><br>
</tr> <br>
<tr><br>
<td>italy</td><br>
<td>milan, venice</td><br>
<td>6</td><br>
</tr><br>
<tr><br>
<td>germany</td><br>
<td>munich</td><br>
<td>4</td></tr> <br>
</table></div>
<br>
</li>
<li><p><b>Group by result of an expression (e.g. initial
letter, with a count for each group)</b></p>
<p>Given the input XML document above, produce the table
below which groups by the initial letter of the city name,
sorts these first-letters alphabetically, then produces a
list of cities whose names begin with that letter. The
heading contains a count of entries:</p>
<div class="java-class">
<h2>L (1)</h2><p>lyon</p><br>
<h2>M
(2)</h2><p>milan</p><p>munich</p><br>
<h2>P (1)</h2><p>paris</p><br>
<h2>V (1)</h2><p>venice</p></div>
<br>
</li>
<li><p><b>Group by patterns of elements in a
sequence</b></p>
<p>Given the input:</p>
<div class="java-class">
<body><br>
<h2>heading1</h2><br>
<p>para1</p><br>
<p>para2</p><br>
<h2>heading2</h2><br>
<p>para3</p><br>
<p>para4</p><br>
<p>para5</p><br>
</body></div>
<br>
<p>Produce the following output:</p>
<div class="java-class">
<chapter><br>
<section title="heading1"><br>
<para>para1</para><br>
<para>para2</para><br>
</section> <br>
<section title="heading2"><br>
<para>para3</para><br>
<para>para4</para><br>
<para>para5</para><br>
</section><br>
</chapter></div>
<br>
</li>
<li><p><b>Produce Hierarchical Nested Output from Flat
Structure</b></p>
<p>Given a source document like:</p>
<div class="java-class">
<doc><br>
<group1><br>
<tag>value</tag><br>
</group1><br>
<group2><br>
<tag>value</tag><br>
</group2><br>
<group2><br>
<tag>value</tag><br>
</group2><br>
<group3><br>
<tag>value</tag><br>
</group3><br>
</doc></div>
<br>
<p>produce the output:</p>
<div class="java-class">
<doc><br>
<group1><br>
<tag>value</tag><br>
<group2><br>
<tag>value</tag><br>
</group2></div>
<br>
<div class="java-class">
<group2><br>
<tag>value</tag><br>
<group3><br>
<tag>value</tag><br>
</group3><br>
</group2><br>
</group1><br>
</doc></div>
<br>
</li>
<li><p><b>Formatting HTML Term Definition Lists (Case
1)</b></p>
<p>Given a source document like:</p>
<div class="java-class">
<DL><br>
<!-- Handle the case with no DD or DT --><br>
<DT>One</DT> <br>
<DD>One Def</DD><br>
<DT>Two</DT> <br>
<DD>Two Def</DD><br>
<DT>Three</DT> <br>
</DL></div>
<br>
<p>produce the output:</p>
<div class="java-class">
<OL><br>
<LI><B>One<B> - <I>One
Def</I></LI><br>
<LI><B>Two<B> - <I>Two
Def</I></LI><br>
<LI><B>Three<B> - <I>(No
definition provided)</I></LI><br>
</OL></div>
<br>
</li>
<li><p><b>Formatting HTML Term Definition Lists (Case
2)</b></p>
<p>A slightly more compliated version of the HTML term
definition list involved multiple terms with a single
definition or multiple definitions for a single term.
Given the source</p>
<div class="java-class">
<DL><br>
<DT>One</DT><br>
<DT>Two</DT><br>
<DD>One and Two Def</DD><br>
</DL></div>
<br>
<p>produce the output</p>
<div class="java-class">
<OL><br>
<LI><B>One, Two</B> - <I>One and
Two Def</I></LI><br>
</OL></div>
<br>
<p>For the other varation, given the source:</p>
<div class="java-class">
<DL><br>
<DT>One</DT><br>
<DD>One Def</DD><br>
<DD>Another One Def</DD><br>
</DL></div>
<br>
<p>produce the output:</p>
<div class="java-class">
<UL><br>
<LI><br>
<B>One</B><br>
<OL><br>
<LI>One Def</LI><br>
<LI>Another One Def</LI><br>
</OL><br>
</LI><br>
</UL></div>
<br>
</li>
<li><p><b>Transform Inline <para> Elements to Block
<para> Elements</b></p>
<p>Transform from a DTD that allows para elements to have
nested block-level elements to a DTD that requires para
elements to have only inline elements, e.g. transform:</p>
<div class="java-class">
<p>Do <em>not</em>:<br>
<ul><br>
<li>talk,</li><br>
<li>eat, or</li><br>
<li>use your mobile telephone</li><br>
</ul><br>
while you are in the cinema.</p></div>
<br>
<p>into:</p>
<div class="java-class">
<p>Do <em>not</em>:</p><br>
<ul><br>
<li>talk,</li><br>
<li>eat, or</li><br>
<li>use your mobile telephone</li><br>
</ul><br>
<p>while you are in the cinema.</p></div>
<br>
</li>
<li><p><b>Arrange into Fixed-Sized Groups
(Across/Down)</b></p>
<p>Given the input from use case number 1 above, produce a
two-column list of all city names, sorted alphabetically,
in "Across/Down" format. The result should correctly
format the "left over" cells when the number of items is
not a multiple of the number of items in the group.</p>
<div class="java-class">
<table><br>
<!-- Alphabetized Across each row --><br>
<tr><td>lyon</td><td>milan</td></tr><br>
<tr><td>munich</td><td>paris</td></tr><br>
<tr><td>venice</td><td>&nbsp;</td></tr><br>
</table><br>
</div>
<br>
</li>
<li><p><b>Arrange into Fixed-Sized Groups
(Down/Across)</b></p>
<p>Given the input from use case number 1 above, produce a
two-column list of all city names, sorted alphabetically,
in "Down/Across" format. The result should correctly
format the "left over" cells when the number of items is
not a multiple of the number of items in the group.</p>
<div class="java-class">
<table><br>
<!-- Alphabetized Down each column --><br>
<tr><td>lyon</td><td>paris</td></tr><br>
<tr><td>milan</td><td>venice</td></tr><br>
<tr><td>munich</td><td>&nbsp;</td></tr><br>
</table><br>
</div>
<br>
</li>
<li><p><b>Multi-level Grouping</b></p>
<p>Given the XML list of software bugs assigned to
developers on different teams...</p>
<div class="java-class">
<bugs><br>
<bug dev="ace" team="ui"><br>
<desc>Border shows white when it should be
grey</desc><br>
</bug><br>
<bug dev="tom" team="core"><br>
<desc>Incorrectly handling nulls on
entry</desc><br>
</bug><br>
<bug dev="gary" team="ui"><br>
<desc>Preferences dialog has two Cancel
buttons</desc><br>
</bug><br>
<bug dev="ace" team="ui"><br>
<desc>Drag and drop cursor never changes
back</desc><br>
</bug><br>
<bug dev="tim" team="core"><br>
<desc>Infinite loop in validation
code</desc><br>
</bug><br>
<bug dev="gary" team="ui"><br>
<desc>Resizing dialog doesn't resize text
box</desc><br>
</bug><br>
<bug dev="ace" team="ui"><br>
<desc>German text is truncated</desc><br>
</bug><br>
<bug dev="tim" team="core"><br>
<desc>Data inserted twice</desc><br>
</bug><br>
</bugs><br>
</div>
<br>
<p>produce an HTML page that includes:</p>
<ul>
<li>The total number of open bugs in the title</li>
<li>A column for each team of developers, with a
per-team bug count. The teams should be ordered left
to right by descreasing number of open bugs assigned
to the team.</li>
<li>A vertical list (separated by <br/> tags) of
developers on each team, with their bug count.
Developers should be listed top down in order of
descreasing individual bug count.</li>
</ul>
<p>The result is a nested, grouped output giving
development managers a bird's-eye view of which teams and
which developers are in the most "bug trouble":</p>
<div class="java-class">
<html><br>
<body><br>
<h2>Bug Summary (8)</h2><br>
<table><br>
<tr><br>
<th>ui (5)</th><br>
<th>core (3)</th><br>
</tr><br>
<tr><br>
<td><br>
ace (3)<br/><br>
gary (2)<br>
</td><br>
<td><br>
tim (2)<br/><br>
tom (1)<br>
</td><br>
</tr><br>
</table><br>
</body><br>
</html></div>
<br>
</li>
<li><p>List all the different element names in a document,
and for each one list all the attributes used, and for
each attribute list the distinct values used in the
document. For example, given the document:</p>
<div class="java-class">
<foo baz="Q"><br>
<bar baz="3" bop="T"/><br>
<foo baz="1"><br>
<bar bop="S" bip="4" baz="5"/><br>
</foo><br>
</foo></div>
<br>
<p>Produce the result:</p>
<div class="java-class">
<inventory><br>
<element name="bar"><br>
<attribute name="baz"><br>
<value>3</value><br>
<value>5</value><br>
</attribute><br>
<attribute name="bip"><br>
<value>4</value><br>
</attribute><br>
<attribute name="bop"><br>
<value>S</value><br>
<value>T</value><br>
</attribute><br>
</element><br>
<element name="foo"><br>
<attribute name="baz"><br>
<value>1</value><br>
<value>Q</value><br>
</attribute><br>
</element><br>
</inventory></div>
<br>
</li>
</ol>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<h2><a name="section-References"></a>3 References</h2>
<dl>
<dt></dt>
<dd>XML Schema: Structures, <a
href="http://www.w3.org/TR/xmlschema-1/">http://www.w3.org/TR/xmlschema-1/</a></dd>
<dt></dt>
<dd>XML Schema: Datatypes, <a
href="http://www.w3.org/TR/xmlschema-2/">http://www.w3.org/TR/xmlschema-2/</a></dd>
</dl>
</body>
</html>