Re: XMP and HTML 2.0 and 3.0

Dave Raggett (dsr@hplb.hpl.hp.com)
Tue, 02 May 95 16:37:58 BST


Message-Id: <199505021537.AA266089078@dragget.hpl.hp.com>
To: babafou@ensta.fr
Cc: Multiple recipients of list <www-html@www10.w3.org>
Subject: Re: XMP and HTML 2.0 and 3.0 
In-Reply-To: Your message of "Tue, 02 May 95 07:55:43 Q."
             <199505021147.NAA17491@bsd5.ensta.fr> 
Date: Tue, 02 May 95 16:37:58 BST
From: "Dave Raggett" <dsr@hplb.hpl.hp.com>



> Yesterday, I read in the HTML 2.0 draft that the XMP tag was only supported
> for backward compatibility and that documents should use the PRE tag. The
> XMP tag is not even mentioned in the HTML 3.0 draft.

> OK but what should I use if I want a block of text to be inserted without
> any interpratation of HTML tags? I really need it. Did I miss something?

The XMP and PLAINTEXT tags don't conform to the SGML standard and hence
are regarded as obsolete tags for HTML3. You can still find them in the
DTD though in a marked section under %HTML.Obsolete.

I recommend you preprocess the block of text you wish to insert in the
HTML document to mapp any occurrences of "<", ">" and "&" to the character
enities: &lt; &gt; and &amp; respectively and then use the PRE element.

-- Dave Raggett <dsr@w3.org> url = http://www.hpl.hp.co.uk/people/dsr
   Hewlett Packard Laboratories, Filton Road, | tel: +44 117 922 8046
   Bristol BS12 6QZ, United Kingdom           | fax: +44 117 922 8924