I don't think there is any way to allow a value in an enumerated list to
contain "@" - at least not with a DTD.  You probably need to define the
value as something else, and then do a transformation every time you use the
value, i.e., instead of:

        email   ([EMAIL PROTECTED] | [EMAIL PROTECTED] )        #REQUIRED

do this:

        email   (name1_AT_abc.com | name2_AT_yahoo.com )        #REQUIRED

and then translate _AT_ to @ whenever you display or utilize a value.
Gruesome, I know.

Alternatively, use a CDATA attribute, and find some other mechanism of
validating the value and presenting the user with the list of choices.

David.
---
David Mc Nally     SGML Analyst/Programmer
Matthew Bender & Co., Inc.
(973)820-2585 fax:(973)820-2469


> -----Original Message-----
> From: S Uma [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 15, 2001 3:03 AM
> To: [EMAIL PROTECTED]
> Subject: Representing enumeration values in dtd
> 
> 
> Hello All,
> 
> The enumeration of values in a DTD must be a list of NMTOKENs 
> as per xml
> 1.0. The NMTOKEN syntax allows a specific set of characters but not
> all,  for example @ is not an allowed character in an NMTOKEN.
> 
> I have a requirement to hold an enumerated list of email 
> addresses in a
> parametric entity. How do I solve this? If I can't use enumeration
> because @ character is not allowed in an enumerated list, is there any
> other way of representing a list of values in a dtd?
> 
> or am I using dtds with a wrong perception??
> 
> Uma
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to