On Wednesday, December 4, 2002, at 10:47 PM, fantasai wrote: > > David Woolley wrote: >>> The XMP element works just like I want it to, but I haven't seen >>> that element in a spec... hmm... ever? Its been awhile, at least. >> That's because it's impossible to specify in an SGML DTD. It's a >> hack. > > It *is* possible to specify <xmp> in an SGML DTD. (Whether it can > contain HTML code is a different matter. [1]) SGML DTDs can specify > element content to be CDATA, and that's exactly how <xmp> is defined. But because the CDATA section ends at the first occurence of </ any time you close an "element" within the xmp, you end the CDATA section. JimReceived on Wednesday, 4 December 2002 22:52:49 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 July 2008 07:54:21 GMT