> -----Original Message-----
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
> Sent: October 6, 2002 12:00 PM
> Subject: Re: <character>
> Arved Sandstrom wrote:
> > Why is character="-" a parsing error? The XML Recommendation
> has at least
> > one example of an attribute value that contains a hyphen.
> This comes from assuming that every unqoted sequence of characters which
> is not a number, mesutrement or a color has to be interpreted as NCName,
> as the grammar suggests, and IIRC a NCName must not start with a hyphen.
> This means
>   hyphenation-char="-"
> can't parse as number, can't parse as string, can't parse as color, can't
> parse as NCName  -> parsing error.

Hi Joerg

Can you cite the specific productions that lead to this conclusion? I am not
saying that you are wrong but I can't find it.

I must be tired. ;-) I just looked at the XML 1.1 production for AttValue
which is

AttValue    ::=    '"' ([^<&"] | Reference)* '"'
   |  "'" ([^<&'] | Reference)* "'"

and I see a prohibition here on using a literal '<' or '&' in the attribute
value, anywhere. But I see nothing about '-'.

If the grammar of the recommendations leads to the conclusion that


is not OK, then this just simply offends my common sense.


To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to