From 2c3a11099f8b8ec420ffdb6cad8bb19ec55df69e Mon Sep 17 00:00:00 2001 From: Piotr Tomiak Date: Wed, 8 Oct 2025 17:21:16 +0200 Subject: [PATCH] [html] WEB-72823 Update schema generation script and trim line endings in all files. GitOrigin-RevId: 736283734fce714c97c4faa9343d7d4b1c82ee04 --- .../html5-schema/html5/form-datatypes.rnc | 22 +- .../html5-schema/html5/html5exclusions.rnc | 4 +- .../html5-schema/html5/its20-html5-types.rnc | 4 +- .../html5-schema/html5/its20-html5.rnc | 2 +- .../resources/html5-schema/html5/media.rnc | 6 +- .../html5-schema/html5/sectional.rnc | 4 +- .../resources/html5-schema/html5/tables.rnc | 4 +- .../html5/web-forms-scripting.rnc | 6 +- .../html5-schema/html5/web-forms.rnc | 196 +++++++-------- .../html5-schema/html5/web-forms2.rnc | 226 +++++++++--------- .../html5-schema/its2/its20-html5-types.rnc | 4 +- .../html5-schema/its2/its20-html5.rnc | 2 +- .../html5-schema/mml3/mathml3-common.rnc | 14 +- .../html5-schema/mml3/mathml3-content.rnc | 8 +- .../html5-schema/mml3/mathml3-inc.rnc | 4 +- .../mml3/mathml3-presentation.rnc | 88 +++---- .../mml3/mathml3-strict-content.rnc | 6 +- .../resources/html5-schema/mml3/mathml3.rnc | 2 +- .../resources/html5-schema/rdf/rdf.rnc | 8 +- .../html5-schema/svg11/inkscape-draft.rnc | 6 +- .../resources/html5-schema/svg11/inkscape.rnc | 12 +- .../html5-schema/svg11/svg-animation.rnc | 20 +- .../svg11/svg-animevents-attrib.rnc | 16 +- .../html5-schema/svg11/svg-basic-clip.rnc | 20 +- .../html5-schema/svg11/svg-basic-filter.rnc | 20 +- .../html5-schema/svg11/svg-basic-font.rnc | 20 +- .../svg11/svg-basic-graphics-attrib.rnc | 16 +- .../svg11/svg-basic-structure.rnc | 34 +-- .../html5-schema/svg11/svg-basic-text.rnc | 20 +- .../resources/html5-schema/svg11/svg-clip.rnc | 22 +- .../html5-schema/svg11/svg-conditional.rnc | 20 +- .../svg11/svg-container-attrib.rnc | 22 +- .../html5-schema/svg11/svg-core-attrib.rnc | 16 +- .../html5-schema/svg11/svg-cursor.rnc | 20 +- .../html5-schema/svg11/svg-datatypes.rnc | 144 +++++------ .../svg11/svg-docevents-attrib.rnc | 16 +- .../html5-schema/svg11/svg-extensibility.rnc | 4 +- .../svg11/svg-extresources-attrib.rnc | 16 +- .../html5-schema/svg11/svg-filter.rnc | 22 +- .../resources/html5-schema/svg11/svg-font.rnc | 16 +- .../html5-schema/svg11/svg-gradient.rnc | 20 +- .../svg11/svg-graphevents-attrib.rnc | 16 +- .../svg11/svg-graphics-attrib.rnc | 16 +- .../html5-schema/svg11/svg-hyperlink.rnc | 22 +- .../html5-schema/svg11/svg-image.rnc | 20 +- .../html5-schema/svg11/svg-marker.rnc | 20 +- .../resources/html5-schema/svg11/svg-mask.rnc | 20 +- .../html5-schema/svg11/svg-opacity-attrib.rnc | 16 +- .../html5-schema/svg11/svg-paint-attrib.rnc | 46 ++-- .../html5-schema/svg11/svg-pattern.rnc | 20 +- .../html5-schema/svg11/svg-profile.rnc | 20 +- .../html5-schema/svg11/svg-qname.rnc | 16 +- .../html5-schema/svg11/svg-script.rnc | 20 +- .../html5-schema/svg11/svg-shape.rnc | 22 +- .../html5-schema/svg11/svg-structure.rnc | 22 +- .../html5-schema/svg11/svg-style.rnc | 26 +- .../resources/html5-schema/svg11/svg-text.rnc | 28 +-- .../resources/html5-schema/svg11/svg-view.rnc | 20 +- .../svg11/svg-viewport-attrib.rnc | 22 +- .../html5-schema/svg11/svg-xlink-attrib.rnc | 16 +- .../html5-schema/svg11/svg11-basic-inc.rnc | 192 +++++++-------- .../html5-schema/svg11/svg11-basic.rnc | 34 +-- .../html5-schema/svg11/svg11-inc.rnc | 204 ++++++++-------- .../html5-schema/svg11/svg11-tiny-inc.rnc | 138 +++++------ .../html5-schema/svg11/svg11-tiny.rnc | 34 +-- .../resources/html5-schema/svg11/svg11.rnc | 36 +-- xml/relaxng/scripts/update_html5_schema.sh | 8 +- 67 files changed, 1095 insertions(+), 1091 deletions(-) diff --git a/xml/relaxng/resources/resources/html5-schema/html5/form-datatypes.rnc b/xml/relaxng/resources/resources/html5-schema/html5/form-datatypes.rnc index 76fa0567f501..a6a6da684746 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/form-datatypes.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/form-datatypes.rnc @@ -5,30 +5,30 @@ datatypes w = "http://whattf.org/datatype-draft" # ##################################################################### ## MIME types - - form.data.mimetypelist = + + form.data.mimetypelist = w:mime-type-list - + ## ECMAScript Regular Expression - - form.data.pattern = + + form.data.pattern = string - + ## Temporal - + form.data.datetime-local = w:datetime-local - + form.data.date = w:date - + form.data.month = w:month - + form.data.week = w:week - + form.data.time = w:time diff --git a/xml/relaxng/resources/resources/html5-schema/html5/html5exclusions.rnc b/xml/relaxng/resources/resources/html5-schema/html5/html5exclusions.rnc index 1fa0915fbe09..523f0b27e0ae 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/html5exclusions.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/html5exclusions.rnc @@ -4,7 +4,7 @@ default namespace = "http://www.w3.org/1999/xhtml" # ##################################################################### ## This file is unmaintained. Please use assertions.sch instead. - + # ##################################################################### ## Schema Framework & Parameters @@ -51,7 +51,7 @@ dfn.elem.exclude-self = } # FIXME this part was cut off -- hsivonen -wildcard.elem.exclude-all = +wildcard.elem.exclude-all = notAllowed #FIXME no nested forms in HTML-serializable docs diff --git a/xml/relaxng/resources/resources/html5-schema/html5/its20-html5-types.rnc b/xml/relaxng/resources/resources/html5-schema/html5/its20-html5-types.rnc index 22bf9e834440..aca26cfded7b 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/its20-html5-types.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/its20-html5-types.rnc @@ -122,13 +122,13 @@ its-locQualityIssueType.type = w:string "terminology" | w:string "mistranslation its-locQualityIssueComment.type = string -its-locQualityIssueSeverity.type = xsd:double { minInclusive = "0" maxInclusive = "100" } +its-locQualityIssueSeverity.type = xsd:double { minInclusive = "0" maxInclusive = "100" } its-locQualityIssueProfileRef.type = w:iri-ref its-locQualityIssueEnabled.type = w:string "yes" | w:string "no" -its-locQualityRatingScore.type = xsd:double { minInclusive = "0" maxInclusive = "100" } +its-locQualityRatingScore.type = xsd:double { minInclusive = "0" maxInclusive = "100" } its-locQualityRatingVote.type = xsd:integer diff --git a/xml/relaxng/resources/resources/html5-schema/html5/its20-html5.rnc b/xml/relaxng/resources/resources/html5-schema/html5/its20-html5.rnc index 6417334245c2..33da35d8252d 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/its20-html5.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/its20-html5.rnc @@ -81,7 +81,7 @@ its-attribute.provenanceRecordsRef.html = attribute its-provenance-records-ref { its-attribute.locQualityIssuesRef.html = attribute its-loc-quality-issues-ref { its-locQualityIssuesRef.type } -its-attribute.locQualityIssueType.html = attribute its-loc-quality-issue-type { its-locQualityIssueType.type } +its-attribute.locQualityIssueType.html = attribute its-loc-quality-issue-type { its-locQualityIssueType.type } its-attribute.locQualityIssueComment.html = attribute its-loc-quality-issue-comment { its-locQualityIssueComment.type } diff --git a/xml/relaxng/resources/resources/html5-schema/html5/media.rnc b/xml/relaxng/resources/resources/html5-schema/html5/media.rnc index 2fd90699bc55..8b9cde06ec4c 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/media.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/media.rnc @@ -7,7 +7,7 @@ datatypes w = "http://whattf.org/datatype-draft" ## Attributes Common to Media Elements # src not included - media.attrs = + media.attrs = ( media.attrs.autoplay? & media.attrs.preload? & media.attrs.controls? @@ -35,7 +35,7 @@ datatypes w = "http://whattf.org/datatype-draft" attribute muted { w:string "muted" | w:string "" } - + ## Source: source.elem = @@ -58,7 +58,7 @@ datatypes w = "http://whattf.org/datatype-draft" ## Media Source - media.source = + media.source = ( media.attrs.src | source.elem* ) diff --git a/xml/relaxng/resources/resources/html5-schema/html5/sectional.rnc b/xml/relaxng/resources/resources/html5-schema/html5/sectional.rnc index 5ab308b53b1d..a4941d41301b 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/sectional.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/sectional.rnc @@ -146,13 +146,13 @@ ( common.attrs & common.attrs.aria? ) - address.inner = + address.inner = ( common.inner.flow ) common.elem.flow |= address.elem # ##################################################################### -## Quotations +## Quotations ## Block Quotes:
diff --git a/xml/relaxng/resources/resources/html5-schema/html5/tables.rnc b/xml/relaxng/resources/resources/html5-schema/html5/tables.rnc index c5c62e2b6b21..f942699fd4aa 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/tables.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/tables.rnc @@ -12,7 +12,7 @@ datatypes w = "http://whattf.org/datatype-draft" # tables.data.multilen = # ( common.data.integer.positive # | common.data.percent -# | xsd:token { pattern = "[0-9]+\*" } #REVISIT should this one be string? +# | xsd:token { pattern = "[0-9]+\*" } #REVISIT should this one be string? # ) ## Table Alignment Attributes @@ -24,7 +24,7 @@ datatypes w = "http://whattf.org/datatype-draft" ) tables.attrs.align = attribute align { - ( w:string "left" + ( w:string "left" | w:string "center" | w:string "right" | w:string "justify" diff --git a/xml/relaxng/resources/resources/html5-schema/html5/web-forms-scripting.rnc b/xml/relaxng/resources/resources/html5-schema/html5/web-forms-scripting.rnc index 63fe1c4dfa6d..6beef2732e4e 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/web-forms-scripting.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/web-forms-scripting.rnc @@ -22,6 +22,6 @@ scripting.attr.form.submit = attribute onsubmit { string } scripting.attr.form.reset = - attribute onreset { string } - - + attribute onreset { string } + + diff --git a/xml/relaxng/resources/resources/html5-schema/html5/web-forms.rnc b/xml/relaxng/resources/resources/html5-schema/html5/web-forms.rnc index 60d2e4f164b3..087aedfa0981 100644 --- a/xml/relaxng/resources/resources/html5-schema/html5/web-forms.rnc +++ b/xml/relaxng/resources/resources/html5-schema/html5/web-forms.rnc @@ -10,53 +10,53 @@ datatypes w = "http://whattf.org/datatype-draft" ( common-form.attrs.name? & common-form.attrs.disabled? ) - - common-form.attrs.name = + + common-form.attrs.name = attribute name { form.data.nonemptystring } - common-form.attrs.disabled = + common-form.attrs.disabled = attribute disabled { w:string "disabled" | w:string "" } - shared-form.attrs.readonly = + shared-form.attrs.readonly = attribute readonly { w:string "readonly" | w:string "" } - shared-form.attrs.maxlength = + shared-form.attrs.maxlength = attribute maxlength { common.data.integer.non-negative } - shared-form.attrs.size = + shared-form.attrs.size = attribute size { common.data.integer.positive } - + # REVISIT tabindex goes in common.attrs ## Shared attributes for - - input.attrs.checked = + + input.attrs.checked = attribute checked { w:string "checked" | w:string "" } ## Text Field: - input.text.elem = + input.text.elem = element input { input.text.attrs } - input.text.attrs = + input.text.attrs = ( common.attrs & common-form.attrs & input.text.attrs.type? - & shared-form.attrs.maxlength? + & shared-form.attrs.maxlength? & shared-form.attrs.readonly? & shared-form.attrs.size? - & input.text.attrs.value? + & input.text.attrs.value? & ( common.attrs.aria.implicit.textbox | common.attrs.aria.role.textbox | common.attrs.aria.role.combobox @@ -64,7 +64,7 @@ datatypes w = "http://whattf.org/datatype-draft" | common.attrs.aria.role.spinbutton )? ) - input.text.attrs.type = + input.text.attrs.type = attribute type { w:string "text" } @@ -72,23 +72,23 @@ datatypes w = "http://whattf.org/datatype-draft" attribute value { form.data.stringwithoutlinebreaks } - + input.elem = input.text.elem ## Password Field: - input.password.elem = + input.password.elem = element input { input.password.attrs } - input.password.attrs = + input.password.attrs = ( common.attrs & common-form.attrs & input.password.attrs.type - & shared-form.attrs.maxlength? - & shared-form.attrs.readonly? + & shared-form.attrs.maxlength? + & shared-form.attrs.readonly? & shared-form.attrs.size? - & input.password.attrs.value? + & input.password.attrs.value? ) - input.password.attrs.type = + input.password.attrs.type = attribute type { w:string "password" } @@ -96,19 +96,19 @@ datatypes w = "http://whattf.org/datatype-draft" attribute value { form.data.stringwithoutlinebreaks } - + input.elem |= input.password.elem - + ## Checkbox: - input.checkbox.elem = + input.checkbox.elem = element input { input.checkbox.attrs } - input.checkbox.attrs = + input.checkbox.attrs = ( common.attrs & common-form.attrs & input.checkbox.attrs.type - & input.attrs.checked? - & input.checkbox.attrs.value? + & input.attrs.checked? + & input.checkbox.attrs.value? & ( common.attrs.aria.implicit.checkbox | common.attrs.aria.role.checkbox | common.attrs.aria.role.button @@ -117,7 +117,7 @@ datatypes w = "http://whattf.org/datatype-draft" | common.attrs.aria.role.switch-checked-not-required )? ) - input.checkbox.attrs.type = + input.checkbox.attrs.type = attribute type { w:string "checkbox" } @@ -125,25 +125,25 @@ datatypes w = "http://whattf.org/datatype-draft" attribute value { string #REVISIT require non-empty value? } - + input.elem |= input.checkbox.elem - + ## Radiobutton: - input.radio.elem = + input.radio.elem = element input { input.radio.attrs } - input.radio.attrs = + input.radio.attrs = ( common.attrs & common-form.attrs & input.radio.attrs.type - & input.attrs.checked? - & input.radio.attrs.value? + & input.attrs.checked? + & input.radio.attrs.value? & ( common.attrs.aria.implicit.radio | common.attrs.aria.role.radio | common.attrs.aria.role.menuitemradio-checked-not-required )? ) - input.radio.attrs.type = + input.radio.attrs.type = attribute type { w:string "radio" } @@ -151,18 +151,18 @@ datatypes w = "http://whattf.org/datatype-draft" attribute value { string #REVISIT require non-empty value? } - + input.elem |= input.radio.elem - + ## Scripting Hook Button: - input.button.elem = + input.button.elem = element input { input.button.attrs } - input.button.attrs = + input.button.attrs = ( common.attrs & common-form.attrs & input.button.attrs.type - & input.button.attrs.value? + & input.button.attrs.value? & button.attrs.popover-controls & ( common.attrs.aria.implicit.button | common.attrs.aria.role.button @@ -178,7 +178,7 @@ datatypes w = "http://whattf.org/datatype-draft" | common.attrs.aria.role.tab )? ) - input.button.attrs.type = + input.button.attrs.type = attribute type { w:string "button" } @@ -186,25 +186,25 @@ datatypes w = "http://whattf.org/datatype-draft" attribute value { string #REVISIT require non-empty value? } - + input.elem |= input.button.elem #REVISIT should this be enabled by a scripting module only? - + ## Submit Button: - input.submit.elem = + input.submit.elem = element input { input.submit.attrs } - input.submit.attrs = + input.submit.attrs = ( common.attrs & common-form.attrs & input.submit.attrs.type - & input.submit.attrs.value? + & input.submit.attrs.value? & button.attrs.popover-controls & ( common.attrs.aria.implicit.button | common.attrs.aria.role.button )? ) - input.submit.attrs.type = + input.submit.attrs.type = attribute type { w:string "submit" } @@ -212,24 +212,24 @@ datatypes w = "http://whattf.org/datatype-draft" attribute value { string #REVISIT require non-empty value? } - + input.elem |= input.submit.elem - + ## Reset Button: - input.reset.elem = + input.reset.elem = element input { input.reset.attrs } - input.reset.attrs = + input.reset.attrs = ( common.attrs & common-form.attrs & input.reset.attrs.type - & input.reset.attrs.value? + & input.reset.attrs.value? & button.attrs.popover-controls & ( common.attrs.aria.implicit.button | common.attrs.aria.role.button )? ) - input.reset.attrs.type = + input.reset.attrs.type = attribute type { w:string "reset" } @@ -237,42 +237,42 @@ datatypes w = "http://whattf.org/datatype-draft" attribute value { string #REVISIT require non-empty value? } - + input.elem |= input.reset.elem # REVISIT does reset make sense outside a form? - + ## File Upload: - input.file.elem = + input.file.elem = element input { input.file.attrs } - input.file.attrs = + input.file.attrs = ( common.attrs & common-form.attrs & input.file.attrs.type & input.file.attrs.accept? ) - input.file.attrs.type = + input.file.attrs.type = attribute type { w:string "file" } - input.file.attrs.accept = + input.file.attrs.accept = attribute accept { form.data.mimetypelist } input.elem |= input.file.elem - + ## Hidden String: - input.hidden.elem = + input.hidden.elem = element input { input.hidden.attrs } - input.hidden.attrs = + input.hidden.attrs = ( common.attrs & common-form.attrs & input.hidden.attrs.type - & input.hidden.attrs.value? + & input.hidden.attrs.value? ) - input.hidden.attrs.type = + input.hidden.attrs.type = attribute type { w:string "hidden" } @@ -280,19 +280,19 @@ datatypes w = "http://whattf.org/datatype-draft" attribute value { string } - + input.elem |= input.hidden.elem - + ## Image Submit Button: - input.image.elem = + input.image.elem = element input { input.image.attrs } - input.image.attrs = + input.image.attrs = ( common.attrs & common-form.attrs & input.image.attrs.type - & input.image.attrs.alt - & input.image.attrs.src? + & input.image.attrs.alt + & input.image.attrs.src? & button.attrs.popover-controls & ( common.attrs.aria.implicit.button | common.attrs.aria.role.button @@ -303,22 +303,22 @@ datatypes w = "http://whattf.org/datatype-draft" | common.attrs.aria.role.radio | common.attrs.aria.role.switch )? - ) - input.image.attrs.type = + ) + input.image.attrs.type = attribute type { w:string "image" } - input.image.attrs.alt = + input.image.attrs.alt = attribute alt { form.data.nonemptystring } - input.image.attrs.src = + input.image.attrs.src = attribute src { common.data.uri.non-empty } - + input.elem |= input.image.elem - + common.elem.phrasing |= input.elem ## Text Area: