enum and xerces-parser problem
I have a problem with an Enumerated Attribute Type in a XML-file,
the DTD-file and the validating xerces parser.
A XML-file generator build in dependency of the inputs of the
user the mandatory Element color with the Attribute value.
...
<color value=""/>
...
or
...
<color value="RED"/>
...
or
...
<color value="GREEN"/>
...
All 3 versions are correctly. The possible Attribute values are
"RED", "GREEN" and "". I need expressly the version
<color value=""/> !!! I need always one version (mandatory
Element)!
Now I have a problem with the validating xerces-c_1_1_0-win32-
parser. How can I create my DTD-file without a fatal error
message and an abort of my parser?
The DTD-line <!ATTLIST color value (RED | GREEN ) "" accept
only the XML-line <color/>.
With the xml-line <color value=""/> the parser supplies a
fatal error message and an abort.
The DTD-line <!ATTLIST color value (RED | GREEN | "") is not
accepted by the parser.
How can I solve the problem?
For your help says Thomas from Berlin THANKS!

