W3C home > Mailing lists > Public > www-html@w3.org > September 1999

Re: XHTML DTD Problem!

From: Nir Dagan <nir@nirdagan.com>
Date: Wed, 15 Sep 1999 10:44:16 -0400
Message-Id: <199909151443.KAA00876@dark.brown.edu>
To: Matthew Idso <MatthewI@soma.com>, www-html@w3.org
I can't see any XHTML DTD problem here. There might be a problem in either

you exactly did, and or in your browser, or both.

If you served the document from a file on your hard disc with extension
.xml, the browser seems to be correct to assume that it is XML. 
Also it refuses to render XML documents without style sheets as rendering is

The fact that it complained about some lt entity, make me suspect 
that you cut and pasted from the HTML source of the example, rather from the 
rendered view. So all the < that delimit the begining of a tag where written 
as &lt; in your file. (Another possibility is poorly written error messages
behalf of the browser)

In anycase, if you'll cut and paste the sample from the rendered view of your
browser, and serve it through HTTP with 
content-type: text/html;charset=utf-8

the browser should display it as HTML.

Nir Dagan.

At 01:19 PM 9/13/99 -0400, Matthew Idso wrote: 

> When I try to display the following sample from your page in IE5 I get the
> error below: 
> Sample: 
> <?xml version="1.0" encoding="UTF-8"?> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "<http://www.w3.org/TR/xhtml1/DTD/strict.dtd>http://www.w3.org/TR/xhtml1/D
> TD/strict.dtd"> 
> <html
> xml:lang="en" lang="en"> 
>   <head> 
>     <title>Virtual Library</title> 
>   </head> 
>   <body> 
>     <p>Moved to <a
>   </body> 
> </html> 
> Error: 
> The XML page cannot be displayed Cannot view XML input using XSL style
> Please correct the error and then click the Refresh
> <javascript:location.reload()> button, or try again later.   Error while
> parsing entity 'lt'. A declaration was not closed. Line 1, Position 1 
> < 
> What is going on? 
> Matt Idso 
> Quality Assurance Tester 
> 206-615-2980 
> MatthewI@Soma.com 

Nir Dagan
Assistant Professor of Economics
Brown University 
Providence, RI

Received on Wednesday, 15 September 1999 10:43:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:51 UTC