This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5996 - XHTML 1.1 specification example invalid
Summary: XHTML 1.1 specification example invalid
Status: RESOLVED WORKSFORME
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://www.w3.org/TR/xhtml11/conforma...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 14:53 UTC by Christian Sturm
Modified: 2009-02-02 21:22 UTC (History)
3 users (show)

See Also:


Attachments

Description Christian Sturm 2008-08-27 14:53:28 UTC
The validator says that the following example of the XHTML 1.1 Sepecification is invalid.
(it can be found here http://www.w3.org/TR/xhtml11/conformance.html#strict )

<?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"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"
     xml:lang="en" >
  <head>
    <title>Virtual Library</title>
  </head>
  <body>
    <p>Moved to <a href="http://example.org/">example.org</a>.</p>
  </body>
</html>

This shouldn't be possible, I guess.
Comment 1 Olivier Thereaux 2008-08-27 20:31:52 UTC
After looking around a little, it looks like the validator is using the Recommendation (stable standard) version of the DTD in its catalog, while XHTML 1.1 has gone back to working draft.

in sgml-lib/xml.soc

-- XHTML --

PUBLIC "-//W3C//DTD XHTML 1.1//EN"
       "REC-xhtml11-20010531/xhtml11-flat.dtd"
PUBLIC "-//W3C//ENTITIES XHTML 1.1 Document Model 1.0//EN"
       "REC-xhtml11-20010531/xhtml11-model-1.mod"

updating the DTD in my local instance of the validator (and on http://qa-dev.w3.org/wmvs/HEAD/ ) does NOT seem to have done the trick. I will check again when I return from this trip, in a week or so.
Comment 2 Davin Granroth 2008-09-19 15:00:11 UTC
I also ran into this bug while attempting to build a page using the doctype from the referenced page.

The error pointed to xsi:schemaLocation as an issue. 

I'm just a user of the validator, so don't know the ins-and-outs. Two basic observations:

1. The namespace prefix xsi on the schemaLocation attribute doesn't seem to register, so checking the attribute xsi:schemaLocation would fail outright.

2. Since 1, schemaLocation fails as it 
  1. isn't a listed attribute name
  2. it is uses mixed-case
Comment 3 Olivier Thereaux 2009-02-02 21:22:21 UTC
The example given now validates fine. I suspect whatever transient issue with the DTD hosted by the XHTML WG has recently been fixed.