문제

I want to create a DTD file but I unfortunately I am getting an error, please advice. Here is my code

<!ELEMENT SUB_CONDITION EMPTY >
<!ATTLIST SUB_CONDITION relation (=|<>|>|<|>=|<=|=Mask|<>Mask) #REQUIRED>

the error is saying: "The name token is required in the enumerated type list for the "relation" attribute declaration."

도움이 되었습니까?

해결책

The <, =, and > characters (#x003C, #x003D, #x003E) are not allowed in attribute values declared as enumerated.

In an attribute declared to have enumerated values, the values must match Nmtoken (one or more NameChars). That excludes several characters, including <, =, and >, which are not part of the definition of NameChar.

< is especially troublesome (it is the start-of-tag delimiter in XML markup) and is not allowed in any attributes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top