diff options
Diffstat (limited to 'xml/relaxng/src/resources/html5-schema/common.rnc')
-rw-r--r-- | xml/relaxng/src/resources/html5-schema/common.rnc | 86 |
1 files changed, 72 insertions, 14 deletions
diff --git a/xml/relaxng/src/resources/html5-schema/common.rnc b/xml/relaxng/src/resources/html5-schema/common.rnc index c4f1eb9b0e0b..34d15fba1aa3 100644 --- a/xml/relaxng/src/resources/html5-schema/common.rnc +++ b/xml/relaxng/src/resources/html5-schema/common.rnc @@ -29,6 +29,9 @@ datatypes w = "http://whattf.org/datatype-draft" ## XML features that can't be serialized as HTML nonHTMLizable = empty +## features that are not part of the W3C HTML spec + nonW3C = empty + # ##################################################################### ## Wildcards # # ##################################################################### @@ -86,8 +89,15 @@ datatypes w = "http://whattf.org/datatype-draft" ## Prose Content + common.inner.transparent.flow = + ( text & common.elem.flow* ) + common.inner.flow = - ( text & common.elem.flow* ) # REVISIT <style scoped> + ( style.elem.scoped?, + ( text + & common.elem.flow* + ) + ) # ##################################################################### ## Common Attributes # @@ -110,7 +120,6 @@ common.attrs.basic = & common.attrs.title? & common.attrs.base? & common.attrs.space? - & common.attrs.role? ) common.attrs.id = attribute id { @@ -128,10 +137,6 @@ common.attrs.basic = attribute title { text } - common.attrs.role = - attribute role { - text - } common.attrs.base = common.attrs.xmlbase & nonRoundtrippable @@ -149,6 +154,7 @@ common.attrs.basic = common.attrs.i18n = ( common.attrs.dir? & common.attrs.language? + & common.attrs.translate? ) common.attrs.dir = attribute dir { @@ -181,6 +187,10 @@ common.attrs.i18n = # attribute xml:lang { # common.data.langcode # } & XMLonly + common.attrs.translate = + attribute translate { + w:string "yes" | w:string "no" + } common.attrs.present = ( common.attrs.style? @@ -233,7 +243,7 @@ common.attrs.other = common.data.idref = w:IDREF - + common.data.idrefs = w:IDREFS @@ -241,7 +251,7 @@ common.attrs.other = w:ID #FIXME common.data.hash-name = - w:hash-name + w:hash-name # xsd:string { # pattern = "#.+" # } @@ -265,12 +275,12 @@ common.attrs.other = # xsd:string { # pattern = "[0-9]+" # } - + # common.data.percent = # xsd:string { # pattern = "(100)|([1-9]?[0-9](\.[0-9]+)?)%" # } - + common.data.float = w:float # xsd:string { @@ -282,13 +292,13 @@ common.attrs.other = # xsd:string { # pattern = "(0*[1-9][0-9]*(\.[0-9]+)?)|([0-9]+(\.0*[1-9][0-9]*)?)([eE]-?[0-9]+)?" # } - + common.data.float.non-negative = w:float-non-negative # xsd:string { # pattern = "[0-9]+(\.[0-9]+)?([eE]-?[0-9]+)?" # } - + ## Temporal common.data.datetime = @@ -300,6 +310,9 @@ common.attrs.other = common.data.date = w:date + common.data.time-datetime = + w:time-datetime + ## IRIs common.data.uri = @@ -389,7 +402,7 @@ common.attrs.other = # ##################################################################### ## WF2 Module Hook # # ##################################################################### - + common-form.attrs.form = ( notAllowed ) # ##################################################################### @@ -397,6 +410,50 @@ common-form.attrs.form = ( notAllowed ) # ##################################################################### common.attrs.aria = ( notAllowed ) +common.attrs.aria.role.alert = ( notAllowed ) +common.attrs.aria.role.alertdialog = ( notAllowed ) +common.attrs.aria.role.application = ( notAllowed ) +common.attrs.aria.role.article = ( notAllowed ) +common.attrs.aria.role.banner = ( notAllowed ) +common.attrs.aria.role.button = ( notAllowed ) +common.attrs.aria.role.checkbox = ( notAllowed ) +common.attrs.aria.role.combobox = ( notAllowed ) +common.attrs.aria.role.complementary = ( notAllowed ) +common.attrs.aria.role.contentinfo = ( notAllowed ) +common.attrs.aria.role.dialog = ( notAllowed ) +common.attrs.aria.role.directory = ( notAllowed ) +common.attrs.aria.role.document = ( notAllowed ) +common.attrs.aria.role.heading = ( notAllowed ) +common.attrs.aria.role.img = ( notAllowed ) +common.attrs.aria.role.link = ( notAllowed ) +common.attrs.aria.role.list = ( notAllowed ) +common.attrs.aria.role.listitem = ( notAllowed ) +common.attrs.aria.role.log = ( notAllowed ) +common.attrs.aria.role.listbox = ( notAllowed ) +common.attrs.aria.role.main = ( notAllowed ) +common.attrs.aria.role.marquee = ( notAllowed ) +common.attrs.aria.role.menu = ( notAllowed ) +common.attrs.aria.role.menubar = ( notAllowed ) +common.attrs.aria.role.menuitem = ( notAllowed ) +common.attrs.aria.role.menuitemcheckbox = ( notAllowed ) +common.attrs.aria.role.menuitemradio = ( notAllowed ) +common.attrs.aria.role.note = ( notAllowed ) +common.attrs.aria.role.option = ( notAllowed ) +common.attrs.aria.role.presentation = ( notAllowed ) +common.attrs.aria.role.progressbar = ( notAllowed ) +common.attrs.aria.role.radio = ( notAllowed ) +common.attrs.aria.role.region = ( notAllowed ) +common.attrs.aria.role.search = ( notAllowed ) +common.attrs.aria.role.separator = ( notAllowed ) +common.attrs.aria.role.slider = ( notAllowed ) +common.attrs.aria.role.spinbutton = ( notAllowed ) +common.attrs.aria.role.status = ( notAllowed ) +common.attrs.aria.role.tab = ( notAllowed ) +common.attrs.aria.role.tablist = ( notAllowed ) +common.attrs.aria.role.textbox = ( notAllowed ) +common.attrs.aria.role.toolbar = ( notAllowed ) +common.attrs.aria.role.tree = ( notAllowed ) +common.attrs.aria.role.treeitem = ( notAllowed ) common.attrs.aria.implicit.button = ( notAllowed ) common.attrs.aria.implicit.input = ( notAllowed ) common.attrs.aria.implicit.region = ( notAllowed ) @@ -407,6 +464,7 @@ common.attrs.aria.implicit.link = ( notAllowed ) common.attrs.aria.implicit.listitem = ( notAllowed ) common.attrs.aria.implicit.img = ( notAllowed ) common.attrs.aria.implicit.select = ( notAllowed ) +common.attrs.aria.prop.readonly = ( notAllowed ) common.attrs.aria.landmark.application = ( notAllowed ) common.attrs.aria.landmark.banner = ( notAllowed ) common.attrs.aria.landmark.complementary = ( notAllowed ) @@ -417,4 +475,4 @@ common.attrs.aria.landmark.search = ( notAllowed ) # per ARIA spec: article, document, and note are not actually landmarks common.attrs.aria.landmark.article = ( notAllowed ) common.attrs.aria.landmark.document = ( notAllowed ) -common.attrs.aria.landmark.note = ( notAllowed )
\ No newline at end of file +common.attrs.aria.landmark.note = ( notAllowed ) |