You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Craig Noah <Cr...@ca.com> on 2000/09/06 22:01:57 UTC

Re: Attribute name

The error message is correct.  Attribute names must be valid Names (think of
variable names).  This means they must start with a letter, an underscore (_), or
a colon (:) and may be followed by any number of alphanumeric characters
(basically ASCII text).

ayyachamy.nagaiahsamy@convergys.com wrote:

> Is Attribute name in an ATTLIST of a DTD starting with number, a valid one?
>
> example:
>
> <!ELEMENT sample EMPTY>
> <! ATTLIST sample
>      2test CDATA #IMPLIED
>      4example CDATA #IMPLIED>
>
> 2test, 4example  a valid attribute name?
>
> When used, It gives me an error saying the name contains illegal chars.
>
> Any thoughts?
>
> -Nagy

--
Craig Noah                          INTERNET: Craig.Noah@ca.com
Programmer                                  Computer Associates
1404 Fort Crook Road South         Phone:  (402) 291-8300 x 284
Bellevue,  NE   68005-2969         FAX:    (402) 291-4362