Next in thread → Next in month →

RE: [xml-dev] need a [ in an ATTLIST

From
Tim Bray <>
To
Date
2002-04-02T21:16:24Z
ID
<>
Thread
RE: [xml-dev] need a [ in an ATTLIST
At 10:00 PM 02/04/02 +0100, Michael Kay wrote:
>So is it, or is it not, a validity error to write:
>
><!ATTLIST myelement myattribute1 (value1|value2) "value3">

When I wrote a validating parser I specifically checked for
this and reported an error, per my understanding of the spec.  
However, the spec says what the spec says not what I think
I meant when I helped write it :) - so maybe an erratum 
is in order here.  It does seem to me that since the above
can't possibly be right in any sensible world, signaling
an error is useful... and when there is a lack of clarity,
doing the useful thing is often a useful discriminant. -Tim
Next in thread → Next in month →