W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > October 1996

Re: B.10 Empty elements?

From: Charles F. Goldfarb <Charles@SGMLsource.com>
Date: Mon, 14 Oct 1996 22:42:03 GMT
To: Michael Sperberg-McQueen <U35395@UICVM.CC.UIC.EDU>
Cc: W3C SGML Working Group <w3c-sgml-wg@w3.org>
Message-ID: <326d85e7.3166116@mail.alink.net>
On Sat, 12 Oct 96 15:09:33 CDT, Michael Sperberg-McQueen
<U35395@UICVM.CC.UIC.EDU> wrote:

>On 16 October 1996, the ERB will vote to decide the following question.
>A straw poll indicates the question needs further discussion in the work
>group.
>
>B.10 What form should EMPTY elements take, if there are EMPTY elements
>in XML:  <e>, <e/, or <e></e> (where '/' is assumed the NET string)
>(7.3, 11.2.3)?
>

<e></e>

because:
1. It represents what appears in the ESIS.
2. It makes it obvious to the reader that the element is empty and that it has
ended.
3. It is the same treatment for all elements -- another contributor to
simplicity.

For conformance, the XML DTD will need to declare "e" as:
<!element e (xml.empty.element.type?)>
instead of:
<!element e empty>
--
Charles F. Goldfarb * Information Management Consulting * +1(408)867-5553
           13075 Paramount Drive * Saratoga CA 95070 * USA
  International Standards Editor * ISO 8879 SGML * ISO/IEC 10744 HyTime
 Prentice-Hall Series Editor * CFG Series on Open Information Management
--
Received on Monday, 14 October 1996 18:42:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:25:04 UTC