Fwd: question about implied LWS
Jim Gettys (jg@pa.dec.com)
Tue, 3 Nov 1998 11:21:40 -0800
This is a multi-part message in MIME format, created by Pachyderm.
The parts are separated by "--1" lines.
The first part is a covering note, the others are attachments.
--1
Content-Type: text/plain
This should have gone to the mailing list, but didn't.
Seems like a simpler solution.
- Jim
> From: Paul Leach <paulle@microsoft.com>
> Date: Mon, 5 Oct 1998 11:28:03 -0700
> To: "Roy Fielding (E-mail)" <fielding@avron.ics.uci.edu>
> Cc: "Jim Gettys (E-mail)" <jg@w3.org>
> Subject: FW: FW: question about implied LWS
> -----
> Despite the fact that I didn't ask the question I intended to ask (whicy was
> whether LWS is allowed between quoted-strings and separators) you answered
> the question I intended to ask.
>
> Looking at my suggestion again, I think a simpler fix is to change the
> underlined instance of "tokens" in the paragraph below to "words".
>
> implied *LWS
> The grammar described by this specification is word-based. Except where
> noted otherwise, linear white space (LWS) can be included between any two
> adjacent words (token or quoted-string), and between adjacent tokens and
> ======
> separators, without changing the interpretation of a field. At least one
> delimiter (LWS and/or separators) MUST exist between any two tokens (for the
> definition of "token" below), since they would otherwise be interpreted as a
> single token.
>
> Jim, can you mark this as an editorial issue?
>
> -----Original Message-----
> From: Roy T. Fielding [mailto:fielding@kiwi.ics.uci.edu]
> Sent: Saturday, October 03, 1998 11:11 PM
> To: Paul Leach
> Subject: Re: FW: question about implied LWS
>
> >Section 2.2 on "basic rules" says:
> >
> >implied *LWS
> >The grammar described by this specification is word-based. Except where
> >noted otherwise, linear white space (LWS) can be included between any two
> >adjacent words (token or quoted-string), and between adjacent tokens and
> >separators, without changing the interpretation of a field. At least one
> >delimiter (LWS and/or separators) MUST exist between any two tokens (for
> the
> >definition of "token" below), since they would otherwise be interpreted as
> a
> >single token.
> >
> >This seems to say that LWS is not allowed between adjacent quoted-strings.
>
> Adjacent quoted-strings are adjacent words, so it doesn't say that.
>
> >Was that intended? I assume not, but I could be wrong.
> >
> >If not, I think it would be clearer to add the following production to the
> >basic rules
> > word = token | quoted-string | separator
> >and then change the section on implied LWS to say
>
> That adds a rule saying you can put LWS between quoted strings and
> separators.
> AFAIK that is okay too, since everywhere that actually restricts LWS
> should be specific about restricting it.
>
> >implied *LWS
> >The grammar described by this specification is word-based. Except where
> >noted otherwise, linear white space (LWS) can be included between any two
> >adjacent words (see below for the definition of "word") without changing
> the
> >interpretation of a field. At least one delimiter (LWS and/or separators)
> >MUST exist between any two tokens (for the definition of "token" below),
> >since they would otherwise be interpreted as a single token.
>
> Fine with me.
>
> ....Roy
--1
Content-Type: message/rfc822
Content-Disposition: inline
Received: by src-mail.pa.dec.com; id AA04975; Mon, 5 Oct 1998 11:32:28 -0700
Received: from mail2.digital.com by pobox1.pa.dec.com (5.65v3.2/1.1.10.5/07Nov97-1157AM)
id AA15749; Mon, 5 Oct 1998 11:31:37 -0700
Received: from www10.w3.org (www10.w3.org [18.23.0.20])
by mail2.digital.com (8.8.8/8.8.8/WV1.0g) with ESMTP id LAA01335
for <jg@pa.dec.com>; Mon, 5 Oct 1998 11:31:32 -0700 (PDT)
Received: from mail5.microsoft.com (mail5.microsoft.com [131.107.3.121]) by www10.w3.org (8.8.5/8.7.3) with ESMTP id OAA18935 for <jg@w3.org>; Mon, 5 Oct 1998 14:28:09 -0400 (EDT)
Received: by INET-IMC-05 with Internet Mail Service (5.5.2232.9)
id <41D6LPD8>; Mon, 5 Oct 1998 11:28:09 -0700
Message-Id: <CB6657D3A5E0D111A97700805FFE65875D779C@RED-MSG-51>
From: Paul Leach <paulle@microsoft.com>
To: "Roy Fielding (E-mail)" <fielding@avron.ics.uci.edu>
Cc: "Jim Gettys (E-mail)" <jg@w3.org>
Subject: FW: FW: question about implied LWS
Date: Mon, 5 Oct 1998 11:28:03 -0700
X-Mailer: Internet Mail Service (5.5.2232.9)
Status:
MIME-Version: 1.0
Despite the fact that I didn't ask the question I intended to ask (whicy was
whether LWS is allowed between quoted-strings and separators) you answered
the question I intended to ask.
Looking at my suggestion again, I think a simpler fix is to change the
underlined instance of "tokens" in the paragraph below to "words".
implied *LWS
The grammar described by this specification is word-based. Except where
noted otherwise, linear white space (LWS) can be included between any two
adjacent words (token or quoted-string), and between adjacent tokens and
======
separators, without changing the interpretation of a field. At least one
delimiter (LWS and/or separators) MUST exist between any two tokens (for the
definition of "token" below), since they would otherwise be interpreted as a
single token.
Jim, can you mark this as an editorial issue?
-----Original Message-----
From: Roy T. Fielding [mailto:fielding@kiwi.ics.uci.edu]
Sent: Saturday, October 03, 1998 11:11 PM
To: Paul Leach
Subject: Re: FW: question about implied LWS
>Section 2.2 on "basic rules" says:
>
>implied *LWS
>The grammar described by this specification is word-based. Except where
>noted otherwise, linear white space (LWS) can be included between any two
>adjacent words (token or quoted-string), and between adjacent tokens and
>separators, without changing the interpretation of a field. At least one
>delimiter (LWS and/or separators) MUST exist between any two tokens (for
the
>definition of "token" below), since they would otherwise be interpreted as
a
>single token.
>
>This seems to say that LWS is not allowed between adjacent quoted-strings.
Adjacent quoted-strings are adjacent words, so it doesn't say that.
>Was that intended? I assume not, but I could be wrong.
>
>If not, I think it would be clearer to add the following production to the
>basic rules
> word = token | quoted-string | separator
>and then change the section on implied LWS to say
That adds a rule saying you can put LWS between quoted strings and
separators.
AFAIK that is okay too, since everywhere that actually restricts LWS
should be specific about restricting it.
>implied *LWS
>The grammar described by this specification is word-based. Except where
>noted otherwise, linear white space (LWS) can be included between any two
>adjacent words (see below for the definition of "word") without changing
the
>interpretation of a field. At least one delimiter (LWS and/or separators)
>MUST exist between any two tokens (for the definition of "token" below),
>since they would otherwise be interpreted as a single token.
Fine with me.
....Roy
--1--