[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

  • From: "Liam R. E. Quin" <liamquin@i...>
  • To: xml-dev <xml-dev@i...>
  • Date: Sun, 31 Oct 1999 02:29:48 -0500 (EST)

entities in dtd
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.