[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PEs in Default Attribute Values
- From: Rob Lugt <email@example.com>
- To: Jason Diamond <firstname.lastname@example.org>, email@example.com
- Date: Thu, 03 May 2001 10:44:00 +0100
Jason Diamond wrote:-
> This one's tricky. Parameter entity references can only appear at the
> top-level in the internal subset. This is actually a well-formedness
> constraint so conformant XML processors would be required to report it as
> error and not just silently pass it through as literal text.
> I suspect that the test is wrong if it expects any output at all since it
> should have stopped processing before encountering the document element.
I too thought it was tricky, but Richard Tobin kindly pointed out that
the James Clark test is valid. Richard quoted from XML 1.0 4.4 :
Reference in Attribute Value
as a reference within either the value of an attribute in a
start-tag, or a default value in an attribute declaration;
corresponds to the nonterminal AttValue.