Lists Home |
Date Index |
> > I find it interesting that the default value can have the '['
> > <!ATTLIST myelement myattribute1 (value1|value2) "value[">
> As for the parser allowing a default value containing the "["
> - this is a bug.
Are you sure?
I read "Validity Constraint: Attribute Value Legal. The declared default
value must meet the lexical constraints of the declared attribute type".
Firstly, this is a VC not a WFC.
Secondly, it's not obvious that the list of enumerated values is a "lexical
constraint", though it would seem reasonable to read it that way.
But in any case, it seems to me that a non-validating parser should allow
<!ATTLIST myelement myattribute1 (value1|value2) "value[">
through, even though it's nonsense.