W3C home > Mailing lists > Public > www-style@w3.org > November 1997

Re: CSS2 Progress

From: Bert Bos <Bert.Bos@sophia.inria.fr>
Date: Wed, 26 Nov 1997 16:40:56 +0100 (MET)
Message-Id: <199711261540.QAA02170@mygale.inria.fr>
To: www-style@w3.org
Lars Marius Garshol writes:
 > 2) Should markup be allowed in generated text?

No, there can be no markup in generated text, since the text is
generated after the HTML parser has finished.

Starting the parser again may even lead to infinite loops. E.g.


	whatever-syntax-for-prefix: "<EM>emph:</EM> "

New source:
	...<EM><EM>emph:</EM> text</EM>

Apply style to new text:
	...<EM><EM><EM>emph:</EM> emph:</EM> text</EM>

Apply style to new text again:
	...<EM><EM><EM><EM>emph:</EM> emph:</EM> emph:</EM> text</EM>

etc. ad infinitum.

There are also problems with validating the document against the DTD,
and, if you use XML, how to know which tags you can use.

Another problem is that a CSS application doesn't always have an HTML
or XML parser at hand. The style may be applied directly to some
abstract document tree, that has been acquired through a DOM
interface, for example, or through a Unix pipe:

    nsgmls doc.html | doc2ps -s style.css | lp

  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 93 65 76 92            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 26 November 1997 10:41:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:45 UTC