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

Re: Alternative URL template proposal

From: Joe Gregorio <joe@bitworking.org>
Date: Fri, 9 Nov 2007 22:13:07 -0500
Message-ID: <3f1451f50711091913u289a4199gb3d9ae4d68ef4446@mail.gmail.com>
To: "DeWitt Clinton" <dewitt@unto.net>
Cc: uri@w3.org

On Nov 9, 2007 9:26 PM, DeWitt Clinton <dewitt@unto.net> wrote:
>   http://example.com/{categories+/}
>   http://example.com/uri/atom/search

I believe the grammar is ambiguous. For example,
if I have the template:

   http://example.com/{name1,name2+}

And
   name1 := "fred"
   name2 := "barney"

Does that expand to:

   http://example.com/fred+barney

or

   http://example.com/fred&barney

There are also escaping issues. For example,
what if I want to emit ')' as part of a prefix?
I like the simplicity but I don't think we can
get away from using '|' as a separator w/o
increasing the complexity of the parser, as I
think the examples above show.

   -joe

-- 
Joe Gregorio        http://bitworking.org
Received on Saturday, 10 November 2007 03:13:16 GMT

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