Re: FAQ [doctype; please don't respond on the list]



On Tue, Aug 29, 2000 at 03:45:27AM +0300, Ali Abdin wrote:
> WRONG! if it is 'PUBLIC' you need to have a URI, but since you don't, you
> should switch 'PUBLIC' to 'SYSTEM' I believe. 

For SGML and HTML, the PUBLIC identifier is as defined in
ISO 8879:1986 as amended in 1988; the form Havoc used is correct.

If you want to sue a URI, you need to put that in a SYSTEM
identifier.

For XML, if you give a PUBLIC identifier you must also supply a system
identifier, and the system identifier is used to fetch the DTD by
those parsers that want it -- the pubilc identifier might be used
to identify the dtd so as to allow an application to choose a style
sheet, for example.

Hence, in XML:
<?xml version="1.0"?>
<!DOCTYPE boy PUBLIC "ignored by parser" "the system id" [ ] >

or,
<!DOCTYPE boy SYSTEM "the system id" [ ] >

> You also do not need to include the empty [] stuff.
That is true, although it doesn't hurt.

If you have more questions, ask me directly, or on IRC, as this
isn't really gnome-foundation material

Lee

-- 
Liam Quin - Barefoot in Toronto - liam@holoweb.net - http://www.holoweb.net/
Ankh: irc.sorcery.net www.valinor.sorcery.net irc.gnome.org www.advogato.org
author, The Open Source XML Database Toolkit, Wiley, August 2000
Co-author, The XML Specification Guide, Wiley, 1999





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]