- From: Norman Walsh <Norman.Walsh@Sun.COM>
- Date: Wed, 11 Apr 2007 10:39:19 -0400
- To: public-xml-core-wg@w3.org
- Message-ID: <87irc3m0vc.fsf@nwalsh.com>
/ Richard Tobin <richard@inf.ed.ac.uk> was heard to say: |> In reviewing a test case, I discovered there was some confusion about |> this WFC: |> |> Well-formedness constraint: No < in Attribute Values |> |> The replacement text of any entity referred to directly or |> indirectly in an attribute value MUST NOT contain a <. |> |> The person who wrote the test case concluded that this WFC made the |> following document not well-formed: |> |> <!DOCTYPE foo [ |> <!ENTITY x "<"> |> <foo attr="&x;"/> |> |> I wonder if there's somewhere else in the spec that makes this clear, |> or if we want to consider an editorial clarification. | | The replacement text of x is the four characters "<". The replacement | text of lt is the five characters "<" or something similar. Neither | of these contains a less-than character. | | If the definition of x had been | | <!ENTITY x "<"> | | then the document would not have been well-formed, because the replacement | text of x would be the single character "<". Yes, I understand that. I'm just noting that when I looked at the WFC from the perspective of someone less familiar with the details, I could see how they'd come to the erroneous conclusion that "<foo attr='<'/>" should be an error. Be seeing you, norm -- Norman Walsh XML Standards Architect Sun Microsystems, Inc.
Received on Wednesday, 11 April 2007 15:15:29 UTC