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

no parameter in first segment of relative URI?

From: Martin Duerst <duerst@w3.org>
Date: Fri, 11 Oct 2002 15:29:15 +0900
Message-Id: <4.2.0.58.J.20021011152154.0468a160@localhost>
To: uri@w3.org

Dear URI experts,

Looking through the URI syntax in detail, I became aware
of the following 'anomaly': parameters are not allowed
in the first segment of a relative URI (if it doesn't start
with a slash). The relevant rules are:

  relativeURI   = ( net_path | abs_path | rel_path ) [ "?" query ]

  net_path      = "//" authority [ abs_path ]
  abs_path      = "/"  path_segments
  rel_path      = rel_segment [ abs_path ]

  rel_segment   = 1*( unreserved | escaped |
                      ";" | "@" | "&" | "=" | "+" | "$" | "," )

  path_segments = segment *( "/" segment )
  segment       = *pchar *( ";" param )
  param         = *pchar
  pchar         = unreserved | escaped |
                  ":" | "@" | "&" | "=" | "+" | "$" | ","

So in "abc;def/ghi;jkl", 'jkl' is a parameter, but 'def' isn't.
On the other hand, in "/abc;def/ghi;jkl", both 'def' and 'jkl'
are parameters.

Is this an error in the syntax, or can somebody explain this?


Regards,     Martin.
Received on Friday, 11 October 2002 02:30:23 GMT

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