Brett Tate wrote:

> > > > Sorry for not being clear and thanks for your time. I
> > want to know the
> > > > meaning of *token. Appendix defines what is token, which itself
> > > > containts multiple characters since it is 1*(.......).So, how does
> > > > *token make sense?
> > > >
> > > > If *token is correct, what would be the separator between two
> > > > consequetive tokens? If there is no separator, what is the
> > > > use of *token
> > > > because the definition of the token would suffice.
> > > >
> > >
> > > 1* of the token definition means there is
> > > at least one.
> > >
> > > The display-name definition *token basically
> > > just cancels the "at least one" part of the
> > > token definition.

> >
> > Isn't it so that *token is 0 or more tokens separated with
> > LWS. This would
> > make Foo Bar a legal display-name.
>
> The definition of the *rule does not indicate
> that the elements are separated by LWS.
>
> Foo Bar is not a legal display-name per definition.
> However most implementations allow it solely because
> the examples have incorrectly reflected its use
> since the original rfc.

You are right. If the examples are correct i.e. to make Foo Bar a legal
display-name, the definition of display-name should be *(SP token) |
quoted-string. Otherwise, *token doesn't make any sense to me since the
separator cannot be assumed as LWS there. In otherwords, *token and token
would mean same.

To refine it further, it should really be 1*(SP token)|quoted-string
because *(SP token) includes the possibility of being 0 also. Basically,
this display-name is an optional field and this syntax applies to it when
it is present in the header. So, the possibility of 0 in (*SP token) says
that nothing is there in display-name which is as good as not having it.

Any thoughts?

>
> "Foo Bar" is legal through the quoted string
> definition portion of display-name.  And the
> quotes should be removed prior to actually
> displaying the name.  I mention this mainly
> because I've noticed some implementations
> forgetting to do so.
>
> > Token is 1*(alphanum|"-"|"."|"!"|"%"|"*"|"_"|"+"|"`"|"'"|"~")
> > which does not
> > include LWS. So if display-name would be defined as 1*token,
> > Foo Bar would
> > be an illegal display-name.

_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to