W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > January 1997

Re: Sample Question

From: <lee@sq.com>
Date: Thu, 30 Jan 97 12:56:45 EST
Message-Id: <9701301756.AA20247@sqrex.sq.com>
To: w3c-sgml-wg@www10.w3.org
Len asked about a document...

> <HTML>

No, it needs to begin with the XML processing instruction.

> <HEAD>
> <TITLE>Hello World</TITLE>
> .
> .
> <P>Your IP address is <SERVER>write(request.ip)</SERVER>
> <SERVER>write("<p>Last time your were " + client.oldname + ".")</SERVER>

There are two <P> elements here that are not closed.  This is not well formed.
It is not valid SGML either, unless SERVER has a CDATA content model or
unless < is no longer MDO :-)

In general, HTML files will need to be filtered to become XML files.
The transformation is simple, and has been discussed at length on this list.

Lee
Received on Thursday, 30 January 1997 12:57:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:25:07 UTC