|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Parameter entities for DTD modularity (was: Re: Multiple docs in 'wr
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@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








