15

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?

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
Abhishek Choudhary
  • 8,255
  • 19
  • 69
  • 128

4 Answers4

9

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.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
6

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 .

oldo
  • 2,092
  • 1
  • 15
  • 11
  • 2
    The XSD of the XMLmind-pack is non-oficial and it have inconsistencies with http://dev.w3.org/html5 , but was a good starting point for me (!), thanks. – Peter Krauss Dec 07 '13 at 12:00
2

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.

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
2

To validate XHTML5, use the schema from v.Nu.

For details, see:

https://github.com/unsoup/validator

Graham Hannington
  • 1,749
  • 16
  • 18
  • That could be useful in some cases, but it's unfortunate that it's not a full xsd schema - it's based on Relax NG, and so, you can't, for example, use it with all validators, nor use it with tools like xjc which creates JAXB Java Binding Classes, for XHTML5. – JeffFromOhio Jan 07 '23 at 00:56