Re: XMP

Walter Ian Kaye (walter@natural-innovations.com)
Tue, 12 Aug 1997 13:42:17 -0700


Message-Id: <v0310280eb0167a8fd7d7@[205.149.180.135]>
In-Reply-To: 
Date: Tue, 12 Aug 1997 13:42:17 -0700
To: www-html@w3.org
From: Walter Ian Kaye <walter@natural-innovations.com>
Subject: Re: XMP

At 4:26p -0400 08/12/97, Russell Steven Shawn O'Connor wrote:
 > On Tue, 12 Aug 1997, Joe English wrote:
 > > Actually, since markup recognition is turned off completely
 > > (except for the terminating delimiter) inside CDATA declared
 > > content ']]>' *can't* be escaped;
 > >
 > > > With a CDATA tag such as <XMP> the sequence of `</'
 > > > is not allowed and must be escaped.
 > >
 > > In fact, since '</' *can't* be escaped, there is *no way at all*
 > > to include it in an element with CDATA declared content.
 >
 > Your right about the escaping.  I was thinking about application
 > specific escaping such as
 >
 >      <script>
 >      document.write("<h2>This is _valid_ HTML<\/h2>")
 >      <script>
 >
 > Of course, as you point out, there is no way to escape in general.

Why are &lt; and &gt; not sufficient for escaping? I thought that was the
reason we've always had them...

__________________________________________________________________________
  Walter Ian Kaye <boo_at_best*com>    Programmer - Excel, AppleScript,
          Mountain View, CA                         ProTERM, FoxPro, HTML
 http://www.natural-innovations.com/     Musician - Guitarist, Songwriter