forked from jcgregorio/uri-templates
-
Notifications
You must be signed in to change notification settings - Fork 2
/
draft-gregorio-uritemplate-06-from-5.diff.html
1645 lines (1644 loc) · 365 KB
/
draft-gregorio-uritemplate-06-from-5.diff.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Generated by rfcdiff 1.34: rfcdiff -->
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional" > -->
<!-- System: Darwin simak 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 -->
<!-- Using awk: /usr/local/bin/gawk: GNU Awk 3.1.8 -->
<!-- Using diff: /usr/bin/diff: diff (GNU diffutils) 2.8.1 -->
<!-- Using wdiff: /usr/local/bin/wdiff: wdiff (GNU wdiff) 0.6.5 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>Diff: draft-gregorio-uritemplate-05.txt - draft-gregorio-uritemplate-06.txt</title>
<style type="text/css">
body { margin: 0.4ex; margin-right: auto; }
tr { }
td { white-space: pre; font-family: monospace; vertical-align: top; font-size: 0.86em;}
th { font-size: 0.86em; }
.small { font-size: 0.6em; font-style: italic; font-family: Verdana, Helvetica, sans-serif; }
.left { background-color: #EEE; }
.right { background-color: #FFF; }
.diff { background-color: #CCF; }
.lblock { background-color: #BFB; }
.rblock { background-color: #FF8; }
.insert { background-color: #8FF; }
.delete { background-color: #ACF; }
.void { background-color: #FFB; }
.cont { background-color: #EEE; }
.linebr { background-color: #AAA; }
.lineno { color: red; background-color: #FFF; font-size: 0.7em; text-align: right; padding: 0 2px; }
.elipsis{ background-color: #AAA; }
.left .cont { background-color: #DDD; }
.right .cont { background-color: #EEE; }
.lblock .cont { background-color: #9D9; }
.rblock .cont { background-color: #DD6; }
.insert .cont { background-color: #0DD; }
.delete .cont { background-color: #8AD; }
.stats, .stats td, .stats th { background-color: #EEE; padding: 2px 0; }
</style>
</head>
<body >
<table border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="orange"><th></th><th> draft-gregorio-uritemplate-05.txt </th><th> </th><th> draft-gregorio-uritemplate-06.txt </th><th></th></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">Network Working Group J. Gregorio</td><td> </td><td class="right">Network Working Group J. Gregorio</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">Internet-Draft Google</td><td> </td><td class="right">Internet-Draft Google</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">Intended status: Standards Track R. Fielding, Ed.</td><td> </td><td class="right">Intended status: Standards Track R. Fielding, Ed.</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0001" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock">Expires: <span class="delete">January 12, 2012 </span> Adobe</td><td> </td><td class="rblock">Expires: <span class="insert">February 21, 2012</span> Adobe</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> M. Hadley</td><td> </td><td class="right"> M. Hadley</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Oracle</td><td> </td><td class="right"> Oracle</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> M. Nottingham</td><td> </td><td class="right"> M. Nottingham</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> D. Orchard</td><td> </td><td class="right"> D. Orchard</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0002" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">Jul 11</span>, 2011</td><td> </td><td class="rblock"> <span class="insert">Aug 20</span>, 2011</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> URI Template</td><td> </td><td class="right"> URI Template</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0003" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> draft-gregorio-uritemplate-0<span class="delete">5</span></td><td> </td><td class="rblock"> draft-gregorio-uritemplate-0<span class="insert">6</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">Abstract</td><td> </td><td class="right">Abstract</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> A URI Template is a compact sequence of characters for describing a</td><td> </td><td class="right"> A URI Template is a compact sequence of characters for describing a</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> range of Uniform Resource Identifiers through variable expansion.</td><td> </td><td class="right"> range of Uniform Resource Identifiers through variable expansion.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> This specification defines the URI Template syntax and the process</td><td> </td><td class="right"> This specification defines the URI Template syntax and the process</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> for expanding a URI Template into a URI reference, along with</td><td> </td><td class="right"> for expanding a URI Template into a URI reference, along with</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> guidelines for the use of URI Templates on the Internet.</td><td> </td><td class="right"> guidelines for the use of URI Templates on the Internet.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">Editorial Note (to be removed by RFC Editor)</td><td> </td><td class="right">Editorial Note (to be removed by RFC Editor)</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l2" /><small>skipping to change at</small><em> page 1, line 44</em></th><th> </th><th><a name="part-r2" /><small>skipping to change at</small><em> page 1, line 44</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Internet-Drafts are working documents of the Internet Engineering</td><td> </td><td class="right"> Internet-Drafts are working documents of the Internet Engineering</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Task Force (IETF). Note that other groups may also distribute</td><td> </td><td class="right"> Task Force (IETF). Note that other groups may also distribute</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> working documents as Internet-Drafts. The list of current Internet-</td><td> </td><td class="right"> working documents as Internet-Drafts. The list of current Internet-</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Drafts is at http://datatracker.ietf.org/drafts/current/.</td><td> </td><td class="right"> Drafts is at http://datatracker.ietf.org/drafts/current/.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Internet-Drafts are draft documents valid for a maximum of six months</td><td> </td><td class="right"> Internet-Drafts are draft documents valid for a maximum of six months</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> and may be updated, replaced, or obsoleted by other documents at any</td><td> </td><td class="right"> and may be updated, replaced, or obsoleted by other documents at any</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> time. It is inappropriate to use Internet-Drafts as reference</td><td> </td><td class="right"> time. It is inappropriate to use Internet-Drafts as reference</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> material or to cite them other than as "work in progress."</td><td> </td><td class="right"> material or to cite them other than as "work in progress."</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0004" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> This Internet-Draft will expire on <span class="delete">January 12</span>, 2012.</td><td> </td><td class="rblock"> This Internet-Draft will expire on <span class="insert">February 21</span>, 2012.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">Copyright Notice</td><td> </td><td class="right">Copyright Notice</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Copyright (c) 2011 IETF Trust and the persons identified as the</td><td> </td><td class="right"> Copyright (c) 2011 IETF Trust and the persons identified as the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> document authors. All rights reserved.</td><td> </td><td class="right"> document authors. All rights reserved.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> This document is subject to BCP 78 and the IETF Trust's Legal</td><td> </td><td class="right"> This document is subject to BCP 78 and the IETF Trust's Legal</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Provisions Relating to IETF Documents</td><td> </td><td class="right"> Provisions Relating to IETF Documents</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> (http://trustee.ietf.org/license-info) in effect on the date of</td><td> </td><td class="right"> (http://trustee.ietf.org/license-info) in effect on the date of</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> publication of this document. Please review these documents</td><td> </td><td class="right"> publication of this document. Please review these documents</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l3" /><small>skipping to change at</small><em> page 3, line 12</em></th><th> </th><th><a name="part-r3" /><small>skipping to change at</small><em> page 3, line 12</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> it for publication as an RFC or to translate it into languages other</td><td> </td><td class="right"> it for publication as an RFC or to translate it into languages other</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> than English.</td><td> </td><td class="right"> than English.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">Table of Contents</td><td> </td><td class="right">Table of Contents</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4</td><td> </td><td class="right"> 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 1.1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . 4</td><td> </td><td class="right"> 1.1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . 4</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 1.2. Levels and Expression Types . . . . . . . . . . . . . . . 6</td><td> </td><td class="right"> 1.2. Levels and Expression Types . . . . . . . . . . . . . . . 6</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 1.3. Design Considerations . . . . . . . . . . . . . . . . . . 10</td><td> </td><td class="right"> 1.3. Design Considerations . . . . . . . . . . . . . . . . . . 10</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 1.4. Limitations . . . . . . . . . . . . . . . . . . . . . . . 11</td><td> </td><td class="right"> 1.4. Limitations . . . . . . . . . . . . . . . . . . . . . . . 11</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0005" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 1.5. Notational Conventions . . . . . . . . . . . . . . . . . . <span class="delete">11</span></td><td> </td><td class="rblock"> 1.5. Notational Conventions . . . . . . . . . . . . . . . . . . <span class="insert">12</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 1.6. Character Encoding and Unicode Normalization . . . . . . . <span class="delete">12</span></td><td> </td><td class="rblock"> 1.6. Character Encoding and Unicode Normalization . . . . . . . <span class="insert">13</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 2. Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . <span class="delete">13</span></td><td> </td><td class="rblock"> 2. Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . <span class="insert">14</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 2.1. Literals . . . . . . . . . . . . . . . . . . . . . . . . . 14</td><td> </td><td class="right"> 2.1. Literals . . . . . . . . . . . . . . . . . . . . . . . . . 14</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 2.2. Expressions . . . . . . . . . . . . . . . . . . . . . . . 14</td><td> </td><td class="right"> 2.2. Expressions . . . . . . . . . . . . . . . . . . . . . . . 14</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 2.3. Variables . . . . . . . . . . . . . . . . . . . . . . . . 15</td><td> </td><td class="right"> 2.3. Variables . . . . . . . . . . . . . . . . . . . . . . . . 15</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 2.4. Value Modifiers . . . . . . . . . . . . . . . . . . . . . 16</td><td> </td><td class="right"> 2.4. Value Modifiers . . . . . . . . . . . . . . . . . . . . . 16</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 2.4.1. Prefix Values . . . . . . . . . . . . . . . . . . . . 16</td><td> </td><td class="right"> 2.4.1. Prefix Values . . . . . . . . . . . . . . . . . . . . 16</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0006" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 2.4.2. <span class="delete">Component</span> Values . . . . . . . . . . . . . . . . . . . 17</td><td> </td><td class="rblock"> 2.4.2. <span class="insert">Composite</span> Values . . . . . . . . . . . . . . . . . . . 17</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">2.5. Value Defaults . . . . . . . . . . . . . . . . . . . . . . 17</span></td><td> </td><td class="rblock"> 3. Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . <span class="insert">18</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 3. Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . <span class="delete">19</span></td><td> </td><td class="rblock"> 3.1. Literal Expansion . . . . . . . . . . . . . . . . . . . . <span class="insert">18</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 3.1. Literal Expansion . . . . . . . . . . . . . . . . . . . . <span class="delete">19</span></td><td> </td><td class="rblock"> 3.2. Expression Expansion . . . . . . . . . . . . . . . . . . . <span class="insert">18</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 3.2. Expression Expansion . . . . . . . . . . . . . . . . . . . <span class="delete">20</span></td><td> </td><td class="rblock"> 3.2.1. Variable Expansion . . . . . . . . . . . . . <span class="insert">. . . . . 19</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 3.2.1. <span class="delete">Undefined</span> Variable Expansion . . . . . . . . . . . . . <span class="delete">20</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 3.2.2. Simple String Expansion: {var} . . . . . . . . . . . . 20</td><td> </td><td class="right"> 3.2.2. Simple String Expansion: {var} . . . . . . . . . . . . 20</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> 3.2.3. Reserved expansion: {+var} . . . . . . . . . . . . . . 21</td><td> </td><td class="right"> 3.2.3. Reserved expansion: {+var} . . . . . . . . . . . . . . 21</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0007" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 3.2.4. Label expansion with dot-prefix: {.var} . . . . . . . <span class="delete">22</span></td><td> </td><td class="rblock"> 3.2.4. <span class="insert">Fragment expansion: {#var} . . . . . . . . . . . . . . 22</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> 3.2.5.</span> Path segment expansion: {/var} . . . . . . . . . . . . 23</td><td> </td><td class="rblock"><span class="insert"> 3.2.5.</span> Label expansion with dot-prefix: {.var} . . . . . . . <span class="insert">23</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">3.2.6.</span> Path-style parameter expansion: {;var} . . . . . . . . <span class="delete">25</span></td><td> </td><td class="rblock"><span class="insert"> 3.2.6.</span> Path segment expansion: {/var} . . . . . . . . . . . . 23</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> 3.2.7.</span> Form-style query expansion: {?var} . . . . . . . . . . 25</td><td> </td><td class="rblock"> <span class="insert">3.2.7.</span> Path-style parameter expansion: {;var} . . . . . . . . <span class="insert">24</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 4. Security Considerations . . . . . . . . . . . . . . . . . . . <span class="delete">25</span></td><td> </td><td class="rblock"><span class="insert"> 3.2.8.</span> Form-style query expansion: {?var} . . . . . . . . . . 25</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <span class="delete">25</span></td><td> </td><td class="rblock"> <span class="insert">3.2.9. Form-style query continuation: {&var} . . . . . . . . 25</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 6. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . <span class="delete">25</span></td><td> </td><td class="rblock"> 4. Security Considerations . . . . . . . . . . . . . . . . . . . <span class="insert">26</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> 7. Normative References . . . . . . . . . . . . . . . . . . . . . <span class="delete">25</span></td><td> </td><td class="rblock"> 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <span class="insert">26</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> Appendix A. <span class="delete">Example URI Template Parser</span> . . . . . . . . . . . . . <span class="delete">26</span></td><td> </td><td class="rblock"> 6. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . <span class="insert">26</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> Appendix B. Revision History (to be removed by RFC Editor)</span> . . . 27</td><td> </td><td class="rblock"> 7. Normative References . . . . . . . . . . . . . . . . . . . . . <span class="insert">26</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . <span class="delete">27</span></td><td> </td><td class="rblock"> Appendix A. <span class="insert">Implementation Hints</span> . . . . . . . . . . . . . . . . 27</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . <span class="insert">29</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">1. Introduction</td><td> </td><td class="right">1. Introduction</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">1.1. Overview</td><td> </td><td class="right">1.1. Overview</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> A Uniform Resource Identifier (URI) [RFC3986] is often used to</td><td> </td><td class="right"> A Uniform Resource Identifier (URI) [RFC3986] is often used to</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> identify a specific resource within a common space of similar</td><td> </td><td class="right"> identify a specific resource within a common space of similar</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> resources. For example, personal web spaces are often delegated</td><td> </td><td class="right"> resources. For example, personal web spaces are often delegated</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> using a common pattern, such as</td><td> </td><td class="right"> using a common pattern, such as</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l4" /><small>skipping to change at</small><em> page 4, line 27</em></th><th> </th><th><a name="part-r4" /><small>skipping to change at</small><em> page 4, line 27</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> or a set of dictionary entries might be grouped in a hierarchy by the</td><td> </td><td class="right"> or a set of dictionary entries might be grouped in a hierarchy by the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> first letter of the term, as in</td><td> </td><td class="right"> first letter of the term, as in</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> http://example.com/dictionary/c/cat</td><td> </td><td class="right"> http://example.com/dictionary/c/cat</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> http://example.com/dictionary/d/dog</td><td> </td><td class="right"> http://example.com/dictionary/d/dog</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> or a service interface might be invoked with various user input in a</td><td> </td><td class="right"> or a service interface might be invoked with various user input in a</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> common pattern, as in</td><td> </td><td class="right"> common pattern, as in</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> http://example.com/search?q=cat&lang=en</td><td> </td><td class="right"> http://example.com/search?q=cat&lang=en</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0008" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> http://example.com/search?q=<span class="delete">dog</span>&lang=fr</td><td> </td><td class="rblock"> http://example.com/search?q=<span class="insert">chien</span>&lang=fr</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> URI Templates provide a mechanism for abstracting a space of resource</td><td> </td><td class="right"> URI Templates provide a mechanism for abstracting a space of resource</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> identifiers such that the variable parts can be easily identified and</td><td> </td><td class="right"> identifiers such that the variable parts can be easily identified and</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> described. URI templates can have many uses, including discovery of</td><td> </td><td class="right"> described. URI templates can have many uses, including discovery of</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> available services, configuring resource mappings, defining computed</td><td> </td><td class="right"> available services, configuring resource mappings, defining computed</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> links, specifying interfaces, and other forms of programmatic</td><td> </td><td class="right"> links, specifying interfaces, and other forms of programmatic</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> interaction with resources. For example, the above resources could</td><td> </td><td class="right"> interaction with resources. For example, the above resources could</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> be described by the following URI templates:</td><td> </td><td class="right"> be described by the following URI templates:</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> http://example.com/~{username}/</td><td> </td><td class="right"> http://example.com/~{username}/</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l5" /><small>skipping to change at</small><em> page 5, line 6</em></th><th> </th><th><a name="part-r5" /><small>skipping to change at</small><em> page 5, line 6</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> o expansion - The string result obtained from a template expression</td><td> </td><td class="right"> o expansion - The string result obtained from a template expression</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> after processing it according to its expression type, list of</td><td> </td><td class="right"> after processing it according to its expression type, list of</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> variable names, and value modifiers, as defined in Section 3.</td><td> </td><td class="right"> variable names, and value modifiers, as defined in Section 3.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> o template processor - A program or library that, given a URI</td><td> </td><td class="right"> o template processor - A program or library that, given a URI</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Template and a set of variables with values, transforms the</td><td> </td><td class="right"> Template and a set of variables with values, transforms the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> template string into a URI-reference by parsing the template for</td><td> </td><td class="right"> template string into a URI-reference by parsing the template for</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expressions and substituting each one with its corresponding</td><td> </td><td class="right"> expressions and substituting each one with its corresponding</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expansion.</td><td> </td><td class="right"> expansion.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> A URI Template provides both a structural description of a URI space</td><td> </td><td class="right"> A URI Template provides both a structural description of a URI space</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0009" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> and, when variable values are provided, <span class="delete">a simple instruction</span> on how</td><td> </td><td class="rblock"> and, when variable values are provided, <span class="insert">machine-readable instructions</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> to construct a URI corresponding to those values. A URI Template is</td><td> </td><td class="rblock"> on how to construct a URI corresponding to those values. A URI</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> transformed into a URI-reference by replacing each delimited</td><td> </td><td class="rblock"> Template is transformed into a URI-reference by replacing each</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> expression with its value as defined by the expression type and the</td><td> </td><td class="rblock"> delimited expression with its value as defined by the expression type</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> values of variables named within the expression. The expression</td><td> </td><td class="rblock"> and the values of variables named within the expression. The</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> types range from simple string expansion to multiple key=value lists.</td><td> </td><td class="rblock"> expression types range from simple string expansion to multiple</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> The expansions are based on the URI generic syntax, allowing an</td><td> </td><td class="rblock"> key=value lists. The expansions are based on the URI generic syntax,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> implementation to process any URI Template without knowing the</td><td> </td><td class="rblock"> allowing an implementation to process any URI Template without</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> scheme-specific requirements of every possible resulting URI.</td><td> </td><td class="rblock"> knowing the scheme-specific requirements of every possible resulting</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> URI.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> For example, the following URI Template includes a form-style</td><td> </td><td class="right"> For example, the following URI Template includes a form-style</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> parameter expression, as indicated by the "?" operator appearing</td><td> </td><td class="right"> parameter expression, as indicated by the "?" operator appearing</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> before the variable names.</td><td> </td><td class="right"> before the variable names.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> http://www.example.com/foo{?query,number}</td><td> </td><td class="right"> http://www.example.com/foo{?query,number}</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0010" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">Each template expression describes, in a machine-readable manner, how</span></td><td> </td><td class="rblock"> <span class="insert">The</span> expansion process for <span class="insert">expressions</span> beginning with the <span class="insert">question-</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> a URI is to be constructed. In this example, the</span> expansion process</td><td> </td><td class="rblock"><span class="insert"> mark</span> ("?") operator follows the same pattern as form-style interfaces</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> for <span class="delete">templates</span> beginning with the <span class="delete">question-mark</span> ("?") operator follows</td><td> </td><td class="rblock"> on the World Wide <span class="insert">Web:</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> the same pattern as form-style interfaces on the World Wide <span class="delete">Web.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> http://www.example.com/foo{?query,number}</td><td> </td><td class="right"> http://www.example.com/foo{?query,number}</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> \_____________/</td><td> </td><td class="right"> \_____________/</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |</td><td> </td><td class="right"> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |</td><td> </td><td class="right"> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> For each defined variable in [ 'query', 'number' ],</td><td> </td><td class="right"> For each defined variable in [ 'query', 'number' ],</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> substitute "?" if it is the first substitution or "&"</td><td> </td><td class="right"> substitute "?" if it is the first substitution or "&"</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> thereafter, followed by the variable name, '=', and the</td><td> </td><td class="right"> thereafter, followed by the variable name, '=', and the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> variable's value.</td><td> </td><td class="right"> variable's value.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l6" /><small>skipping to change at</small><em> page 6, line 11</em></th><th> </th><th><a name="part-r6" /><small>skipping to change at</small><em> page 6, line 11</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> or if both variables are undefined, then it would be</td><td> </td><td class="right"> or if both variables are undefined, then it would be</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> http://www.example.com/foo</td><td> </td><td class="right"> http://www.example.com/foo</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> A URI Template may be provided in absolute form, as in the examples</td><td> </td><td class="right"> A URI Template may be provided in absolute form, as in the examples</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> above, or in relative form. A template MUST be expanded before the</td><td> </td><td class="right"> above, or in relative form. A template MUST be expanded before the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> resulting reference can be resolved from relative to absolute form.</td><td> </td><td class="right"> resulting reference can be resolved from relative to absolute form.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Although the URI syntax is used for the result, the template string</td><td> </td><td class="right"> Although the URI syntax is used for the result, the template string</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> is allowed to contain the broader set of characters that can be found</td><td> </td><td class="right"> is allowed to contain the broader set of characters that can be found</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> in IRI references [RFC3987]. A URI Template is therefore also an IRI</td><td> </td><td class="right"> in IRI references [RFC3987]. A URI Template is therefore also an IRI</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0011" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> template, and the result of template processing can be <span class="delete">rendered as</span> an</td><td> </td><td class="rblock"> template, and the result of template processing can be <span class="insert">transformed to</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> IRI by <span class="delete">transforming each of</span> the <span class="delete">pct-encoded sequences to their</span></td><td> </td><td class="rblock"> an IRI by <span class="insert">following</span> the <span class="insert">process defined</span> in <span class="insert">Section 3.2 of [RFC3987].</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> corresponding Unicode character if that character is not</span> in <span class="delete">the</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> reserved set.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">1.2. Levels and Expression Types</td><td> </td><td class="right">1.2. Levels and Expression Types</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> URI Templates are similar to a macro language with a fixed set of</td><td> </td><td class="right"> URI Templates are similar to a macro language with a fixed set of</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> macro definitions: the expression type determines the expansion</td><td> </td><td class="right"> macro definitions: the expression type determines the expansion</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> process. The default expression type is simple string expansion,</td><td> </td><td class="right"> process. The default expression type is simple string expansion,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> wherein a single named variable is replaced by its value as a string</td><td> </td><td class="right"> wherein a single named variable is replaced by its value as a string</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> after UTF-8 encoding the characters and then pct-encoding any octets</td><td> </td><td class="right"> after UTF-8 encoding the characters and then pct-encoding any octets</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> that are not in the unreserved set.</td><td> </td><td class="right"> that are not in the unreserved set.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l7" /><small>skipping to change at</small><em> page 6, line 44</em></th><th> </th><th><a name="part-r7" /><small>skipping to change at</small><em> page 6, line 42</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | empty := "" |</td><td> </td><td class="right"> | empty := "" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | undef := null |</td><td> </td><td class="right"> | undef := null |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | |</td><td> </td><td class="right"> | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----------------------------------------------------------------|</td><td> </td><td class="right"> |-----------------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | Op Expression Expansion |</td><td> </td><td class="right"> | Op Expression Expansion |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----------------------------------------------------------------|</td><td> </td><td class="right"> |-----------------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | Simple string expansion (Sec 3.2.2) |</td><td> </td><td class="right"> | | Simple string expansion (Sec 3.2.2) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {var} value |</td><td> </td><td class="right"> | | {var} value |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {hello} Hello%20World%21 |</td><td> </td><td class="right"> | | {hello} Hello%20World%21 |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0012" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">| | O{empty}X OX |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | O{undef}X OX |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> `-----------------------------------------------------------------'</td><td> </td><td class="right"> `-----------------------------------------------------------------'</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0013" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> Level 2 templates add the <span class="delete">ability to define a default string, which</span></td><td> </td><td class="rblock"> Level 2 templates add the plus ("+") <span class="insert">operator,</span> for expansion <span class="insert">of</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> is substituted if the variable is undefined, and the</span> plus ("+")</td><td> </td><td class="rblock"> values that are allowed to include reserved <span class="insert">characters, and the</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">operator</span> for expansion values that are allowed to include reserved</td><td> </td><td class="rblock"><span class="insert"> crosshatch ("#") operator for expansion of fragment identifiers.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">characters.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> .-----------------------------------------------------------------.</td><td> </td><td class="right"> .-----------------------------------------------------------------.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | Level 2 examples, with variables having values of |</td><td> </td><td class="right"> | Level 2 examples, with variables having values of |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | |</td><td> </td><td class="right"> | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | var := "value" |</td><td> </td><td class="right"> | var := "value" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | hello := "Hello World!" |</td><td> </td><td class="right"> | hello := "Hello World!" |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0014" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">| empty := "" |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | undef := null |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | path := "/foo/bar" |</td><td> </td><td class="right"> | path := "/foo/bar" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | |</td><td> </td><td class="right"> | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----------------------------------------------------------------|</td><td> </td><td class="right"> |-----------------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | Op Expression Expansion |</td><td> </td><td class="right"> | Op Expression Expansion |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----------------------------------------------------------------|</td><td> </td><td class="right"> |-----------------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0015" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | <span class="delete">| String expansion with defaults (Sec 3.2.2) |</span></td><td> </td><td class="rblock"> | + | Reserved <span class="insert">string</span> expansion (Sec 3.2.3) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | {var|default} value |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | O{empty|default}X OX |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | O{undef|default}X OdefaultX |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> |-----+-----------------------------------------------------------|</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> |</span> + | Reserved expansion <span class="delete">with defaults</span> (Sec 3.2.3) |</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+var} value |</td><td> </td><td class="right"> | | {+var} value |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+hello} Hello%20World! |</td><td> </td><td class="right"> | | {+hello} Hello%20World! |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+path}/here /foo/bar/here |</td><td> </td><td class="right"> | | {+path}/here /foo/bar/here |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | here?ref={+path} here?ref=/foo/bar |</td><td> </td><td class="right"> | | here?ref={+path} here?ref=/foo/bar |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0016" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | | <span class="delete">up{+path}{x}/here up/foo/bar1024/here |</span></td><td> </td><td class="rblock"> <span class="insert">|-----+-----------------------------------------------------------|</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | up{+empty|/1}/here up/here |</span></td><td> </td><td class="rblock"> | <span class="insert">#</span> | <span class="insert">Fragment expansion, crosshatch-prefixed (Sec 3.2.4)</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | up{+undef|/1}/here up/1/here</span> |</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0017" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> <span class="insert">| | X{#var} X#value |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | X{#hello} X#Hello%20World! |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> `-----------------------------------------------------------------'</td><td> </td><td class="right"> `-----------------------------------------------------------------'</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Level 3 templates add more complex operators for lists of comma-</td><td> </td><td class="right"> Level 3 templates add more complex operators for lists of comma-</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> separated values, dot-prefixed labels, slash-prefixed path segments,</td><td> </td><td class="right"> separated values, dot-prefixed labels, slash-prefixed path segments,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> semicolon-prefixed path parameters, and the forms-style construction</td><td> </td><td class="right"> semicolon-prefixed path parameters, and the forms-style construction</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> of a query syntax consisting of key=value pairs that are separated by</td><td> </td><td class="right"> of a query syntax consisting of key=value pairs that are separated by</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> an ampersand character.</td><td> </td><td class="right"> an ampersand character.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> .-----------------------------------------------------------------.</td><td> </td><td class="right"> .-----------------------------------------------------------------.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | Level 3 examples, with variables having values of |</td><td> </td><td class="right"> | Level 3 examples, with variables having values of |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | |</td><td> </td><td class="right"> | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | var := "value" |</td><td> </td><td class="right"> | var := "value" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | hello := "Hello World!" |</td><td> </td><td class="right"> | hello := "Hello World!" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | empty := "" |</td><td> </td><td class="right"> | empty := "" |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0018" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | undef := null |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | path := "/foo/bar" |</td><td> </td><td class="right"> | path := "/foo/bar" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | x := "1024" |</td><td> </td><td class="right"> | x := "1024" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | y := "768" |</td><td> </td><td class="right"> | y := "768" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | |</td><td> </td><td class="right"> | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----------------------------------------------------------------|</td><td> </td><td class="right"> |-----------------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | Op Expression Expansion |</td><td> </td><td class="right"> | Op Expression Expansion |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----------------------------------------------------------------|</td><td> </td><td class="right"> |-----------------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | String expansion with multiple variables (Sec 3.2.2) |</td><td> </td><td class="right"> | | String expansion with multiple variables (Sec 3.2.2) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0019" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | | <span class="delete">{x,y} 1024,768 </span> |</td><td> </td><td class="rblock"> | | <span class="insert">map?{x,y} map?1024,768</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {x,hello,y} 1024,Hello%20World%21,768 |</td><td> </td><td class="right"> | | {x,hello,y} 1024,Hello%20World%21,768 |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0020" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">| | ?{x,empty} ?1024, |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | ?{x,undef} ?1024 |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | ?{undef,y} ?768 |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | ?{x,undef|0} ?1024,0 |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | + | Reserved expansion with multiple variables (Sec 3.2.3) |</td><td> </td><td class="right"> | + | Reserved expansion with multiple variables (Sec 3.2.3) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+x,hello,y} 1024,Hello%20World!,768 |</td><td> </td><td class="right"> | | {+x,hello,y} 1024,Hello%20World!,768 |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0021" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | | {+path,x}/here /foo/bar<span class="delete">/</span>1024/here |</td><td> </td><td class="rblock"> | | {+path,x}/here /foo/bar<span class="insert">,</span>1024/here |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0022" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | . | Label expansion, dot-prefixed (Sec <span class="delete">3.2.4)</span> |</td><td> </td><td class="rblock"> | <span class="insert"># | Fragment expansion with multiple variables (Sec 3.2.4) |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {#x,hello,y} #1024,Hello%20World!,768 |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {#path,x}/here #/foo/bar,1024/here |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> |-----+-----------------------------------------------------------|</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> |</span> . | Label expansion, dot-prefixed (Sec <span class="insert">3.2.5)</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | X{.var} X.value |</td><td> </td><td class="right"> | | X{.var} X.value |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0023" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | | <span class="delete">X{.empty} X. |</span></td><td> </td><td class="rblock"> | | <span class="insert">X{.x,y} X.1024.768</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | X{.undef} X</span> |</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0024" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | / | Path segments, slash-prefixed (Sec 3.2.<span class="delete">5</span>) |</td><td> </td><td class="rblock"> | / | Path segments, slash-prefixed (Sec 3.2.<span class="insert">6</span>) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {/var} /value |</td><td> </td><td class="right"> | | {/var} /value |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0025" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | | <span class="delete">{/var,empty} /value/ |</span></td><td> </td><td class="rblock"> | | <span class="insert">{/var,x}/here /value/1024/here</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | {/var,undef} /value</span> |</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0026" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | ; | Path-style parameters, semicolon-prefixed (Sec 3.2.<span class="delete">6</span>) |</td><td> </td><td class="rblock"> | ; | Path-style parameters, semicolon-prefixed (Sec 3.2.<span class="insert">7</span>) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {;x,y} ;x=1024;y=768 |</td><td> </td><td class="right"> | | {;x,y} ;x=1024;y=768 |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {;x,y,empty} ;x=1024;y=768;empty |</td><td> </td><td class="right"> | | {;x,y,empty} ;x=1024;y=768;empty |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0027" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> | | {;x,y,undef} ;x=1024;y=768 |</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0028" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | ? | Form-style query, ampersand-separated (Sec 3.2.<span class="delete">7</span>) |</td><td> </td><td class="rblock"> | ? | Form-style query, ampersand-separated (Sec 3.2.<span class="insert">8</span>) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {?x,y} ?x=1024&y=768 |</td><td> </td><td class="right"> | | {?x,y} ?x=1024&y=768 |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {?x,y,empty} ?x=1024&y=768&empty= |</td><td> </td><td class="right"> | | {?x,y,empty} ?x=1024&y=768&empty= |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0029" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | | <span class="delete">{?x,y,undef} ?x=1024&y=768</span> |</td><td> </td><td class="rblock"> | | <span class="insert">|</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> |-----+-----------------------------------------------------------|</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | & | Form-style query continuation (Sec 3.2.9) |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | ?fixed=yes{&x} ?fixed=yes&x=1024 |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {&x,y,empty} &x=1024&y=768&empty=</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> `-----------------------------------------------------------------'</td><td> </td><td class="right"> `-----------------------------------------------------------------'</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0030" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> </span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Finally, Level 4 templates add the ability to specify value modifiers</td><td> </td><td class="right"> Finally, Level 4 templates add the ability to specify value modifiers</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> as a suffix to the variable name. The prefix modifier (":")</td><td> </td><td class="right"> as a suffix to the variable name. The prefix modifier (":")</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> indicates that only a limited number of characters from the beginning</td><td> </td><td class="right"> indicates that only a limited number of characters from the beginning</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> of the value are used by the expansion. The explode ("*") modifier</td><td> </td><td class="right"> of the value are used by the expansion. The explode ("*") modifier</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0031" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">tells</span> the <span class="delete">expansion process</span> to <span class="delete">treat the value</span> as a <span class="delete">multivalued</span></td><td> </td><td class="rblock"> <span class="insert">indicates that</span> the <span class="insert">variable is</span> to <span class="insert">be treated</span> as a <span class="insert">composite value,</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> structure ---</span> a list of <span class="delete">values</span> or <span class="delete">key=value pairs -- rather than</span> as a</td><td> </td><td class="rblock"><span class="insert"> consisting of either</span> a list of <span class="insert">names</span> or <span class="insert">an associative array of</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">single string.</span></td><td> </td><td class="rblock"><span class="insert"> (name, value) pairs, that is expanded</span> as <span class="insert">if each member were</span> a</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> <span class="insert">separate variable.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> .-----------------------------------------------------------------.</td><td> </td><td class="right"> .-----------------------------------------------------------------.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | Level 4 examples, with variables having values of |</td><td> </td><td class="right"> | Level 4 examples, with variables having values of |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | |</td><td> </td><td class="right"> | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | var := "value" |</td><td> </td><td class="right"> | var := "value" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | hello := "Hello World!" |</td><td> </td><td class="right"> | hello := "Hello World!" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | path := "/foo/bar" |</td><td> </td><td class="right"> | path := "/foo/bar" |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | list := [ "red", "green", "blue" ] |</td><td> </td><td class="right"> | list := [ "red", "green", "blue" ] |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0032" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | keys := <span class="delete">[("semi", ";"), ("dot", ".")]</span> |</td><td> </td><td class="rblock"> | keys := <span class="insert">[("semi",";"),("dot","."),("comma",",")] |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | empty_keys := []</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | |</td><td> </td><td class="right"> | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | Op Expression Expansion |</td><td> </td><td class="right"> | Op Expression Expansion |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----------------------------------------------------------------|</td><td> </td><td class="right"> |-----------------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | String expansion with value modifiers (Sec 3.2.2) |</td><td> </td><td class="right"> | | String expansion with value modifiers (Sec 3.2.2) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {var:3} val |</td><td> </td><td class="right"> | | {var:3} val |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {var:30} value |</td><td> </td><td class="right"> | | {var:30} value |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {list} red,green,blue |</td><td> </td><td class="right"> | | {list} red,green,blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {list*} red,green,blue |</td><td> </td><td class="right"> | | {list*} red,green,blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {keys} semi,%3B,dot,.,comma,%2C |</td><td> </td><td class="right"> | | {keys} semi,%3B,dot,.,comma,%2C |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l8" /><small>skipping to change at</small><em> page 9, line 42</em></th><th> </th><th><a name="part-r8" /><small>skipping to change at</small><em> page 9, line 39</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | + | Reserved expansion with value modifiers (Sec 3.2.3) |</td><td> </td><td class="right"> | + | Reserved expansion with value modifiers (Sec 3.2.3) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+path:6}/here /foo/b/here |</td><td> </td><td class="right"> | | {+path:6}/here /foo/b/here |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+list} red,green,blue |</td><td> </td><td class="right"> | | {+list} red,green,blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+list*} red,green,blue |</td><td> </td><td class="right"> | | {+list*} red,green,blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+keys} semi,;,dot,.,comma,, |</td><td> </td><td class="right"> | | {+keys} semi,;,dot,.,comma,, |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {+keys*} semi=;,dot=.,comma=, |</td><td> </td><td class="right"> | | {+keys*} semi=;,dot=.,comma=, |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0033" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | . | Label expansion, dot-prefixed (Sec <span class="delete">3.2.4)</span> |</td><td> </td><td class="rblock"> | <span class="insert"># | Fragment expansion with value modifiers (Sec 3.2.4) |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {#path:6}/here #/foo/b/here |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {#list} #red,green,blue |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {#list*} #red,green,blue |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {#keys} #semi,;,dot,.,comma,, |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {#keys*} #semi=;,dot=.,comma=, |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> |-----+-----------------------------------------------------------|</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> |</span> . | Label expansion, dot-prefixed (Sec <span class="insert">3.2.5)</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | X{.var:3} X.val |</td><td> </td><td class="right"> | | X{.var:3} X.val |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | X{.list} X.red,green,blue |</td><td> </td><td class="right"> | | X{.list} X.red,green,blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | X{.list*} X.red.green.blue |</td><td> </td><td class="right"> | | X{.list*} X.red.green.blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | X{.keys} X.semi,%3B,dot,.,comma,%2C |</td><td> </td><td class="right"> | | X{.keys} X.semi,%3B,dot,.,comma,%2C |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | X{.keys*} X.semi=%3B.dot=..comma=%2C |</td><td> </td><td class="right"> | | X{.keys*} X.semi=%3B.dot=..comma=%2C |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0034" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | / | Path segments, slash-prefixed (Sec 3.2.<span class="delete">5</span>) |</td><td> </td><td class="rblock"> | / | Path segments, slash-prefixed (Sec 3.2.<span class="insert">6</span>) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {/var:1,var} /v/value |</td><td> </td><td class="right"> | | {/var:1,var} /v/value |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {/list} /red,green,blue |</td><td> </td><td class="right"> | | {/list} /red,green,blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {/list*} /red/green/blue |</td><td> </td><td class="right"> | | {/list*} /red/green/blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {/list*,path:4} /red/green/blue/%2Ffoo |</td><td> </td><td class="right"> | | {/list*,path:4} /red/green/blue/%2Ffoo |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {/keys} /semi,%3B,dot,.,comma,%2C |</td><td> </td><td class="right"> | | {/keys} /semi,%3B,dot,.,comma,%2C |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {/keys*} /semi=%3B/dot=./comma=%2C |</td><td> </td><td class="right"> | | {/keys*} /semi=%3B/dot=./comma=%2C |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0035" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | ; | Path-style parameters, semicolon-prefixed (Sec 3.2.<span class="delete">6</span>) |</td><td> </td><td class="rblock"> | ; | Path-style parameters, semicolon-prefixed (Sec 3.2.<span class="insert">7</span>) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {;hello:5} ;hello=Hello |</td><td> </td><td class="right"> | | {;hello:5} ;hello=Hello |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0036" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | | {;list} ;<span class="delete">red,green,blue </span> |</td><td> </td><td class="rblock"> | | {;list} ;<span class="insert">list=red,green,blue</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {;list*} ;red;green;blue |</td><td> </td><td class="right"> | | {;list*} ;red;green;blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0037" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | | {;keys} ;<span class="delete">semi,%3B,dot,.,comma,%2C </span> |</td><td> </td><td class="rblock"> | | {;keys} ;<span class="insert">keys=semi,%3B,dot,.,comma,%2C</span> |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {;keys*} ;semi=%3B;dot=.;comma=%2C |</td><td> </td><td class="right"> | | {;keys*} ;semi=%3B;dot=.;comma=%2C |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> |-----+-----------------------------------------------------------|</td><td> </td><td class="right"> |-----+-----------------------------------------------------------|</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0038" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> | ? | Form-style query, ampersand-separated (Sec 3.2.<span class="delete">7</span>) |</td><td> </td><td class="rblock"> | ? | Form-style query, ampersand-separated (Sec 3.2.<span class="insert">8</span>) |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {?var:3} ?var=val |</td><td> </td><td class="right"> | | {?var:3} ?var=val |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {?list} ?list=red,green,blue |</td><td> </td><td class="right"> | | {?list} ?list=red,green,blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {?list*} ?list=red&list=green&list=blue |</td><td> </td><td class="right"> | | {?list*} ?list=red&list=green&list=blue |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {?keys} ?keys=semi,%3B,dot,.,comma,%2C |</td><td> </td><td class="right"> | | {?keys} ?keys=semi,%3B,dot,.,comma,%2C |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | {?keys*} ?semi=%3B&dot=.&comma=%2C |</td><td> </td><td class="right"> | | {?keys*} ?semi=%3B&dot=.&comma=%2C |</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> | | |</td><td> </td><td class="right"> | | |</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0039" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> <span class="insert">|-----+-----------------------------------------------------------|</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | & | Form-style query continuation (Sec 3.2.9) |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {&var:3} &var=val |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {&list} &list=red,green,blue |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {&list*} &list=red&list=green&list=blue |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {&keys} &keys=semi,%3B,dot,.,comma,%2C |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | {&keys*} &semi=%3B&dot=.&comma=%2C |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> | | |</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> `-----------------------------------------------------------------'</td><td> </td><td class="right"> `-----------------------------------------------------------------'</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">1.3. Design Considerations</td><td> </td><td class="right">1.3. Design Considerations</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Mechanisms similar to URI Templates have been defined within several</td><td> </td><td class="right"> Mechanisms similar to URI Templates have been defined within several</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> specifications, including WSDL, WADL and OpenSearch. This</td><td> </td><td class="right"> specifications, including WSDL, WADL and OpenSearch. This</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> specification extends and formally defines the syntax so that URI</td><td> </td><td class="right"> specification extends and formally defines the syntax so that URI</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Templates can be used consistently across multiple Internet</td><td> </td><td class="right"> Templates can be used consistently across multiple Internet</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> applications and within Internet message fields, while at the same</td><td> </td><td class="right"> applications and within Internet message fields, while at the same</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> time retaining compatibility with those earlier definitions.</td><td> </td><td class="right"> time retaining compatibility with those earlier definitions.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The URI Template syntax has been designed to carefully balance the</td><td> </td><td class="right"> The URI Template syntax has been designed to carefully balance the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> need for a powerful expansion mechanism with the need for ease of</td><td> </td><td class="right"> need for a powerful expansion mechanism with the need for ease of</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> implementation. The syntax is designed to be trivial to parse while</td><td> </td><td class="right"> implementation. The syntax is designed to be trivial to parse while</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> at the same time providing enough flexibility to express many common</td><td> </td><td class="right"> at the same time providing enough flexibility to express many common</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> template scenarios. Implementations are able to parse the template</td><td> </td><td class="right"> template scenarios. Implementations are able to parse the template</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> and perform the expansions in a single pass.</td><td> </td><td class="right"> and perform the expansions in a single pass.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Templates are simple and readable when used with common examples</td><td> </td><td class="right"> Templates are simple and readable when used with common examples</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> because the single-character operators match the URI generic syntax</td><td> </td><td class="right"> because the single-character operators match the URI generic syntax</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0040" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> delimiters. The operator's associated delimiter <span class="delete">(";", "?",</span> "/", and</td><td> </td><td class="rblock"> delimiters. The operator's associated delimiter <span class="insert">(".", ";",</span> "/", <span class="insert">"?",</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">".")</span> is omitted when none of the listed variables are defined.</td><td> </td><td class="rblock"><span class="insert"> "&",</span> and <span class="insert">"#")</span> is omitted when none of the listed variables are</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> </td><td> </td><td class="rblock"> defined. Likewise, the expansion process for ";" (path-style</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> Likewise, the expansion process for ";" (path-style parameters) will</td><td> </td><td class="rblock"> parameters) will omit the "=" when the variable value is empty,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> omit the "=" when the variable value is empty, whereas the process</td><td> </td><td class="rblock"> whereas the process for "?" (form-style parameters) will not omit the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> for "?" (form-style parameters) will not omit the "=" when the value</td><td> </td><td class="rblock"> "=" when the value is empty. Multiple variables and list values have</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> is empty. Multiple variables and list values have their values</td><td> </td><td class="rblock"> their values joined with "," if there is no predefined joining</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> joined with "," if there is no predefined joining mechanism for the</td><td> </td><td class="rblock"> mechanism for the operator. <span class="insert">The "+" and "#" operators</span> will</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> operator. <span class="delete">Only one operator, plus ("+"),</span> will substitute unencoded</td><td> </td><td class="rblock"> substitute unencoded reserved characters found inside the variable</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> reserved characters found inside the variable values; the other</td><td> </td><td class="rblock"> values; the other operators will pct-encode reserved characters found</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> operators will pct-encode reserved characters found in the variable</td><td> </td><td class="rblock"> in the variable values prior to expansion.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> values prior to expansion.</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The most common cases for URI spaces can be described with Level 1</td><td> </td><td class="right"> The most common cases for URI spaces can be described with Level 1</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> template expressions. If we were only concerned with URI generation,</td><td> </td><td class="right"> template expressions. If we were only concerned with URI generation,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> then the template syntax could be limited to just simple variable</td><td> </td><td class="right"> then the template syntax could be limited to just simple variable</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expansion, since more complex forms could be generated by changing</td><td> </td><td class="right"> expansion, since more complex forms could be generated by changing</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> the variable values. However, URI Templates have the additional goal</td><td> </td><td class="right"> the variable values. However, URI Templates have the additional goal</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> of describing the layout of identifiers in terms of preexisting data</td><td> </td><td class="right"> of describing the layout of identifiers in terms of preexisting data</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> values. The template syntax therefore includes operators that</td><td> </td><td class="right"> values. The template syntax therefore includes operators that</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> reflect how resource identifiers are commonly allocated. Likewise,</td><td> </td><td class="right"> reflect how resource identifiers are commonly allocated. Likewise,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> since prefix substrings are often used to partition large spaces of</td><td> </td><td class="right"> since prefix substrings are often used to partition large spaces of</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> resources, modifiers on variable values provide a way to specify both</td><td> </td><td class="right"> resources, modifiers on variable values provide a way to specify both</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> the substring and the full value string with a single variable name.</td><td> </td><td class="right"> the substring and the full value string with a single variable name.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">1.4. Limitations</td><td> </td><td class="right">1.4. Limitations</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Since a URI Template describes a superset of the identifiers, there</td><td> </td><td class="right"> Since a URI Template describes a superset of the identifiers, there</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> is no implication that every possible expansion for each delimited</td><td> </td><td class="right"> is no implication that every possible expansion for each delimited</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> variable expression corresponds to a URI of an existing resource.</td><td> </td><td class="right"> variable expression corresponds to a URI of an existing resource.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Our expectation is that an application constructing URIs according to</td><td> </td><td class="right"> Our expectation is that an application constructing URIs according to</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> the template will be provided with an appropriate set of values for</td><td> </td><td class="right"> the template will be provided with an appropriate set of values for</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0041" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> the variables being <span class="delete">substituted and will be able to cope with any</span></td><td> </td><td class="rblock"> the variables being <span class="insert">substituted,</span> or <span class="insert">at least a means of validating</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> errors that might occur when the resulting URI is used for name</span></td><td> </td><td class="rblock"><span class="insert"> user data-entry for those values.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> resolution</span> or <span class="delete">access.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> URI Templates are not URIs: they do not identify an abstract or</td><td> </td><td class="right"> URI Templates are not URIs: they do not identify an abstract or</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> physical resource, they are not parsed as URIs, and should not be</td><td> </td><td class="right"> physical resource, they are not parsed as URIs, and should not be</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> used in places where a URI would be expected unless the template</td><td> </td><td class="right"> used in places where a URI would be expected unless the template</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expressions will be expanded by a template processor prior to use.</td><td> </td><td class="right"> expressions will be expanded by a template processor prior to use.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Distinct field, element, or attribute names should be used to</td><td> </td><td class="right"> Distinct field, element, or attribute names should be used to</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> differentiate protocol elements that carry a URI Template from those</td><td> </td><td class="right"> differentiate protocol elements that carry a URI Template from those</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> that expect a URI reference.</td><td> </td><td class="right"> that expect a URI reference.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0042" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> <span class="insert">Some URI Templates can be used in reverse for the purpose of variable</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> matching: comparing the template to a fully formed URI in order to</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> extract the variable parts from that URI and assign them to the named</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> variables. Variable matching only works well if the template</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> expressions are delimited by the beginning or end of the URI or by</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> characters that cannot be part of the expansion, such as reserved</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> characters surrounding a simple string expression. In general,</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> regular expression languages are better suited for variable matching.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> </td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">1.5. Notational Conventions</td><td> </td><td class="right">1.5. Notational Conventions</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",</td><td> </td><td class="right"> The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this</td><td> </td><td class="right"> "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> document are to be interpreted as described in [RFC2119].</td><td> </td><td class="right"> document are to be interpreted as described in [RFC2119].</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> This specification uses the Augmented Backus-Naur Form (ABNF)</td><td> </td><td class="right"> This specification uses the Augmented Backus-Naur Form (ABNF)</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> notation of [RFC5234]. The following ABNF rules are imported from</td><td> </td><td class="right"> notation of [RFC5234]. The following ABNF rules are imported from</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> the normative references [RFC5234], [RFC3986], and [RFC3987].</td><td> </td><td class="right"> the normative references [RFC5234], [RFC3986], and [RFC3987].</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l9" /><small>skipping to change at</small><em> page 12, line 51</em></th><th> </th><th><a name="part-r9" /><small>skipping to change at</small><em> page 13, line 29</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> templates occur in practice as a sequence of characters in whatever</td><td> </td><td class="right"> templates occur in practice as a sequence of characters in whatever</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> form or encoding is suitable for the context in which they occur,</td><td> </td><td class="right"> form or encoding is suitable for the context in which they occur,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> whether that be octets embedded in a network protocol element or</td><td> </td><td class="right"> whether that be octets embedded in a network protocol element or</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> paint applied to the side of a bus. This specification does not</td><td> </td><td class="right"> paint applied to the side of a bus. This specification does not</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> mandate any particular character encoding for mapping between URI</td><td> </td><td class="right"> mandate any particular character encoding for mapping between URI</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Template characters and the octets used to store or transmit those</td><td> </td><td class="right"> Template characters and the octets used to store or transmit those</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> characters. When a URI Template appears in a protocol element, the</td><td> </td><td class="right"> characters. When a URI Template appears in a protocol element, the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> character encoding is defined by that protocol; without such a</td><td> </td><td class="right"> character encoding is defined by that protocol; without such a</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> definition, a URI Template is assumed to be in the same character</td><td> </td><td class="right"> definition, a URI Template is assumed to be in the same character</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> encoding as the surrounding text. It is only during the process of</td><td> </td><td class="right"> encoding as the surrounding text. It is only during the process of</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0043" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> template expansion that a string of characters in a URI Template <span class="delete">MUST</span></td><td> </td><td class="rblock"> template expansion that a string of characters in a URI Template <span class="insert">is</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> be <span class="delete">transformed into its corresponding</span> sequence of <span class="delete">normalized</span> Unicode</td><td> </td><td class="rblock"><span class="insert"> REQUIRED to</span> be <span class="insert">processed as a</span> sequence of Unicode codepoints.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> codepoints.</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The Unicode Standard [UNIV4] defines various equivalences between</td><td> </td><td class="right"> The Unicode Standard [UNIV4] defines various equivalences between</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> sequences of characters for various purposes. Unicode Standard Annex</td><td> </td><td class="right"> sequences of characters for various purposes. Unicode Standard Annex</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> #15 [UTR15] defines various Normalization Forms for these</td><td> </td><td class="right"> #15 [UTR15] defines various Normalization Forms for these</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0044" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">equivalences, in particular Normalization Form KC (NFKC:</span></td><td> </td><td class="rblock"> <span class="insert">equivalences.</span> The normalization form determines how to consistently</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> Compatibility Decomposition followed by Canonical Composition).</span> The</td><td> </td><td class="rblock"> encode equivalent strings. <span class="insert">In theory, all URI processing</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> normalization form determines how to consistently encode <span class="delete">the</span></td><td> </td><td class="rblock"><span class="insert"> implementations, including template processors, should use the same</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> equivalent strings.</td><td> </td><td class="rblock"><span class="insert"> normalization form for generating a URI reference. In practice, they</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> do not. If a value has been provided by the same server as the</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> resource, then it can be assumed that the string is already in the</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> form expected by that server. If a value is provided by a user, such</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> as via a data-entry dialog, then the string SHOULD be normalized as</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> Normalization Form C (NFC: Canonical Decomposition, followed by</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> Canonical Composition) prior to being used in expansions by a</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> template processor.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0045" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">In theory, all URI processing implementations, including template</span></td><td> </td><td class="rblock"> <span class="insert">Likewise, when non-ASCII data</span> that <span class="insert">represents readable strings</span> is</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> processors, should use the same normalization form for generating or</span></td><td> </td><td class="rblock"> <span class="insert">pct-encoded for use</span> in a <span class="insert">URI reference, a</span> template <span class="insert">processor MUST</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> handling a URI reference. In practice, they do not. However,</span></td><td> </td><td class="rblock"><span class="insert"> first</span> encode the <span class="insert">string</span> as UTF-8 [RFC3629] and then pct-encode any</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> template processors transform the template literals and variable</span></td><td> </td><td class="rblock"> octets that are not allowed in a <span class="insert">URI reference.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> values from characters to codepoints, expand the expressions, and</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> then transform the resulting codepoints back to characters again. In</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> order to promote consistent generation of URI references from</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> templates, template processors MUST ensure</span> that <span class="delete">the template and each</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> variable value</span> is in <span class="delete">NFKC when they are transformed to</span> a <span class="delete">sequence of</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> Unicode codepoints. The final step of</span> template <span class="delete">processing will</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> encode the <span class="delete">expanded sequence of Unicode codepoints, which should</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> still be in NFKC,</span> as UTF-8 [RFC3629] and then <span class="delete">further</span> pct-encode any</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> octets <span class="delete">within the UTF-8 string</span> that are not allowed in a <span class="delete">URI.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">2. Syntax</td><td> </td><td class="right">2. Syntax</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> A URI Template is a string of printable Unicode characters that</td><td> </td><td class="right"> A URI Template is a string of printable Unicode characters that</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> contains zero or more embedded variable expressions, each expression</td><td> </td><td class="right"> contains zero or more embedded variable expressions, each expression</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> being delimited by a matching pair of braces ('{', '}').</td><td> </td><td class="right"> being delimited by a matching pair of braces ('{', '}').</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> URI-Template = *( literals / expression )</td><td> </td><td class="right"> URI-Template = *( literals / expression )</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Although templates (and template processor implementations) are</td><td> </td><td class="right"> Although templates (and template processor implementations) are</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> described above in terms of four gradual levels, we define the URI-</td><td> </td><td class="right"> described above in terms of four gradual levels, we define the URI-</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Template syntax in terms of the ABNF for Level 4. A template</td><td> </td><td class="right"> Template syntax in terms of the ABNF for Level 4. A template</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> processor limited to lower level templates MAY exclude the ABNF rules</td><td> </td><td class="right"> processor limited to lower level templates MAY exclude the ABNF rules</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> applicable only to higher levels. However, it is RECOMMENDED that</td><td> </td><td class="right"> applicable only to higher levels. However, it is RECOMMENDED that</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> all parsers implement the full syntax such that unsupported levels</td><td> </td><td class="right"> all parsers implement the full syntax such that unsupported levels</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> can be properly identified as such to the end user.</td><td> </td><td class="right"> can be properly identified as such to the end user.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0046" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">Each character in a URI Template MUST be transcoded to an NFKC</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> Unicode codepoint prior to evaluation. If a character sequence in</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> the template consists of pct-encoded triplets corresponding to a</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> valid sequence of octets in UTF-8 that represent a character not in</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> the reserved set, then the triplets MUST be replaced with their</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> corresponding Unicode codepoint. In other words, pct-encoded UTF-8</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> found within the template is decoded prior to further processing</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> unless the corresponding character is in the reserved set.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> </td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">2.1. Literals</td><td> </td><td class="right">2.1. Literals</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The characters outside of expressions in a URI Template string are</td><td> </td><td class="right"> The characters outside of expressions in a URI Template string are</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0047" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> intended to be <span class="delete">translated</span> literally to the <span class="delete">URI-reference.</span></td><td> </td><td class="rblock"> intended to be <span class="insert">copied</span> literally to the <span class="insert">URI-reference if the character</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> is allowed in a URI (reserved / unreserved / pct-encoded) or, if not</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> allowed, copied to the URI-reference in its UTF-8 pct-encoded form.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> literals = %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B</td><td> </td><td class="right"> literals = %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> / %x5D-5F / %x61-7A / %x7E / ucschar / iprivate</td><td> </td><td class="right"> / %x5D-5F / %x61-7A / %x7E / ucschar / iprivate</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> / pct-encoded</td><td> </td><td class="right"> / pct-encoded</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> ; any Unicode character except: CTL, SP,</td><td> </td><td class="right"> ; any Unicode character except: CTL, SP,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> ; DQUOTE, "'", "%" (aside from pct-encoded),</td><td> </td><td class="right"> ; DQUOTE, "'", "%" (aside from pct-encoded),</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> ; "<", ">", "\", "^", "`", "{", "|", "}"</td><td> </td><td class="right"> ; "<", ">", "\", "^", "`", "{", "|", "}"</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0048" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">A sequence of pct-encoded literals that corresponds to a UTF-8</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> encoded character that is not within the reserved set will be</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> transcoded during template processing, as describe above. If such a</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> character is not in the unreserved set, it will be re-pct-encoded</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> during the final step of template processing. Unreserved characters</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> will therefore be normalized to their unencoded form as a side-effect</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> of template processing.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> </td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">2.2. Expressions</td><td> </td><td class="right">2.2. Expressions</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Template expressions are the parameterized parts of a URI Template.</td><td> </td><td class="right"> Template expressions are the parameterized parts of a URI Template.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Each expression contains an optional operator, which defines the</td><td> </td><td class="right"> Each expression contains an optional operator, which defines the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expression type and its corresponding expansion process, followed by</td><td> </td><td class="right"> expression type and its corresponding expansion process, followed by</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> a comma-separated list of variable specifiers (variable names and</td><td> </td><td class="right"> a comma-separated list of variable specifiers (variable names and</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> optional value modifiers). If no operator is provided, the</td><td> </td><td class="right"> optional value modifiers). If no operator is provided, the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expression defaults to simple variable expansion of unreserved</td><td> </td><td class="right"> expression defaults to simple variable expansion of unreserved</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> values.</td><td> </td><td class="right"> values.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expression = "{" [ operator ] variable-list "}"</td><td> </td><td class="right"> expression = "{" [ operator ] variable-list "}"</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0049" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> operator = "+" / "." / "/" / ";" / "?" / op-reserve</td><td> </td><td class="rblock"> operator = "+" / <span class="insert">"#" /</span> "." / "/" / ";" / "?" / <span class="insert">"&"</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> op-reserve = "," / "!" / "@"</td><td> </td><td class="rblock"><span class="insert"> /</span> op-reserve</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> op-reserve = <span class="insert">"=" /</span> "," / "!" / "@" <span class="insert">/ "|"</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> ; reserved for local use: "$" / "(" / ")"</td><td> </td><td class="right"> ; reserved for local use: "$" / "(" / ")"</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The operator characters have been chosen to reflect each of their</td><td> </td><td class="right"> The operator characters have been chosen to reflect each of their</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> roles as reserved characters in the URI generic syntax. The</td><td> </td><td class="right"> roles as reserved characters in the URI generic syntax. The</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0050" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> operators defined <span class="delete">by</span> this specification include: <span class="delete">plus ("+") for</span></td><td> </td><td class="rblock"> operators defined <span class="insert">in Section 3 of</span> this specification include:</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> substituting values that may contain reserved characters; dot (".")</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> for substituting values as a sequence of name labels prefixed by ".";</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> slash ("/") for substituting values as a sequence of path segments</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> separated by "/"; semicolon (";") for substituting key=value pairs as</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> path parameters prefixed by ";"; and, question-mark ("?") for</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> substituting a query component beginning with "?" and consisting of</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> key=value pairs separated by "&". These operators will be described</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> in detail in Section 3.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0051" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> The operator characters comma (","), exclamation ("!"), <span class="delete">and</span> at-sign</td><td> </td><td class="rblock"> <span class="insert">+ Reserved character strings;</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">("@")</span> are reserved for future extensions. <span class="delete">A processor that</span></td><td> </td><td class="rblock"><span class="insert"></span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> unexpectedly encounters such an extension operator SHOULD pass the</span></td><td> </td><td class="rblock"><span class="insert"> # Fragment identifiers prefixed by "#";</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> expression through unexpanded and MAY also indicate a warning to the</span></td><td> </td><td class="rblock"><span class="insert"></span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> invoking application.</span></td><td> </td><td class="rblock"><span class="insert"> . Name labels or extensions prefixed by ".";</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"></span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> / Path segments prefixed by "/";</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"></span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> ; Path parameter key or key=value pairs prefixed by ";";</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"></span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> ? Query component beginning with "?" and consisting of</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> key=value pairs separated by "&"; and,</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"></span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> & Continuation of query-style &key=value pairs within</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> a literal query component.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> </td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> The operator characters <span class="insert">equals ("="),</span> comma (","), exclamation ("!"),</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> at-sign <span class="insert">("@"), and pipe ("|")</span> are reserved for future extensions.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The expression syntax specifically excludes use of the dollar ("$")</td><td> </td><td class="right"> The expression syntax specifically excludes use of the dollar ("$")</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> and parentheses ["(" and ")"] characters so that they remain</td><td> </td><td class="right"> and parentheses ["(" and ")"] characters so that they remain</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> available for local language extensions outside the scope of this</td><td> </td><td class="right"> available for local language extensions outside the scope of this</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> specification.</td><td> </td><td class="right"> specification.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">2.3. Variables</td><td> </td><td class="right">2.3. Variables</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> After the operator (if any), each expression contains a list of one</td><td> </td><td class="right"> After the operator (if any), each expression contains a list of one</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> or more comma-separated variable specifiers (varspec). The variable</td><td> </td><td class="right"> or more comma-separated variable specifiers (varspec). The variable</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> names serve multiple purposes: documentation for what kinds of values</td><td> </td><td class="right"> names serve multiple purposes: documentation for what kinds of values</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> are expected, identifiers for associating values within a template</td><td> </td><td class="right"> are expected, identifiers for associating values within a template</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0052" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> processor, and the string to use for <span class="delete">each key on key=value</span></td><td> </td><td class="rblock"> processor, and the <span class="insert">literal</span> string to use for <span class="insert">the name in name=value</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> expansions.</span></td><td> </td><td class="rblock"><span class="insert"> expansions (aside from when exploding an associative array).</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> variable-list = varspec *( "," varspec )</td><td> </td><td class="right"> variable-list = varspec *( "," varspec )</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0053" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> varspec = varname [ modifier ]<span class="delete"> [ "|" default ]</span></td><td> </td><td class="rblock"> varspec = varname [ modifier ]</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> varname = varchar *( varchar / "." )</td><td> </td><td class="right"> varname = varchar *( varchar / "." )</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0054" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> varchar = ALPHA / DIGIT / "_" / <span class="delete">ucschar / iprivate</span></td><td> </td><td class="rblock"> varchar = ALPHA / DIGIT / "_" / pct-encoded</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> /</span> pct-encoded</td><td> </td><td class="rblock"> </td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"> <span class="insert">A varname MAY contain one or more pct-encoded triplets. These</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> triplets are considered an essential part of the variable name and</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> are not decoded during processing. A varname containing pct-encoded</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> characters is not the same variable as a varname with those same</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> characters decoded. Applications that provide URI Templates are</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> expected to be consistent in their use of pct-encoding within</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> variable names.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> An expression MAY reference variables that are unknown to the</td><td> </td><td class="right"> An expression MAY reference variables that are unknown to the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> template processor or whose value is set to a special "undefined"</td><td> </td><td class="right"> template processor or whose value is set to a special "undefined"</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> value, such as undef or null. Such undefined variables are given</td><td> </td><td class="right"> value, such as undef or null. Such undefined variables are given</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> special treatment by the expansion process.</td><td> </td><td class="right"> special treatment by the expansion process.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> A variable value that is a string of length zero is not considered</td><td> </td><td class="right"> A variable value that is a string of length zero is not considered</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> undefined; it has the defined value of an empty string.</td><td> </td><td class="right"> undefined; it has the defined value of an empty string.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0055" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> A variable may have a composite <span class="delete">or structured value, such as</span> a list</td><td> </td><td class="rblock"> A variable may have a composite <span class="insert">value in the form of</span> a list of <span class="insert">values</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> of <span class="delete">values,</span> an associative array of <span class="delete">(key,</span> value) <span class="delete">pairs, or a structure</span></td><td> </td><td class="rblock"><span class="insert"> or</span> an associative array of <span class="insert">(name,</span> value) <span class="insert">pairs.</span> Such value types are</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> of components defined by some separate schema.</span> Such value types are</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> not directly indicated by the template syntax, but do have an impact</td><td> </td><td class="right"> not directly indicated by the template syntax, but do have an impact</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0056" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> on the expansion process. A composite <span class="delete">or structured</span> value with zero</td><td> </td><td class="rblock"> on the expansion process. A composite value with zero member values</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> member values is considered undefined.</td><td> </td><td class="rblock"> is considered undefined.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> </td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">If a variable appears more than once in an expression or within</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> multiple expressions of a URI Template, the value of that variable</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> MUST remain static throughout the expansion process (i.e., the</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> variable must have the same value for the purpose of calculating each</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> expansion).</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">2.4. Value Modifiers</td><td> </td><td class="right">2.4. Value Modifiers</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Each of the variables in a Level 4 template expression can have a</td><td> </td><td class="right"> Each of the variables in a Level 4 template expression can have a</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> modifier indicating either that its expansion is limited to a prefix</td><td> </td><td class="right"> modifier indicating either that its expansion is limited to a prefix</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0057" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> of the variable's value string or that its expansion is exploded <span class="delete">into</span></td><td> </td><td class="rblock"> of the variable's value string or that its expansion is exploded <span class="insert">as a</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> components based on an external type</span> or <span class="delete">schema associated with that</span></td><td> </td><td class="rblock"><span class="insert"> composite value in the form of a value list</span> or <span class="insert">an associative array</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> variable.</span></td><td> </td><td class="rblock"><span class="insert"> of (name, value) pairs.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> modifier = prefix / explode</td><td> </td><td class="right"> modifier = prefix / explode</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">2.4.1. Prefix Values</td><td> </td><td class="right">2.4.1. Prefix Values</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> A prefix modifier indicates that the variable expansion is limited to</td><td> </td><td class="right"> A prefix modifier indicates that the variable expansion is limited to</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> a prefix of the variable's value string. Prefix modifiers are often</td><td> </td><td class="right"> a prefix of the variable's value string. Prefix modifiers are often</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> used to partition an identifier space hierarchically, as is common in</td><td> </td><td class="right"> used to partition an identifier space hierarchically, as is common in</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> reference indices and hash-based storage. It also serves to limit</td><td> </td><td class="right"> reference indices and hash-based storage. It also serves to limit</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0058" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> the expanded value to a maximum number of characters.</td><td> </td><td class="rblock"> the expanded value to a maximum number of characters. <span class="insert">Prefix</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> modifiers are not applicable to variables that have composite values.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0059" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> prefix = ":" <span class="delete">offset</span></td><td> </td><td class="rblock"> prefix = ":" <span class="insert">max-length</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> max-length = %x31-39 *DIGIT ; positive integer</td><td> </td><td class="right"> max-length = %x31-39 *DIGIT ; positive integer</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The max-length is a positive integer that refers to a maximum number</td><td> </td><td class="right"> The max-length is a positive integer that refers to a maximum number</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> of characters from the beginning of the variable's value as a Unicode</td><td> </td><td class="right"> of characters from the beginning of the variable's value as a Unicode</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> string. Note that this numbering is in characters, not octets, in</td><td> </td><td class="right"> string. Note that this numbering is in characters, not octets, in</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> order to avoid splitting between the octets of a multi-octet UTF-8</td><td> </td><td class="right"> order to avoid splitting between the octets of a multi-octet UTF-8</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> encoded character or within a pct-encoded triplet. If the max-length</td><td> </td><td class="right"> encoded character or within a pct-encoded triplet. If the max-length</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> is greater than the length of the variable's value, then the entire</td><td> </td><td class="right"> is greater than the length of the variable's value, then the entire</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> value string is used.</td><td> </td><td class="right"> value string is used.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l10" /><small>skipping to change at</small><em> page 17, line 5</em></th><th> </th><th><a name="part-r10" /><small>skipping to change at</small><em> page 17, line 20</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> semi := ";"</td><td> </td><td class="right"> semi := ";"</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Example Template Expansion</td><td> </td><td class="right"> Example Template Expansion</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> {var} value</td><td> </td><td class="right"> {var} value</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> {var:20} value</td><td> </td><td class="right"> {var:20} value</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> {var:3} val</td><td> </td><td class="right"> {var:3} val</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> {semi} %3B</td><td> </td><td class="right"> {semi} %3B</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> {semi:2} %3B</td><td> </td><td class="right"> {semi:2} %3B</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0060" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock">2.4.2. Compo<span class="delete">nent</span> Values</td><td> </td><td class="rblock">2.4.2. Compo<span class="insert">site</span> Values</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> An explode modifier ("*") indicates that the variable represents a</td><td> </td><td class="right"> An explode modifier ("*") indicates that the variable represents a</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> composite value that may be substituted in full or partial forms,</td><td> </td><td class="right"> composite value that may be substituted in full or partial forms,</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0061" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> depending on the variable's type <span class="delete">or schema.</span> Since URI Templates do</td><td> </td><td class="rblock"> depending on the variable's type <span class="insert">and value set.</span> Since URI Templates</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> not contain an indication of type or schema, this is assumed to be</td><td> </td><td class="rblock"> do not contain an indication of type or schema, this is assumed to be</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> determined by context. An example context is a mark-up element or</td><td> </td><td class="right"> determined by context. An example context is a mark-up element or</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> header field that contains one attribute that is a template and one</td><td> </td><td class="right"> header field that contains one attribute that is a template and one</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> or more other attributes that define the schema applicable to</td><td> </td><td class="right"> or more other attributes that define the schema applicable to</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> variables found in the template. Likewise, a typed programming</td><td> </td><td class="right"> variables found in the template. Likewise, a typed programming</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> language might differentiate variables as strings, lists, associative</td><td> </td><td class="right"> language might differentiate variables as strings, lists, associative</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> arrays, or structures.</td><td> </td><td class="right"> arrays, or structures.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> explode = "*"</td><td> </td><td class="right"> explode = "*"</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Explode modifiers improve brevity in the URI Template syntax. For</td><td> </td><td class="right"> Explode modifiers improve brevity in the URI Template syntax. For</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno"></td></tr>
<tr bgcolor="gray" ><td></td><th><a name="part-l11" /><small>skipping to change at</small><em> page 17, line 37</em></th><th> </th><th><a name="part-r11" /><small>skipping to change at</small><em> page 17, line 52</em></th><td></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> /mapper{?address*}</td><td> </td><td class="right"> /mapper{?address*}</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> along with some context that defines what the variable named</td><td> </td><td class="right"> along with some context that defines what the variable named</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> "address" can include, such as by reference to some other standard</td><td> </td><td class="right"> "address" can include, such as by reference to some other standard</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> for addressing (e.g., UPU S42 or AS/NZS 4819:2003). A recipient</td><td> </td><td class="right"> for addressing (e.g., UPU S42 or AS/NZS 4819:2003). A recipient</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> aware of the schema can then provide appropriate expansions, such as:</td><td> </td><td class="right"> aware of the schema can then provide appropriate expansions, such as:</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> /mapper?city=Newport%20Beach&state=CA</td><td> </td><td class="right"> /mapper?city=Newport%20Beach&state=CA</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0062" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">If an explode modifier is present, the</span> expansion process for <span class="delete">that</span></td><td> </td><td class="rblock"> <span class="insert">The</span> expansion process for <span class="insert">exploded variables</span> is dependent on both the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> variable, as defined in Section 3,</span> is dependent on both the operator</td><td> </td><td class="rblock"> operator being used and <span class="insert">whether</span> the <span class="insert">composite</span> value <span class="insert">is</span> to be <span class="insert">treated</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> being used and the <span class="delete">type or schema of the value being substituted.</span></td><td> </td><td class="rblock"><span class="insert"> as</span> a <span class="insert">list of values or as an associative array of (name, value)</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"><span class="insert"> pairs. Structures are processed as if they are an associative array</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete">2.5. Value Defaults</span></td><td> </td><td class="rblock"><span class="insert"> with names corresponding</span> to the <span class="insert">fields</span> in the <span class="insert">structure definition</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"><span class="insert"> and "." separators used to indicate</span> name <span class="insert">hierarchy in substructures.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> Each of the variables in Level 2 (and above) templates may also be</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> supplied with a default</span> value to be <span class="delete">used when</span> a <span class="delete">template processor</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> determines that variable to be undefined. The default value is</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> limited</span> to <span class="delete">unreserved characters, the equal sign ("="), and pct-</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> encoded triplets, since the default is provided in the exact form</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> that it would appear in the expanded URI reference. The default is</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> not affected by any variable modifiers, since we assume that</span> the</td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> <span class="delete">default string provided</span> in the <span class="delete">expression already reflects the</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> desired value.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> default = *( unreserved / "=" / pct-encoded )</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> The following examples illustrate how default values work with</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> different variable types.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> Given the variable assignments:</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> var := "value"</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> name <span class="delete">:= [ "Fred", "Wilma", "Pebbles" ]</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> favs := [("color","red"), ("volume","high")]</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> empty_keys := []</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> empty := ""</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> undef := null</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> Example Template Expansion</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> {var|default} value</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> {undef|default} default</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> {undef:3|default} default</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{empty}y xy</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{empty|_}y xy</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{undef}y xy</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{undef|_}y x_y</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{.name|none} x.Fred,Wilma,Pebbles</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{.name*|none} x.Fred.Wilma.Pebbles</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{.empty} x.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{.empty|none} x.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{.undef} x</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{.undef|none} x.none</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/name|none} x/Fred,Wilma,Pebbles</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/name*|none} x/Fred/Wilma/Pebbles</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/undef} x</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/undef|none} x/none</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/empty} x/</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/empty|none} x/</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/empty_keys} x</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/empty_keys|none} x/none</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/empty_keys*} x</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{/empty_keys*|none} x/none</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{;name|none} x;name=Fred,Wilma,Pebbles</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{;favs|none} x;favs=color,red,volume,high</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{;favs*|none} x;color=red;volume=high</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{;empty} x;empty</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{;empty|none} x;empty</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{;undef} x</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{;undef|none} x;none</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{;undef|foo=y} x;foo=y</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?var|none} x?var=value</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?favs|none} x?favs=color,red,volume,high</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?favs*|none} x?color=red&volume=high</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?empty} x?empty=</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?empty|foo=none} x?empty=</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?undef} x</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?undef|foo=none} x?foo=none</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?empty_keys} x</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?empty_keys|none} x?none</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?empty_keys|y=z} x?y=z</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> x{?empty_keys*|y=z} x?y=z</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">3. Expansion</td><td> </td><td class="right">3. Expansion</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The process of URI Template expansion is to scan the template string</td><td> </td><td class="right"> The process of URI Template expansion is to scan the template string</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0063" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> from beginning to end, copying literal characters <span class="delete">as-is</span> and replacing</td><td> </td><td class="rblock"> from beginning to end, copying literal characters and replacing each</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> each expression with the result of applying the expression's operator</td><td> </td><td class="rblock"> expression with the result of applying the expression's operator to</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> to the value of each variable named in the expression.</td><td> </td><td class="rblock"> the value of each variable named in the expression. Each <span class="insert">variable's</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> </td><td> </td><td class="rblock"> value MUST be formed prior to template expansion.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> Each <span class="delete">variable</span> value MUST be formed <span class="delete">as a sequence of NFKC Unicode</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> codepoints</span> prior to template expansion. <span class="delete">A value is assumed to be raw</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> data that might need to be encoded by the template processor during</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> expansion, depending on the expression type.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> If a template processor encounters an error outside of an expression,</td><td> </td><td class="right"> If a template processor encounters an error outside of an expression,</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> such as a character sequence that does not match the <URI-Template></td><td> </td><td class="right"> such as a character sequence that does not match the <URI-Template></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> grammar, then processing of the template SHOULD cease, the URI-</td><td> </td><td class="right"> grammar, then processing of the template SHOULD cease, the URI-</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> reference result SHOULD be undefined, and the location and type of</td><td> </td><td class="right"> reference result SHOULD be undefined, and the location and type of</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> error SHOULD be indicated to the invoking application. If an error</td><td> </td><td class="right"> error SHOULD be indicated to the invoking application. If an error</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> is encountered inside an expression, such as an operator or value</td><td> </td><td class="right"> is encountered inside an expression, such as an operator or value</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> modifier that it does not recognize or cannot support, then the</td><td> </td><td class="right"> modifier that it does not recognize or cannot support, then the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expression SHOULD be copied to the result unexpanded, processing of</td><td> </td><td class="right"> expression SHOULD be copied to the result unexpanded, processing of</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> the remainder of the template SHOULD continue, and the location and</td><td> </td><td class="right"> the remainder of the template SHOULD continue, and the location and</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0064" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> type of error SHOULD be indicated to the invoking application.</td><td> </td><td class="rblock"> type of error SHOULD be indicated to the invoking application. <span class="insert">In</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> this latter case, the result returned will not be a valid URI</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> reference; it will be an incompletely expanded template string that</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"></td><td> </td><td class="rblock"><span class="insert"> is only intended for diagnostic use.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">3.1. Literal Expansion</td><td> </td><td class="right">3.1. Literal Expansion</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> If the literal character is allowed anywhere in the URI syntax</td><td> </td><td class="right"> If the literal character is allowed anywhere in the URI syntax</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0065" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> (unreserved / <span class="delete">reserved),</span> then it is copied directly to the result</td><td> </td><td class="rblock"> (unreserved / <span class="insert">reserved / pct-encoded ),</span> then it is copied directly to</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> string. Otherwise, the pct-encoded equivalent of the literal</td><td> </td><td class="rblock"> the result string. Otherwise, the pct-encoded equivalent of the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> character is copied to the result string by encoding the character in</td><td> </td><td class="rblock"> literal character is copied to the result string by encoding the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> UTF-8 (a sequence of octets) and then encoding each octet as a <span class="delete">pct-</span></td><td> </td><td class="rblock"> character in UTF-8 (a sequence of octets) and then encoding each</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> encoded</span> triplet.</td><td> </td><td class="rblock"> octet as a <span class="insert">pct-encoded</span> triplet.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left">3.2. Expression Expansion</td><td> </td><td class="right">3.2. Expression Expansion</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Each expression is indicated by an opening brace ("{") character and</td><td> </td><td class="right"> Each expression is indicated by an opening brace ("{") character and</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> continues until the next closing brace ("}"). The expression is</td><td> </td><td class="right"> continues until the next closing brace ("}"). The expression is</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expanded by determining the expression type and then following that</td><td> </td><td class="right"> expanded by determining the expression type and then following that</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> type's expansion process for each comma-separated varspec in the</td><td> </td><td class="right"> type's expansion process for each comma-separated varspec in the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> expression. Level 1 templates are limited to the default operator</td><td> </td><td class="right"> expression. Level 1 templates are limited to the default operator</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> (simple string value expansion) and a single variable per expression.</td><td> </td><td class="right"> (simple string value expansion) and a single variable per expression.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> Level 2 templates are limited to a single varspec per expression.</td><td> </td><td class="right"> Level 2 templates are limited to a single varspec per expression.</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"></td><td> </td><td class="right"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> The expression type is determined by looking at the first character</td><td> </td><td class="right"> The expression type is determined by looking at the first character</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> after the opening brace. If the character is an operator, then</td><td> </td><td class="right"> after the opening brace. If the character is an operator, then</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> remember the expression type associated with that operator for later</td><td> </td><td class="right"> remember the expression type associated with that operator for later</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0066" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> expansion decisions and skip to the next character for the var<span class="delete">spec</span></td><td> </td><td class="rblock"> expansion decisions and skip to the next character for the var<span class="insert">iable-</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="left"> list. If the first character is not an operator, then the expression</td><td> </td><td class="right"> list. If the first character is not an operator, then the expression</td><td class="lineno" valign="top"></td></tr>
<tr><td><a name="diff0067" /></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> type is simple expansion and the first character is the beginning of</td><td> </td><td class="rblock"> type is simple <span class="insert">string</span> expansion and the first character is the</td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"> the <span class="delete">varspec list.</span></td><td> </td><td class="rblock"> beginning of the <span class="insert">variable-list.</span></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete">3.2.1. Undefined Variable Expansion</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"></span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> Regardless of the expression type, a variable that is undefined has</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> no value. A variable defined as a list or structure of component</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> values is considered undefined if the list contains zero members or</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>
<tr><td class="lineno" valign="top"></td><td class="lblock"><span class="delete"> all of the structure's components are undefined.</span></td><td> </td><td class="rblock"></td><td class="lineno" valign="top"></td></tr>