(unknown charset) Re: The validator and XML standalone tags

On 7 Sep 1999, [ISO-8859-1] Claus Färber wrote:
> mage@phobos.fachschaften.tu-muenchen.de schrieb/wrote:
> > <link ref="stylesheet" href="/~mage/personal.css" type="text/css" />
> > What is so different about the <link>  tag that i can't use the / ???
> What is the error message you get?
> Claus
Ok, sorry, my first query was not accurate enough.

(I've just found out, that If I change the document type to xhtml, it
parses just fine)

http://phobos.fs.tum.de/~mage/test.html:
---
<?xml version="1.0"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
  <head>
    <link rel="stylesheet" href="/~mage/personal.css" type="text/css" />
    <title>Some Title</title>
  </head>
  <body>
  <p>
    Some Body
  </p>
  <hr />
  </body>
</html>
---
Error at line 5:
   heet" href="/~mage/personal.css" type="text/css" />
                         character data is not allowed here 
---


http://phobos.fs.tum.de/~mage/test2.html:
---
<?xml version="1.0"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
  <head>
    <link rel="stylesheet" href="/~mage/personal.css" type="text/css" >
    <title>Some Title</title>
  </head>
  <body>
  <p>
    Some Body
  </p>
  <hr />
  </body>
</html>
---
    No errors found!
---

http://phobos.fs.tum.de/~mage/test3.html:
---
<?xml version="1.0"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
  <head>
    <title>Some Title</title>
    <link rel="stylesheet" href="/~mage/personal.css" type="text/css" />
  </head>
  <body>
  <p>
    Some Body
  </p>
  <hr />
  </body>
</html>
---
Error at line 7:
     </head>
           end tag for element "HEAD" which is not open (explanation...)

Error at line 8:
     <body>
          document type does not allow element "BODY" here
---


Max Berger
ACPI4Linux project: http://phobos.fs.tum.de/acpi/
e-mail: max.berger@phobos.fs.tum.de

Plees doont mind se spelink misstakss
PGP-Key fingerprint: 9C F7 7B 60 36 71 BB 18  D5 11 00 85 48 32 30 BB
PGP-Key can be found at ftp://phobos.fs.tum.de/pub/pgp/max.berger.asc

Received on Tuesday, 7 September 1999 08:57:35 UTC