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

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

From: (unknown charset) Max Berger <mage@phobos.fachschaften.tu-muenchen.de>
Date: Tue, 7 Sep 1999 06:58:08 -0400 (EDT)
To: (unknown charset) Claus Färber <claus@faerber.muc.de>
cc: (unknown charset) mage@phobos.fachschaften.tu-muenchen.de, www-validator@w3.org
Message-ID: <Pine.LNX.4.10.9909071246280.867-100000@elara.jupiter>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:52 GMT