Re: Standalone document VC and WFC inconsistency

Karl Waclawek wrote
>
> I believe you could actually convert it to a VC violation of a).
> Leave out the attribute value in the element, and just write <test/>,
> the entity x declaration would not be necessary either, like this:
>
> <?xml version="1.0" standalone="yes"?>
> <!DOCTYPE test [
> <!ELEMENT test EMPTY>
> <!ENTITY % pe "
>        <!ATTLIST test foo CDATA 'something'>
> " >
> %pe;
> ]>
> <test/>
>
> Still wellformed, but invalid, IMO. What do you think?
>
I Agree.

xmlvalid reports this file as well-formed but invalid with the following
message:-

satest2.xml [9:8] : Error: externally declared attribute 'foo' for element
'test' has a default value of 'something' which must be specified in a
standalone document

Regards
~Rob

--
Rob Lugt
ElCel Technology
http://www.elcel.com/

Received on Wednesday, 19 June 2002 10:48:06 UTC