Is there an xhtml.xsd equivalent available for HTML5?
I am developing an appplication based on Mozilla XULRunner.
I am using the xhmtl1-strict.xsd
provided by the W3C to fetch the attribute. Now the requirement came to add the <video>
tag to my application, but my application is not supporting any HTML开发者_Python百科5 elements or attributes.
So, any suggestions?
HTML5 does not have a doctype definition or an XML schema definition. This is because, although it shares the same syntax as its predecessor HTML 4, HTML5 itself is neither based on SGML nor XML. It's a markup language in its own right.
If you are looking to implement a browser with HTML5 capabilities using Mozilla technologies, the latest version of the Gecko layout engine supports HTML5. Get the Gecko/XULRunner SDK here.
The packages at http://www.xmlmind.com/xmleditor/download.shtml contain a file addon/config/xhtml/xsd/5.0/xhtml5.xsd which seems to be licensed as open source .
There is an HTML5 DTD which is used in the XML Catalog of Komodo, which is an XULRunner application. It can also be used in Eclipse without being converted to an XSD. In addition, there are style sheet and regex based DTD2XSD converters available.
To validate XHTML5, use the schema from v.Nu.
For details, see:
https://github.com/unsoup/validator
精彩评论