OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: DOCTYPE decl

[ Lists Home | Date Index | Thread Index ]
  • From: "James Tauber" <jtauber@jtauber.com>
  • To: "Peter Jones" <peterj@wrox.com>, "'XML-DEV'" <xml-dev@ic.ac.uk>
  • Date: Wed, 2 Sep 1998 17:20:08 +0800

-----Original Message-----
From: Peter Jones <peterj@wrox.com>

>Can I just check the following with folks on the list
>
>I have what I would like to be a well-formed, but not valid, document:
>
><!DOCTYPE mydocname [
><!ENTITY  entityname  "Some replacement text">
>]>
>
><mydocname>&entityname;</mydocname>
>
>Question:
>If I have to include a !DOCTYPE declaration in order to declare
>entities, am I also forced to declare the root element with an !ELEMENT
>decl. too?


No, not at all. What you have above is well-formed, but not valid, just as
you want.

James
--
James Tauber / jtauber@jtauber.com      http://www.jtauber.com/
Lecturer and Associate Researcher
Electronic Commerce Network             ( http://www.xmlinfo.com/
Curtin Business School                  ( http://www.xmlsoftware.com/
Perth, Western Australia                ( http://www.schema.net/



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS