[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Question about attribute name



<quote who="Pierangelo Masarati">
> Gavin Henry wrote:
>
>> Hmmm, that's exactly what I found and quoted this morning.
>>
>> ABNF has:
>>
>>   DOT     = %x2E ; period (".")
>>
>> So that _should_ be legal?
>
> I read it this way:
>
> <rfc4512>
> 2.5.  Attribute Descriptions
>
>    An attribute description is composed of an attribute type (see
>    Section 2.5.1) and a set of zero or more attribute options (see
>    Section 2.5.2).
>
>    An attribute description is represented by the ABNF:
>
>       attributedescription = attributetype options
>       attributetype = oid
>       options = *( SEMI option )
>       option = 1*keychar
> </rfc4512>
>
> let's forget about options and focus on attributetype:
>
> <rfc4512>
>       oid = descr / numericoid
> </rfc4512>
>
> let's also forget about numericoid and focus on descr:
>
> <rfc4512>
>       descr = keystring
> </rfc4512>
>
> <rfc4512>
>       keystring = leadkeychar *keychar
>       leadkeychar = ALPHA
>       keychar = ALPHA / DIGIT / HYPHEN
>         ...
>       ALPHA   = %x41-5A / %x61-7A   ; "A"-"Z" / "a"-"z"
>       DIGIT   = %x30 / LDIGIT       ; "0"-"9"
>         ...
>       HYPHEN  = %x2D ; hyphen ("-")
> </rfc4512>
>
> That's it.  There's no room for other chars.
>


Ah, that's clear. I hadn't learned how to read the macros.

Thanks ando.

Gavin.