Re: DTD up to Survey header

From: John Halleck (John.Halleck@utah.edu)
Date: Mon Mar 12 2001 - 18:25:16 CET


On Mon, 12 Mar 2001, John Halleck wrote:

> [...]
> > On Sun, 11 Mar 2001 07:50:21 -0500 (EST), Richard Knapp wrote:
> >
> > >>> I couldn't find this in the XML Spec or in other texts. What I could find is the only time
> > >>> <?xml is required is if the DTD is in the XML document (using a <!DOCTYPE element)
> > >
> > >> Section 4.3.1 of the reviesed standard: It's called a "Text Declaration"... but it starts <?XML ...
> > >> and varies only in what's optional, and the lack of a standalone declaration option.
> > >
> > >But that section only refers to the XML document, not the DTD.
> >
> > [later] I got a response on xml-dev on this one, too. While the default is UTM-8, it is the opinion that adding it
> > will do no harm and make for a better model. So.....
>
> And it is required if the DTD is a different coding than the document.
> SO... either you claim cavexml documents MUST be UTF-8, or you probably
> want it there.

  I stand corrected: (From the revised standard:)

    "External parsed entities SHOULD each begin with a text declaration."

    "Parsed entities which are stored in an encoding other than UTF-8 or UTF-16
     MUST begin with a text declaration containing an encoding declaration."

  I had misremembered the first line as a MUST.
  (But I'll take a "should" as meaning I'll do it.)

> > - Richard Knapp
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
>
>



This archive was generated by hypermail 2b30 : Mon Apr 02 2001 - 18:00:00 CEST