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

simplifying URI path production

From: Roy T. Fielding <fielding@gbiv.com>
Date: Mon, 9 Feb 2004 01:16:50 -0800
Cc: "Mark Thomson" <marktt@excite.com>, uri@w3.org
To: Rob Cameron <cameron@cs.sfu.ca>
Message-Id: <B15665EF-5AE0-11D8-92BD-000393753936@gbiv.com>

On Wednesday, June 11, 2003, at 12:31  PM, Rob Cameron wrote:
> To address both the problem reported by Mark and the
> problem above, I have found that there may be merit
> to simplifying the URI production to directly reflect the
> opening statement of section 3:
>
> "The generic URI syntax consists of a hierarchical sequence of
> components referred to as the scheme, authority, path, query, and
> fragment."
>
> URI  = scheme ":" ["//" authority] path [ "?" query ] [ "#" fragment ]

Done.  This was a great suggestion -- it vastly simplifies the grammar
and associated text.

> This rule reflects the five-component structure and the statement
> that a path always exists, even if it is empty.   It can be made
> to work with either of the two following definitions of path:
>
> path = abs-path / rel-path
> path = segment *( "/" segment )

I chose the latter and removed abs-path, net-path, and rel-path.

Cheers,

Roy T. Fielding                            <http://roy.gbiv.com/>
Chief Scientist, Day Software              <http://www.day.com/>
Received on Monday, 9 February 2004 04:16:10 UTC

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