[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Caution! XML parsers behave differently withwhitespace specified directly in attribute value versus whitespacespecified via an ENTITY
- From: "Liam R. E. Quin" <liam@w3.org>
- To: Christophe Marchand <cmarchand@oxiane.com>, xml-dev@lists.xml.org
- Date: Mon, 11 Apr 2016 18:32:58 -0400
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 <liam@w3.org>
The World Wide Web Consortium (W3C)
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]