[Prev][Next][Index][Thread]

Re: Production 21 (and others)



>  [21] Comment :=
>  "<!--*"([-*]|("-"("*""-"?)*[-*])|(("*""-"?)+[-*]))*("*"|"-*")+"-->"

I haven't tried this...

> 2 an expression for the XML rule of the future, forbidding *-- but
> not -- within comments:
> 
>  [21] Comment-of-the-future :=
>  "<!--*"([*]|(("*""-"?)+[-*]))*("*"|"-*")+"-->"

This didn't match <!--*-*--> when I tried it.

Folks, please stop this.
It won't help implementors.
It won't help users.

comment ::= <!--* comment_text *-->
comment_text ::= data_character*
comment_text may not include --

Lee