W3C home > Mailing lists > Public > uri@w3.org > February 2010

Re: URI Template expanded examples

From: Roy T. Fielding <fielding@gbiv.com>
Date: Fri, 26 Feb 2010 17:39:05 -0800
Cc: URI <uri@w3.org>
Message-Id: <78022BF9-314C-4CB0-9481-8698CBBD3DC4@gbiv.com>
To: Joe Gregorio <joe@bitworking.org>
On Feb 26, 2010, at 6:59 AM, Joe Gregorio wrote:

> I like the list of examples, but believe it should be expanded to not only 
> cover the typical cases, but to also cover edge cases and things that may be
> tricky or non-obvious from the spec text. 
> 
>  .-----------------------------------------------------------------.
>  | Sec | Op  | Description                                         |
>  |     |     |    Expression      | Expansion                      |
>  |-----+-----+-----------------------------------------------------|
>  | 2.2 |     | Reserved operators                                  |
>  |     |     |                                                     |
>  |     |     |    {|var}            {|var}                         |
>  |     |     |    {!hello}          {!hello}                       |
>  |     |     |    {@var}            {@var}                         |
>  |     |     |    {$var}            {$var}                         |
>  |     |     |    {(var}            {(var}                         |
>  |     |     |    {)var}            {)var}                         |
> 
> 
> emptylist  := [ ];
> emptykeys  := [ ];
> 
>  |-----+-----+-----------------------------------------------------|
>  | 3.6 |     |                                                     |
>  |     |     |    X{?emptylist}      X                             |
>  |     |     |    X{?emptykeys}      X                             |
>  | 3.7 |     |                                                     |
>  |     |     |    X{/emptylist}      X                             |
>  |     |     |    X{/emptykeys}      X                             |
>  | 3.8 |     |                                                     |
>  |     |     |    X{.emptylist}      X                             |
>  |     |     |    X{.emptykeys}      X                             |
> 
>    Thanks,
>    -joe

Okay, but I put them in the examples under Defaults for now.

....Roy
Received on Saturday, 27 February 2010 01:39:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:14 UTC