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

Re: Updated URI Template proposal

From: John Cowan <cowan@ccil.org>
Date: Wed, 7 Nov 2007 15:05:15 -0500
To: James M Snell <jasnell@gmail.com>
Cc: Joe Gregorio <joe@bitworking.org>, URI <uri@w3.org>
Message-ID: <20071107200515.GA2494@mercury.ccil.org>

James M Snell scripsit:

> The spec will likely need to indicate how new op codes are defined.  How
> should unknown codes be handled?  Are applications free to create their
> own op codes?  Is an iana registry needed? etc.

Well, of course no spec can control the behavior of implementations that
don't claim to conform to it.  I think an IANA registry would be the
proper compromise between "Do as thou wilt" and "Never change anything".

> I would think that unicode codepoints would be what folks would
> typically expect.  

+1

> Next, regarding the varname definition,
> 
>   token varname    '[a-zA-Z0-9][a-zA-Z0-9\_\.\-]*' ;
> 
> I'm curious as to why these additional characters should not be allowed
> in a varname?
> 
>   !@#$%^&()\/:;'[]"
> 
> For instance, allowing : and / would allow us to do...
> 
>   {-prefix|foo/|http://example.org/text/username}

I don't understand what application scenario would call for
the use of universal names in templates.  It seems to me
that local names are sufficient (and more readable; it's
much easier to see where the varname stops if it looks
like an identifier).

> Also, there had been mention of an escape/quote character for varnames,

I have the same question:  for what?

-- 
John Cowan                                cowan@ccil.org
I amar prestar aen, han mathon ne nen,    http://www.ccil.org/~cowan
han mathon ne chae, a han noston ne 'wilith.  --Galadriel, LOTR:FOTR
Received on Wednesday, 7 November 2007 20:05:34 GMT

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