XML DTD's in Standalone Documents (was: Images & mouseovers)

by "Chris Montgomery" <monty(at)astutia.com>

 Date:  Wed, 27 Sep 2000 09:12:19 -0500
 To:  <hwg-xml(at)hwg.org>
 In-Reply-To:  netstoremail
  todo: View Thread, Original
Coincidentally, here's a timely "tip" message from another list that may
help shed some light on using (or not using) DTD's in standalone
documents (which I believe Kynn's resume was), and qualifying the XML
processing instruction with a "standalone" attribute.  So, I guess it
depends on whether the individual XML processor is optimized for this.
Looks like the best case solution is to go ahead and use this attribute
if the document is in fact standalone.

>-----Original Message-----
>From: TipWorld [mailto:tipworld(at)boing.topica.com]
>Sent: Wednesday, September 27, 2000 8:58 AM
>To: tipworld-xml(at)topica.com
>Subject: XML [STANDALONE DOCUMENTS - 09/27/2000]
>
>TipWorld - http://www.tipworld.com
>
>And now for today's tip...
>
>STANDALONE DOCUMENTS
>
>by John Allen
>
>By now, everyone has seen the standard XML processing instruction at
>the beginning of an XML document:
>
><?xml version="1.0" ?>
>
>One of the attributes of the XML processing instruction is standalone.
>Possible values are yes and no. For example:
>
><?xml version="1.0" standalone="yes"?>
>
>If standalone is set to yes, the XML document is declaring that it
>does not use any external entities (like an external DTD). Some XML
>processors have optimized algorithms for handling standalone
>documents, so if your document doesn't use any external stuff, it's a
>good idea to specify it.
>
>

Chris Montgomery             monty(at)astutia.com

Web Development & Consulting http://www.astutia.com
Allaire Consulting Partner & NetObjects Reseller
210-490-3249/888-745-7603    Fax 210-490-4692
Find a Job in San Antonio    http://www.sajobnet.com


>-----Original Message-----
>From: owner-hwg-xml(at)hwg.org [mailto:owner-hwg-xml(at)hwg.org]On Behalf Of
>Mark Stradling
>Sent: Wednesday, September 27, 2000 3:32 AM
>To: hwg-xml(at)hwg.org
>Subject: RE: Images & mouseovers
>
>
>I think we are mistaking 'don't have to have a DTD' for
>'shouldn't have a
>DTD'.
>
>Although you CAN use XML without a DTD, that doesn't mean it's
>recommended,
>best practice or even a good idea.
>

<snip>

HWG hwg-xml mailing list archives, maintained by Webmasters