]> code.delx.au - gnu-emacs-elpa/blob - packages/html5-schema/html5.rnc
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / html5-schema / html5.rnc
1 default namespace = "http://www.w3.org/1999/xhtml"
2 # #####################################################################
3 ## RELAX NG Schema for HTML 5 #
4 # #####################################################################
5
6 # To validate an HTML 5 document, you must first validate against #
7 # this schema and then ALSO validate against assertions.sch #
8
9 ## HTML flavor RELAX NG schemas can only be used after the #
10 ## document has been transformed to well-formed XML. #
11 ## - Insert closing slashes in all empty element tags #
12 ## - Insert all optional start and end tags #
13 ## - Add xmlns "http://www.w3.org/1999/xhtml" #
14 ## - Properly escape <script> and <style> CDATA #
15 ## - Parse and transform all HTML-only entities to numeric #
16 ## character references #
17 ## Obviously, syntax-checking involving these features cannot be #
18 ## done by the RELAX NG schema and must be checked, along with the #
19 ## <!DOCTYPE> requirement, by some other application. #
20
21 # #####################################################################
22 ## Schema Framework & Parameters
23
24 include "common.rnc" {
25 # XHTML flavor #
26 XMLonly = notAllowed
27 HTMLonly = empty
28 # HTML 4 compat #
29 v5only = empty
30 # HTML-serializability #
31 nonHTMLizable = notAllowed
32 # HTML-roundtrippability #
33 nonRoundtrippable = notAllowed
34 }
35
36 # #####################################################################
37 ## Language Definitions
38
39 start = html.elem
40
41 include "meta.rnc"
42 include "phrase.rnc"
43 include "block.rnc"
44 include "sectional.rnc"
45 include "structural.rnc"
46 include "revision.rnc"
47 include "embed.rnc"
48 include "ruby.rnc"
49 include "media.rnc"
50 include "core-scripting.rnc"
51 include "tables.rnc"
52 include "form-datatypes.rnc"
53 include "web-forms.rnc"
54 include "web-forms2.rnc"
55 include "applications.rnc"
56 include "data.rnc"