问题
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 HTML5 elements or attributes.
So, any suggestions?
回答1:
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.
回答2:
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 .
回答3:
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.
回答4:
To validate XHTML5, use the schema from v.Nu.
For details, see:
https://github.com/unsoup/validator
来源:https://stackoverflow.com/questions/5638366/is-there-an-xhtml-xsd-equivalent-available-for-html5