DTD / xmerl_scan:file help !!!!! {invalid_nmtoken,"*) #RE"

Helmut Enck-Radana <>
Wed Jul 13 10:25:22 CEST 2005


Hi,

in XML DTDs enumerated values have to be NMTOKENs, i.e. you can only use 
strings which could be used as names. You have to use a different schema 
language, if you need to to express the constraint you described. May be a 
better solution is not to use the asterisc, but a symbol which conforms to 
the NMTOKEN production instead.

-- Helmut

At 08:46 2005-07-13, you wrote:
>Reverting to my below question,
>
><!ATTLIST key
>       no CDATA #REQUIRED>
>
>is working well, but it allows all the rage of CDATA to appear with the 
>attribute "no".
>
>But I want something like below to strict the valid keys to some specific.
>
><!ATTLIST key
>       no (1|2|3|4|5|6|7|8|9|z|r|c|*) #REQUIRED>    ---Note the * (astric 
> in the end) --- and of course NOT WORKING.
>
>Hope you can understand.
>
>Are there any way to do this ...????
>
>Regards,
>
>Sanjaya Vitharana




More information about the erlang-questions mailing list