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. Source: ...<EM>text</EM>... Style: 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 -- 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, FranceReceived on Wednesday, 26 November 1997 10:41:16 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:53 GMT