xml-stylesheet PI

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 UTC