W3C home > Mailing lists > Public > www-validator@w3.org > July 2001

xml-stylesheet PI

From: Karl Dubost <karl@w3.org>
Date: Wed, 25 Jul 2001 20:35:56 +0200
Message-Id: <p05100331b784bb934660@[193.51.208.147]>
To: www-html-editor@w3.org
Cc: www-validator@w3.org, maxf@w3.org
Dear XHTML 1.1 editors,

In the document XHTML 1.1 Recommendation [1]
http://www.w3.org/TR/2001/REC-xhtml11-20010531

We can read in the source code:
...................................................................
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>XHTML 1.1 - Module-based XHTML</title>
<link rel="stylesheet" type="text/css" media="screen" href="xhtml.css" />
<link rel="stylesheet" type="text/css" media="screen" 
href="http://www.w3.org/StyleSheets/TR/W3C-REC" />
<?xml-stylesheet href="xhtml.css" type="text/css" media="screen" ?>
<?xml-stylesheet
href="http://www.w3.org/StyleSheets/TR/W3C-REC" type="text/css" 
media="screen" ?>
<link rel="next" type="text/html" href="introduction.html" />
...................................................................


But the Recommendation Associating stylesheets with XML documents [2] says:

........
The xml-stylesheet processing instruction is allowed only in the 
prolog of an XML document. The syntax of XML constrains where 
processing instructions are allowed in the prolog; the xml-stylesheet 
processing instruction is allowed anywhere in the prolog that meets 
these constraints.
........

So when the document is passed to the HTML validator [3], it is valid 
against the XHTML 1.1 DTD but not against this Recommendation [2]. I 
don't know if it's something the HTML Validator should check in the 
future.

Modularization of XHTML [4] seems to have the same problem.



PS: Thanks to Max Froumentin, W3C, to have discovered the problem.

[1] http://www.w3.org/TR/2001/REC-xhtml11-20010531
[2] http://www.w3.org/TR/xml-stylesheet/
[3] http://validator.w3.org/
[4] http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410
-- 
Karl Dubost / W3C - Conformance Manager
           http://www.w3.org/QA/

      --- Be Strict To Be Cool! ---
Received on Wednesday, 25 July 2001 14:56:53 GMT

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