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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Undeclared elements error

[ Lists Home | Date Index | Thread Index ]
  • From: John Cowan <cowan@locke.ccil.org>
  • To: XML Dev <xml-dev@ic.ac.uk>
  • Date: Thu, 17 Sep 1998 15:43:41 -0400

Richard L. Goerwitz III wrote:

>   1) What if I use an element in a content model and I don't
>      declare it?

>From clause 3.2:

# At user option, an XML processor may issue a warning when a
# declaration mentions an element type for which
# no declaration is provided, but this is not an error.

>   2) What if I declare an element in a content model that I
>      don't use in any content model (and the element isn't the
>      root element)?

I know of no context, XML or otherwise, where it is an outright error
to declare something and not use it.  At most, that provokes a warning.

	We *mention* "our vast nuclear arsenal" so that
	we won't have to *use* it.
		-- Douglas Hofstadter on the use/mention distinction

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

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