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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Empty elements

[ Lists Home | Date Index | Thread Index ]
  • From: "David G. Durand" <dgd@cs.bu.edu>
  • To: xml-dev@ic.ac.uk
  • Date: Fri, 13 Feb 1998 13:56:05 -0500

>  [snip]
>In other words, XML processors may (and should) treat
>  <br></br>
>  <br/>
>as equivalent, but document authors might want to make the distinction
>so that pre-WebSGML SGML parsers can handle their documents.

Some of us think this was a significant reduction in the power of XML to
represent useful information (the difference between an element that marks
a point phenomenon, and one that is empty because it just doesn't have any

>That begs the question of the processor's information set, however --
>a processor designed for use with repositories or with editors, for
>example, needs to preserve lexical as well as structural information
>about the XML document, such as comments, general entity references
>(even within attribute values), specified vs. defaulted attribute
>values, CDATA sections, whitespace within tags, etc.

It's not possible to write _valid_ SGML document instances without this
information, something not true of comments, DTD, info, or the other
lexical information.

I think the EMPTY declaration status, and the lexical form of the element
occurrence are useful for that practical reason alone.

>SAX as it currently stands is not designed to preserve most lexical
>information; in the future, we may devise a SAX level-2 to return this
>information, but since most applications that need it will probably
>use a DOM anyway, the demand may not be strong enough.

This information is more than purely lexical, which is why it should be in

  -- David

David Durand              dgd@cs.bu.edu  \  david@dynamicDiagrams.com
Boston University Computer Science        \  Sr. Analyst
http://www.cs.bu.edu/students/grads/dgd/   \  Dynamic Diagrams
--------------------------------------------\  http://www.dynamicDiagrams.com/
MAPA: mapping for the WWW                    \__________________________

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