Re: XMP and HTML 2.0 and 3.0

lilley (lilley@afs.mcc.ac.uk)
Wed, 3 May 1995 15:13:47 +0100 (BST)


From: lilley <lilley@afs.mcc.ac.uk>
Message-Id: <2337.9505031413@afs.mcc.ac.uk>
Subject: Re: XMP and HTML 2.0 and 3.0
To: babafou@ensta.fr
Date: Wed, 3 May 1995 15:13:47 +0100 (BST)
Cc: www-html@www10.w3.org
In-Reply-To: <199505021147.NAA17491@bsd5.ensta.fr> from "Marc Baudoin" at May 2, 95 07:48:45 am

> 
> 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.

Correct. The semantics of the XMP tag cannot be expressed in SGML. So
the XMP tag had to go to make HTML SGML-conformant. 

> 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?

You have a bunch of text that you want to include in an HTML file? Just write
a simple filter, macro, or whatever that converts all occurences of:

 & to &amp;
 " to &quot;
 < to &lt;
 > to &gt;

Making sure that it does the & to &amp; conversion *first* ;-)
Then include the modified file inside PRE tags.

--
Chris Lilley, Technical Author
+-------------------------------------------------------------------+
|       Manchester and North HPC Training & Education Centre        |
+-------------------------------------------------------------------+
| Computer Graphics Unit,             Email: Chris.Lilley@mcc.ac.uk |
| Manchester Computing Centre,        Voice: +44 61 275 6045        |
| Oxford Road, Manchester, UK.          Fax: +44 61 275 6040        |
| M13 9PL                            BioMOO: ChrisL                 |
|     URI: http://info.mcc.ac.uk/CGU/staff/lilley/lilley.html       | 
+-------------------------------------------------------------------+
|     "The first W in WWW will not wait."   François Yergeau        |
+-------------------------------------------------------------------+