[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Polyglot XHTML5 Validator?

  • From: David Carlisle <davidc@nag.co.uk>
  • To: Jesper Tverskov <jesper.tverskov@gmail.com>
  • Date: Tue, 24 May 2011 10:37:04 +0100

Re:  Polyglot XHTML5 Validator?
On 24/05/2011 10:20, Jesper Tverskov wrote:
> That we need to use the title element in the head section is not only
> BEST PRACTICE, which I have learned is out of scope in this context,
> but the spec actually says:
>
> 6.1 Required Elements
> "Every polyglot markup document contains an html, head, title, and
> body element."
>

polyglot elements are by definition valid html, so will have a title, 
but that doesn't need to be checked by this schematron.

> We _need_ an assertion for DOCTYPE. You forgot that we can have a
> DOCTYPE looking like the following:
> <!DOCTYPE HTML>
>
> The above is valid HTML5, it is well-formed even if the top-element is
> lower-case, but the Polyglot Spec explicitly says:
>
> 4. DOCTYPE
> "The string html is in lowercase letters."
>

grr I suppose so, I currently say that the  input has to be valid html 
and well formed xml.  It would be tempting to say it had also to be 
valid xml using a catalog supplying some minimal dtd (which would also 
ensure no entity references were used) but unfortunately using a catalog 
for that form requires a optional feature of the xml catalog spec 
(defaulting a dtd based on top level element name)

Most likely though I should document this as a restriction rather that 
change the schematron, it's not reliable to reload the same document via 
unparsed-text (the original document may not be available if for example 
it was originally supplied as a stream on standard input.)

again, the polyglot spec is wrong to make this requirement (as html/xml 
parsing is not affected, which is why it is hard to check it with 
schematron) so perhaps the correct fix here is to enter a bug on the spec.

David



David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.