Re: [xml-dev] Caution! XML parsers behave differently with whitespace specified directly in attribute value versus whitespace specified via an ENTITY

From
Liam R. E. Quin <>
To
Christophe Marchand <>,
Date
2016-04-11T22:32:58Z
ID
<>
Thread
Re: [xml-dev] Caution! XML parsers behave differently with whitespace specified directly in attribute value versus whitespace specified via an ENTITY
On Fri, 2016-04-08 at 14:31 +0200, Christophe Marchand wrote:
> The question is, why, today, as we have various tools to modify xml 
> files, should we persist to use entities !

There are places where zero-argument macro text substitution is very
helpful. For example, 
  href="&scheme;://&servername;/&docroot;/"
or &productname; in a technical manual for several products.

Having said that, I have yet to see an XML schema language that can
place any constraints on entities. Doing that might require using a
character other than & for entity replacement, or changing XML parsers
to validate the entities as they go.

Liam

-- 
Liam R. E. Quin <>
The World Wide Web Consortium (W3C)