W3C home > Mailing lists > Public > www-archive@w3.org > February 2013

A reference XHTML 1.1 document with XSD validation

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Sat, 9 Feb 2013 23:23:09 +0100
To: www-archive@w3.org
Message-ID: <20130209232309862260.e3f28620@xn--mlform-iua.no>
For reference, as attachments to this message, follows an XHTML 1.1 
document whose validation rules are expressed via XSD. The document 
looks as follows:

<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.w3.org/1999/xhtml
                          http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
<head><title>Foo</title></head><body><h1>Bar</h1></body></html>

NOTE: The document breaks the XML 1.0 validity constraint that the name 
part of the DOCTYPE must match the root element. But this XML 1.0 
specified validity constrain does often not seem to be respected by 
schema based XML tools. The purpose of serving up these attachments (a 
.xhtml copy and a .html copy) is to serve as reference in a planned 
discussion at xmlschema-dev@.







-- 
leif halvard silli


Received on Saturday, 9 February 2013 22:23:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 9 February 2013 22:23:50 GMT