W3C home > Mailing lists > Public > uri@w3.org > October 2006

Re: Feedback on draft-gregorio-uritemplate-00

From: James M Snell <jasnell@gmail.com>
Date: Thu, 05 Oct 2006 08:48:27 -0700
Message-ID: <4525294B.7040508@gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
CC: Joe Gregorio <joe@bitworking.org>, uri@w3.org

The underlying question is whether the the template processor is
responsible for performing the escaping or whether the application
providing the values is responsible.

The difference ends up being very important. In the current draft, a
replacement value can span multiple segments. i.e.,


could expand to:


If the template processor performs the escaping, then we either a) rule
out the ability for a replacement value to span multiple segments (e.g.
gen-delims would always end up encoded), b) define explicitly what
characters get encoded and which do not or c) define some sort of
escaping mechanism so the processor knows not to encode certain

If "none%20of%20the%20above" should expand to
"none%2520of%2520the%2520above", then the replacement value
"jasnell/2006/10?foo#bar" should instead expand to

- James

Julian Reschke wrote:
>>       a                                 none%20of%20the%20above
>>   Should the substitution be:
>>       http://example.org/{a}
>>       http://example.org/none%20of%20the%20above
>>   or
>>       http://example.org/none%2520of%2520the%2520above
> I think it would be the latter. Pick one, but then be consistent :-)
> [snip]
Received on Thursday, 5 October 2006 15:48:50 UTC

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