Re: [Speechsc] Query in the general message header ABNF

"Pete Cordell" <pete@tech-know-ware.com> Thu, 23 November 2006 11:31 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1GnCnV-0007Zt-9a; Thu, 23 Nov 2006 06:31:17 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1GnCnT-0007YO-M7 for speechsc@ietf.org; Thu, 23 Nov 2006 06:31:15 -0500
Received: from smtp2.wanadoo.co.uk ([193.252.22.157] helo=smtp2.freeserve.com) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1GnCnO-0007vC-64 for speechsc@ietf.org; Thu, 23 Nov 2006 06:31:15 -0500
Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3111.me.freeserve.com (SMTP Server) with ESMTP id 9A8A6200008D; Thu, 23 Nov 2006 12:31:09 +0100 (CET)
Received: from Codalogic (user-5445210e.lns4-c11.dsl.pol.co.uk [84.69.33.14]) by mwinf3111.me.freeserve.com (SMTP Server) with SMTP id 5132C200008A; Thu, 23 Nov 2006 12:31:09 +0100 (CET)
X-ME-UUID: 20061123113109332.5132C200008A@mwinf3111.me.freeserve.com
Message-ID: <00a601c70ef2$de567130$1c00a8c0@Codalogic>
From: Pete Cordell <pete@tech-know-ware.com>
To: sreekanth <sreekanthm@huawei.com>
References: <C6A1C20DB743364EB446E923B2229FEF02C09BE9@xmb-sjc-229.amer.cisco.com> <002601c70e03$648cfa80$a504120a@china.huawei.com>
Subject: Re: [Speechsc] Query in the general message header ABNF
Date: Thu, 23 Nov 2006 11:31:03 -0000
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="iso-8859-1"; reply-type="original"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-Spam-Score: 1.9 (+)
X-Scan-Signature: 36c793b20164cfe75332aa66ddb21196
Cc: speechsc@ietf.org
X-BeenThere: speechsc@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Speech Services Control Working Group <speechsc.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/speechsc>, <mailto:speechsc-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:speechsc@ietf.org>
List-Help: <mailto:speechsc-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/speechsc>, <mailto:speechsc-request@ietf.org?subject=subscribe>
Errors-To: speechsc-bounces@ietf.org

Hi Sreekanth,

This is the general format of all headers, and the concept is consistent 
across many protocols including SMTP, HTTP and SIP.  This general rule 
allows you to readily find the beginning of headers without having to do 
detailed parsing of each header (e.g. just look for non-white space after CR 
LF).  It also allows you to skip over, possibly ignorable, headers that may 
not be defined yet.

BTW - this isn't just for list type headers.  It can be used for any header 
that benefits from being spread across multiple lines. e.g.:

MyHeader: foo
    bar
    do
    da
    =
    18


To the doc authors:
--------------------
I note that section 6.2 says: "The value MAY be preceded by any amount of 
LWS, though a single SP is preferred."  However, most of the examples don't 
include a space.  Maybe no space is preferred for MRCP?

Also, I can't find anywhere that says whether the EBNF grammar is explicit 
about where white space can be included or not.  Some rules suggest that it 
is and some rules imply that it is not (i.e. no mention of optional WS). 
Sorry if this has been raised before.

And, just in case it's not been raised before, should the EBNF for the 
method name and message-header be made extensible? e.g. something like:

method-name      =    generic-method
                 /    synthesizer-method
                 /    recorder-method
                 /    recognizer-method
                 /    verifier-method
                 /    token   ; <------

message-header   =    1*(generic-header / resource-header / 
extension-header)

extension-header = field-name ":" [ field-value ]

If appropriate, perhaps these issues can be discussed at the start of the 
EBNF section (15).


HTH,

Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
for XML to C++ data binding visit
http://www.tech-know-ware.com/lmx
(or http://www.xml2cpp.com)
=============================================

----- Original Message ----- 
From: "sreekanth" <sreekanthm@huawei.com>
To: "Saravanan Shanmugham (sarvi)" <sarvi@cisco.com>; "Dan Burnett" 
<dan_burnett2000@yahoo.com>
Cc: <speechsc@ietf.org>
Sent: Wednesday, November 22, 2006 6:56 AM
Subject: [Speechsc] Query in the general message header ABNF


> This is a quote from the section 6.2 of mrcpv2-draft-11
>
> message-header = field-name ":" [ field-value ]
>
> field-name = token
>
> field-value = *LWS field-content *( CRLF 1*LWS field-content)
>
> field-content = <the OCTETs making up the field-value
>
> and consisting of either *TEXT or combinations
>
> of token, separators, and quoted-string>
>
>
>
> As per the above rule if the header if of list type,  is it  mandatory 
> that the multiple header values MUST have atleast one LWS???
>
> In the header ABNF already seperator for the multiple values is defined.. 
> So Why do we need this LWS??
>
> Pls clarify on this.
>
> Sreekanth
>
>
>
>
>
>
>


--------------------------------------------------------------------------------


> _______________________________________________
> Speechsc mailing list
> Speechsc@ietf.org
> https://www1.ietf.org/mailman/listinfo/speechsc
> 



_______________________________________________
Speechsc mailing list
Speechsc@ietf.org
https://www1.ietf.org/mailman/listinfo/speechsc