W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > August 2008

Re: Initial and terminal line breaks in element content

From: John Cowan <cowan@ccil.org>
Date: Mon, 25 Aug 2008 10:21:17 -0400
To: Krzysztof MaczyĆ?ski <1981km@gmail.com>
Cc: public-xml-core-wg@w3.org
Message-ID: <20080825142116.GG23099@mercury.ccil.org>

Krzysztof MaczyĆ?ski scripsit:

> I've come across an interesting
> but little known feature recently reading
> http://www.w3.org/TR/html401/appendix/notes.html#notes-line-breaks. If
> this is a rule for SGML, it should hold for XML as well, since XML is
> said to be a profile of SGML. But the XML specs (1.0 and 1.1) don't
> seem to mention it. Could you, please, clarify this confusion for me?

The rule for XML is that all whitespace in content is preserved.
This is activated in SGML by setting the KEEPRSRE feature to NO; its
normal SGML value (which is what the HTML document is talking about)
is YES.  The nitty-gritty on XML as an SGML profile can be found
at http://www.w3.org/TR/NOTE-sgml-xml-971215 ; this document is not
normative, but is extremely likely to be right.

-- 
Some people open all the Windows;       John Cowan
wise wives welcome the spring           cowan@ccil.org
by moving the Unix.                     http://www.ccil.org/~cowan
  --ad for Unix Book Units (U.K.)
        (see http://cm.bell-labs.com/cm/cs/who/dmr/unix3image.gif)
Received on Monday, 25 August 2008 14:21:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:39 UTC