W3C home > Mailing lists > Public > uri@w3.org > November 2007

Re: Updated URI Template proposal

From: Joe Gregorio <joe@bitworking.org>
Date: Thu, 8 Nov 2007 14:52:14 -0500
Message-ID: <3f1451f50711081152s6c5d599wea48c0b69fe9ee1b@mail.gmail.com>
To: "James M Snell" <jasnell@gmail.com>
Cc: URI <uri@w3.org>

On 11/8/07, James M Snell <jasnell@gmail.com> wrote:
> wouldn't that be:
>
>      {-join|&|num}           // 0 or 1
>      {-join|&|num+}          // 1
>      {-listjoin|&num=|nums}  // 0 or more
>      {-listjoin|&num=|nums+} // 1 or more

Yes,

> Several more questions:
>
> * I assume that {-join|&|start,count} resolves to "start=foo&count=bar"
> and not "&start=foo&count=bar" (note the leading & in the latter).

Yes.

> * I also assume that the ordering of the var's in the -join is
> insignificant?  e.g. given {-join|&|start,count} the results
> "start=foo&count=bar" and "count=bar&start=foo" are equivalent and
> acceptable.

Yes.

> * Given {-opt|?|tags,start,count}, the ? is inserted if at least one of
> the members of the set is defined.  That is, if tags is defined but
> start and count are not, the ? will still be inserted.

Yes.

   -joe

-- 
Joe Gregorio        http://bitworking.org
Received on Thursday, 8 November 2007 19:52:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:15:37 GMT