[
Lists Home |
Date Index |
Thread Index
]
- From: "Liam R. E. Quin" <liamquin@interlog.com>
- To: xml-dev <xml-dev@ic.ac.uk>
- Date: Sun, 31 Oct 1999 02:29:48 -0500 (EST)
On Sun, 31 Oct 1999, John Tigue wrote:
> Another alternative could be implemented now based solely on
> XML 1.0. Consider using external parameter entity references.
During the XML design phase, I felt that the SYSTEM (and PUBLIC
identifiers in the document type declaration should have
been dispened with,
<!DOCTYPE Sock SYSTEM "hosiery.dtd" [
<!ENTITY myName "Lam">
]>
is more or less the same (in XML, not SGML) as
<!DOCTYPE Sock [
<!ENTITY myName "Lam">
<!ENTITY % theDTD STYSTEM "hosiery.dtd">
%theDTD;
]>
The extra syntax in the 2nd example is outweighed by the
fact you'd probably need inclusions anyway, and having just
one syntax is simpler. Furthermore, the first example is
confusing: "hosiery.dtd" gets included *after* the
declaration of myName in both cases, but you'd think this not to
be the case in the first example, unless you had read the spec.
The main advantage would be that people would be more familiar
with how to include DTD fragments in XML! Most people learn the
DOCTYPE/STSTEM method, ad fewer learn the external parameter
entity reference.
It's too late to remove the featur now, but people writing tutorials
and books and examples for XML would do well to consider introducing
the second before the first, I think.
Lee
--
Liam Quin, Barefoot Computing, Toronto; The barefoot agitator
l i a m q u i n at i n t e r l o g dot c o m
Ankh on irc.sorcery.net http://www.interlog.com/~liamquin/
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|