begin switch to validator.nu for HTML5

ds2013
Astro 13 years ago
parent 65354129d2
commit f92bed5dbb

@ -30,8 +30,8 @@ DESTDIR?=www-export
### Ressourcen ###
# XSLT-Stylesheets:
STYLE=xsl/xhtml.xsl
DS_STYLE=xsl/datenspuren/xhtml.xsl
STYLE=xsl/html5.xsl
DS_STYLE=xsl/datenspuren/html5.xsl
# Document-Type-Definition:
DTD:=dtd/c3d2web.dtd
# XML-Katalog (Pfad zu den DTDs) - wird benötigt vom Validator
@ -72,16 +72,15 @@ SEARCH_TMPL:=build/cgi-bin/search.html
NEWSITEMS:=$(wildcard content/news/*.xml)
CLEAN=$(CONTENT) $(NEWSFILES) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DS_PAGES)
NOVALID_IGNORE:=false
NOVALID:=false
define xml_process
$(VALIDATOR) $(VFLAGS_IN) $<
$(PROCESSOR) $(PFLAGS) -o $@ $(STYLE) $<
$(VALIDATOR) $(VFLAGS_OUT) $@ || $(NOVALID_IGNORE) || \
$(NOVALID) || $(VALIDATOR) $(VFLAGS_OUT) $@ || \
{ touch -m -t 197001010000 Makefile $@ ; exit 1 ; }
endef
### Defaults ###
.PHONY: www
@ -96,34 +95,40 @@ $(DATESTAMP):
$(RM) $(wildcard build/.stamp-*)
touch $@
.PHONY: html5-validate
html5-validate: www
for file in `find $< -name *.html`; do \
curl -d @$file< -H "Content-Type: text/html; charset=UTF-8" 'http://validator.nu/?out=text&preset=http://s.validator.nu/xhtml5-aria-rdf-svg-mathml.rnc+http://s.validator.nu/html5/assertions.sch+http://c.validator.nu/all/' \
done
### Regeln für den XSLT-Prozess ###
build/%.html : VFLAGS_OUT=$(VFLAGS) --relaxng html5-syntax/html5.rng
build/%.html : NOVALID:=true
build/news.html: $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DATESTAMP)
build/news-rss.xml : STYLE=xsl/rss.xsl
build/news-rss.xml : NOVALID_IGNORE:=true
build/news-rss.xml : NOVALID:=true
build/news-rss.xml : PFLAGS+=--stringparam prefix ""
build/news-rss.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd
build/news-atom.xml : STYLE=xsl/atom.xsl
build/news-atom.xml : NOVALID_IGNORE:=true
build/news-atom.xml : NOVALID:=true
build/news-atom.xml : PFLAGS+=--stringparam prefix ""
build/news-atom.xml : VFLAGS_OUT=$(VFLAGS) --relaxng xsd/atom.rng
build/podcast.xml : STYLE=xsl/podcast.xsl
build/podcast.xml : NOVALID_IGNORE:=true
build/podcast.xml : NOVALID:=true
build/podcast.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd
build/podcast.xml: xsl/podcast.xsl # Does not work with $(STYLE) - why?
build/pentaradio.xml : STYLE=xsl/podcast.xsl
build/pentaradio.xml : NOVALID_IGNORE:=true
build/pentaradio.xml : NOVALID:=true
build/pentaradio.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd
build/pentaradio.xml : PFLAGS+=--stringparam selection pentaradio
build/pentaradio.xml: xsl/podcast.xsl # Does not work with $(STYLE) - why?
build/pentacast.xml : STYLE=xsl/podcast.xsl
build/pentacast.xml : NOVALID_IGNORE:=true
build/pentacast.xml : NOVALID:=true
build/pentacast.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd
build/pentacast.xml : PFLAGS+=--stringparam selection pentacast
build/pentacast.xml: xsl/podcast.xsl # Does not work with $(STYLE) - why?
build/pentamusic.xml : STYLE=xsl/podcast.xsl
build/pentamusic.xml : NOVALID_IGNORE:=true
build/pentamusic.xml : NOVALID:=true
build/pentamusic.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd
build/pentamusic.xml : PFLAGS+=--stringparam selection pentamusic
build/pentamusic.xml: xsl/podcast.xsl # Does not work with $(STYLE) - why?
@ -137,7 +142,7 @@ $(NEWSFILES): news.xml $(NAVIGATION) $(STYLE)
# Calendar
$(CALENDAR_SUMMARY) : STYLE=xsl/calendar-summary.xsl
$(CALENDAR_SUMMARY) : NOVALID_IGNORE:=true
$(CALENDAR_SUMMARY) : NOVALID:=true
$(CALENDAR_SUMMARY) : VFLAGS_IN=$(VFLAGS)
$(CALENDAR_SUMMARY): content/events.xml news.xml
$(call xml_process)
@ -154,7 +159,7 @@ build/xcal.xml: $(CALENDAR_SUMMARY) $(STYLE)
# iCal
build/ical.ics : STYLE=xsl/ical.xsl
build/ical.ics : NOVALID_IGNORE:=true
build/ical.ics : NOVALID:=true
build/ical.ics : VFLAGS_IN=$(VFLAGS)
build/ical.ics : VFLAGS_OUT=$(VFLAGS)
build/ical.ics: $(CALENDAR_SUMMARY) $(STYLE)
@ -162,7 +167,7 @@ build/ical.ics: $(CALENDAR_SUMMARY) $(STYLE)
# Remind
build/reminders : STYLE=xsl/remind.xsl
build/reminders : NOVALID_IGNORE:=true
build/reminders : NOVALID:=true
build/reminders : VFLAGS_IN=$(VFLAGS)
build/reminders : VFLAGS_OUT=$(VFLAGS)
build/reminders: $(CALENDAR_SUMMARY) $(STYLE)
@ -170,8 +175,8 @@ build/reminders: $(CALENDAR_SUMMARY) $(STYLE)
# Playlists
build/%.xspf : VFLAGS_OUT=$(VFLAGS) --relaxng xsd/xspf-1_0.5.rng
build/%.m3u : NOVALID_IGNORE:=true
build/%.pls : NOVALID_IGNORE:=true
build/%.m3u : NOVALID:=true
build/%.pls : NOVALID:=true
# Pages:
build/%.html: content/pages/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DATESTAMP) news.xml
@ -194,11 +199,11 @@ build/datenspuren/%.html: content/datenspuren/%.xml $(DS_STYLE) news.xml $(DS_SC
build/datenspuren/schedule.html : content/static/datenspuren/fahrplan/index.de.html
build/datenspuren/news-rss.xml : STYLE=xsl/rss.xsl
build/datenspuren/news-rss.xml : NOVALID_IGNORE:=true
build/datenspuren/news-rss.xml : NOVALID:=true
build/datenspuren/news-rss.xml : PFLAGS+=--stringparam prefix ds09-
build/datenspuren/news-rss.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd
build/datenspuren/news-atom.xml : STYLE=xsl/atom.xsl
build/datenspuren/news-atom.xml : NOVALID_IGNORE:=true
build/datenspuren/news-atom.xml : NOVALID:=true
build/datenspuren/news-atom.xml : PFLAGS+=--stringparam prefix ds09-
build/datenspuren/news-atom.xml : VFLAGS_OUT=$(VFLAGS) --relaxng xsd/atom.rng

@ -1,23 +0,0 @@
The RELAX NG Schema for (X)HTML 5 is licensed under the MIT open source license.
The following legal notice applies to all files in this directory:
Copyright (c) 2005-2007 Elika J. Etemad (fantasai) and Henri Sivonen (hsivonen)
Copyright (c) 2007-2008 Mozilla Foundation
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

@ -1,437 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0">
<!-- ##################################################################### -->
<define name="common.attrs.interact" combine="interleave">
<a:documentation> RELAX NG Schema for HTML 5: Web Application Features #</a:documentation>
<!-- ##################################################################### -->
<a:documentation>Additions to Common Attributes</a:documentation>
<interleave>
<optional>
<ref name="common.attrs.contextmenu"/>
</optional>
<optional>
<ref name="common.attrs.contenteditable"/>
</optional>
<optional>
<ref name="common.attrs.draggable"/>
</optional>
<optional>
<ref name="common.attrs.hidden"/>
</optional>
<optional>
<ref name="common.attrs.spellcheck"/>
</optional>
</interleave>
</define>
<define name="common.attrs.other" combine="interleave">
<ref name="common.attrs.interact"/>
</define>
<define name="common.attrs.contextmenu">
<a:documentation>Context Menu: contextmenu</a:documentation>
<attribute name="contextmenu">
<ref name="common.data.idref"/>
</attribute>
</define>
<define name="common.attrs.contenteditable">
<a:documentation>Editable Content: contenteditable</a:documentation>
<attribute name="contenteditable">
<choice>
<value type="string">true</value>
<value type="string">false</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="common.attrs.draggable">
<a:documentation>Draggable Element: draggable</a:documentation>
<attribute name="draggable">
<choice>
<value type="string">true</value>
<value type="string">false</value>
</choice>
</attribute>
</define>
<define name="common.attrs.hidden">
<a:documentation>Hidden Element: hidden</a:documentation>
<attribute name="hidden">
<choice>
<value type="string">hidden</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="common.attrs.spellcheck">
<a:documentation>Spellchecking and grammar checking: spellcheck</a:documentation>
<attribute name="spellcheck">
<choice>
<value type="string">true</value>
<value type="string">false</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="html.attrs.manifest">
<a:documentation>Application Cache: manifest</a:documentation>
<attribute name="manifest">
<ref name="common.data.uri"/>
</attribute>
</define>
<define name="html.attrs" combine="interleave">
<optional>
<ref name="html.attrs.manifest"/>
</optional>
</define>
<define name="progress.elem">
<a:documentation>Progess Indicator: &lt;progress&gt;</a:documentation>
<element name="progress">
<interleave>
<ref name="progress.inner"/>
<ref name="progress.attrs"/>
</interleave>
</element>
</define>
<define name="progress.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="progress.attrs.value"/>
</optional>
<optional>
<ref name="progress.attrs.max"/>
</optional>
</interleave>
</define>
<define name="progress.attrs.value">
<attribute name="value">
<ref name="common.data.float.non-negative"/>
</attribute>
</define>
<define name="progress.attrs.max">
<attribute name="max">
<ref name="common.data.float.positive"/>
</attribute>
</define>
<define name="progress.inner">
<ref name="common.inner.phrasing"/>
</define>
<!-- Cannot enforce textContent format here -->
<define name="common.elem.phrasing" combine="choice">
<ref name="progress.elem"/>
</define>
<define name="command.command.elem">
<a:documentation>Command with an associated action: &lt;command type='command'&gt;</a:documentation>
<element name="command">
<interleave>
<ref name="command.inner"/>
<ref name="command.command.attrs"/>
</interleave>
</element>
</define>
<define name="command.command.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="command.command.attrs.type"/>
</optional>
<ref name="common-command.attrs"/>
</interleave>
</define>
<define name="command.command.attrs.type">
<attribute name="type">
<value type="string">command</value>
</attribute>
</define>
<define name="command.elem">
<ref name="command.command.elem"/>
</define>
<define name="command.radio.elem">
<a:documentation>Selection of one item from a list of items: &lt;command type='radio'&gt;</a:documentation>
<element name="command">
<interleave>
<ref name="command.inner"/>
<ref name="command.radio.attrs"/>
</interleave>
</element>
</define>
<define name="command.radio.attrs">
<interleave>
<ref name="common.attrs"/>
<interleave>
<ref name="command.radio.attrs.type"/>
<ref name="command.radio.attrs.radiogroup"/>
<optional>
<!-- REVISIT taking liberties here -->
<ref name="command.radio.attrs.checked"/>
</optional>
</interleave>
<ref name="common-command.attrs"/>
</interleave>
</define>
<define name="command.radio.attrs.type">
<attribute name="type">
<value type="string">radio</value>
</attribute>
</define>
<define name="command.radio.attrs.radiogroup">
<attribute name="radiogroup">
<data type="string" datatypeLibrary=""/>
<!-- REVISIT need special format here? -->
</attribute>
</define>
<define name="command.radio.attrs.checked">
<attribute name="checked">
<choice>
<value type="string">checked</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="command.elem" combine="choice">
<ref name="command.radio.elem"/>
</define>
<define name="command.checkbox.elem">
<a:documentation>State or option that can be toggled: &lt;command type='checkbox'&gt;</a:documentation>
<element name="command">
<interleave>
<ref name="command.inner"/>
<ref name="command.checkbox.attrs"/>
</interleave>
</element>
</define>
<define name="command.checkbox.attrs">
<interleave>
<ref name="common.attrs"/>
<interleave>
<ref name="command.checkbox.attrs.type"/>
<optional>
<ref name="command.checkbox.attrs.checked"/>
</optional>
</interleave>
<ref name="common-command.attrs"/>
</interleave>
</define>
<define name="command.checkbox.attrs.type">
<attribute name="type">
<value type="string">checkbox</value>
</attribute>
</define>
<define name="command.checkbox.attrs.checked">
<attribute name="checked">
<choice>
<value type="string">checked</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="command.elem" combine="choice">
<ref name="command.checkbox.elem"/>
</define>
<define name="common-command.attrs">
<interleave>
<optional>
<ref name="command.attrs.label"/>
</optional>
<optional>
<ref name="command.attrs.icon"/>
</optional>
<optional>
<ref name="command.attrs.disabled"/>
</optional>
</interleave>
</define>
<define name="command.attrs.label">
<attribute name="label">
<data type="string" datatypeLibrary=""/>
</attribute>
</define>
<define name="command.attrs.icon">
<attribute name="icon">
<ref name="common.data.uri"/>
</attribute>
</define>
<define name="command.attrs.disabled">
<attribute name="disabled">
<choice>
<value type="string">disabled</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="command.inner">
<empty/>
</define>
<define name="common.elem.metadata" combine="choice">
<interleave>
<ref name="command.elem"/>
<ref name="nonHTMLizable"/>
</interleave>
</define>
<define name="common.elem.phrasing" combine="choice">
<ref name="command.elem"/>
</define>
<define name="menu.elem">
<a:documentation>Menu: &lt;menu&gt;</a:documentation>
<element name="menu">
<interleave>
<ref name="menu.inner"/>
<ref name="menu.attrs"/>
</interleave>
</element>
</define>
<define name="menu.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="menu.attrs.type"/>
</optional>
<optional>
<ref name="menu.attrs.label"/>
</optional>
</interleave>
</define>
<define name="menu.attrs.type">
<attribute name="type">
<choice>
<value type="string">toolbar</value>
<value type="string">context</value>
</choice>
</attribute>
</define>
<define name="menu.attrs.label">
<attribute name="label">
<data type="string" datatypeLibrary=""/>
</attribute>
</define>
<define name="menu.inner">
<choice>
<zeroOrMore>
<ref name="mli.elem"/>
</zeroOrMore>
<ref name="common.inner.flow"/>
</choice>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="menu.elem"/>
</define>
<!-- REVISIT allow nested menus -->
<define name="mli.elem">
<a:documentation>Menu Item: &lt;li&gt;</a:documentation>
<element name="li">
<interleave>
<ref name="mli.inner"/>
<ref name="mli.attrs"/>
</interleave>
</element>
</define>
<define name="mli.attrs">
<ref name="common.attrs"/>
</define>
<define name="mli.inner">
<ref name="common.inner.flow"/>
</define>
<define name="canvas.elem.flow">
<a:documentation>Canvas for Dynamic Graphics: &lt;canvas&gt;</a:documentation>
<element name="canvas">
<interleave>
<ref name="canvas.inner.flow"/>
<ref name="canvas.attrs"/>
</interleave>
</element>
</define>
<define name="canvas.elem.phrasing">
<element name="canvas">
<interleave>
<ref name="canvas.inner.phrasing"/>
<ref name="canvas.attrs"/>
</interleave>
</element>
</define>
<define name="canvas.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="canvas.attrs.height"/>
</optional>
<optional>
<ref name="canvas.attrs.width"/>
</optional>
<optional>
<ref name="common.attrs.aria"/>
</optional>
</interleave>
</define>
<define name="canvas.attrs.height">
<attribute name="height">
<ref name="common.data.integer.non-negative"/>
</attribute>
</define>
<define name="canvas.attrs.width">
<attribute name="width">
<ref name="common.data.integer.non-negative"/>
</attribute>
</define>
<define name="canvas.inner.flow">
<ref name="common.inner.flow"/>
</define>
<define name="canvas.inner.phrasing">
<ref name="common.inner.phrasing"/>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="canvas.elem.flow"/>
</define>
<define name="common.elem.phrasing" combine="choice">
<ref name="canvas.elem.phrasing"/>
</define>
<define name="details.elem">
<a:documentation>Additional On-Demand Information: &lt;details&gt;</a:documentation>
<element name="details">
<interleave>
<ref name="details.inner"/>
<ref name="details.attrs"/>
</interleave>
</element>
</define>
<define name="details.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="details.attrs.open"/>
</optional>
<optional>
<ref name="common.attrs.aria.implicit.region"/>
</optional>
</interleave>
</define>
<define name="details.attrs.open">
<attribute name="open">
<choice>
<value type="string">open</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="details.inner">
<optional>
<ref name="summary.elem"/>
</optional>
<ref name="common.inner.flow"/>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="details.elem"/>
</define>
<define name="summary.elem">
<a:documentation>Caption/summary for details element: &lt;summary&gt;</a:documentation>
<element name="summary">
<interleave>
<ref name="summary.inner"/>
<ref name="summary.attrs"/>
</interleave>
</element>
</define>
<define name="summary.attrs">
<ref name="common.attrs"/>
</define>
<define name="summary.inner">
<ref name="common.inner.phrasing"/>
</define>
</grammar>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,337 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0">
<!-- ##################################################################### -->
<define name="p.elem">
<a:documentation> RELAX NG Schema for HTML 5: Basic Prose Markup #</a:documentation>
<!-- ##################################################################### -->
<!-- ##################################################################### -->
<a:documentation>Paragraph-Level</a:documentation>
<a:documentation>Paragraph: &lt;p&gt;</a:documentation>
<element name="p">
<interleave>
<ref name="p.inner"/>
<ref name="p.attrs"/>
</interleave>
</element>
</define>
<define name="p.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="common.attrs.aria"/>
</optional>
</interleave>
</define>
<define name="p.inner">
<ref name="common.inner.phrasing"/>
</define>
<!-- REVISIT lists in span? -->
<define name="common.elem.flow" combine="choice">
<ref name="p.elem"/>
</define>
<define name="hr.elem">
<a:documentation>Hint Transition: &lt;hr&gt;</a:documentation>
<element name="hr">
<interleave>
<ref name="hr.inner"/>
<ref name="hr.attrs"/>
</interleave>
</element>
</define>
<define name="hr.attrs">
<ref name="common.attrs"/>
</define>
<define name="hr.inner">
<empty/>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="hr.elem"/>
</define>
<!-- ##################################################################### -->
<define name="pre.elem">
<a:documentation>Preformatting Blocks</a:documentation>
<a:documentation>Preformatted Text: &lt;pre&gt;</a:documentation>
<element name="pre">
<interleave>
<ref name="pre.inner"/>
<ref name="pre.attrs"/>
</interleave>
</element>
</define>
<define name="pre.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="common.attrs.aria"/>
</optional>
</interleave>
</define>
<define name="pre.inner">
<ref name="common.inner.phrasing"/>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="pre.elem"/>
</define>
<!-- ##################################################################### -->
<define name="ul.elem">
<a:documentation>Simple Lists</a:documentation>
<a:documentation>Unordered List: &lt;ul&gt;</a:documentation>
<element name="ul">
<interleave>
<ref name="ul.inner"/>
<ref name="ul.attrs"/>
</interleave>
</element>
</define>
<define name="ul.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<choice>
<ref name="common.attrs.aria"/>
<ref name="common.attrs.aria.implicit.region"/>
</choice>
</optional>
</interleave>
</define>
<define name="ul.inner">
<zeroOrMore>
<ref name="li.elem"/>
</zeroOrMore>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="ul.elem"/>
</define>
<define name="li.elem">
<a:documentation>Unordered List Item: &lt;li&gt;</a:documentation>
<element name="li">
<interleave>
<ref name="li.inner"/>
<ref name="li.attrs"/>
</interleave>
</element>
</define>
<define name="li.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<choice>
<ref name="common.attrs.aria"/>
<ref name="common.attrs.aria.implicit.listitem"/>
</choice>
</optional>
</interleave>
</define>
<define name="li.inner">
<ref name="common.inner.flow"/>
</define>
<define name="ol.elem">
<a:documentation>Ordered List: &lt;ol&gt;</a:documentation>
<element name="ol">
<interleave>
<ref name="ol.inner"/>
<ref name="ol.attrs"/>
</interleave>
</element>
</define>
<define name="ol.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="ol.attrs.start"/>
</optional>
<optional>
<ref name="ol.attrs.reversed"/>
</optional>
<optional>
<choice>
<ref name="common.attrs.aria"/>
<ref name="common.attrs.aria.implicit.region"/>
</choice>
</optional>
</interleave>
</define>
<define name="ol.attrs.start">
<attribute name="start">
<ref name="common.data.integer"/>
</attribute>
</define>
<define name="ol.attrs.reversed">
<attribute name="reversed">
<choice>
<value type="string">reversed</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="ol.inner">
<zeroOrMore>
<ref name="oli.elem"/>
</zeroOrMore>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="ol.elem"/>
</define>
<define name="oli.elem">
<a:documentation>Ordered List Item: &lt;li&gt;</a:documentation>
<element name="li">
<interleave>
<ref name="oli.inner"/>
<ref name="oli.attrs"/>
</interleave>
</element>
</define>
<define name="oli.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="oli.attrs.value"/>
</optional>
<optional>
<choice>
<ref name="common.attrs.aria"/>
<ref name="common.attrs.aria.implicit.listitem"/>
</choice>
</optional>
</interleave>
</define>
<define name="oli.attrs.value">
<attribute name="value">
<ref name="common.data.integer"/>
</attribute>
</define>
<define name="oli.inner">
<ref name="common.inner.flow"/>
</define>
<!-- ##################################################################### -->
<define name="dl.elem">
<a:documentation>Definition Lists</a:documentation>
<a:documentation>Definition List: &lt;dl&gt;</a:documentation>
<element name="dl">
<interleave>
<ref name="dl.inner"/>
<ref name="dl.attrs"/>
</interleave>
</element>
</define>
<define name="dl.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="common.attrs.aria"/>
</optional>
</interleave>
</define>
<define name="dl.inner">
<zeroOrMore>
<oneOrMore>
<ref name="dt.elem"/>
</oneOrMore>
<oneOrMore>
<ref name="dd.elem"/>
</oneOrMore>
</zeroOrMore>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="dl.elem"/>
</define>
<define name="dt.elem">
<a:documentation>Definition Term: &lt;dt&gt;</a:documentation>
<element name="dt">
<interleave>
<ref name="dt.inner"/>
<ref name="dt.attrs"/>
</interleave>
</element>
</define>
<define name="dt.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="common.attrs.aria"/>
</optional>
</interleave>
</define>
<define name="dt.inner">
<ref name="common.inner.phrasing"/>
</define>
<define name="dd.elem">
<a:documentation>Definition Description: &lt;dd&gt;</a:documentation>
<element name="dd">
<interleave>
<ref name="dd.inner"/>
<ref name="dd.attrs"/>
</interleave>
</element>
</define>
<define name="dd.elem.phrasing">
<element name="dd">
<interleave>
<ref name="dd.inner.phrasing"/>
<ref name="dd.attrs"/>
</interleave>
</element>
</define>
<define name="dd.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="common.attrs.aria"/>
</optional>
</interleave>
</define>
<define name="dd.inner">
<ref name="common.inner.flow"/>
</define>
<define name="dd.inner.phrasing">
<ref name="common.inner.phrasing"/>
</define>
<!-- ##################################################################### -->
<define name="div.elem">
<a:documentation>Miscellaneous Elements</a:documentation>
<a:documentation>Generic Container: &lt;div&gt;</a:documentation>
<element name="div">
<interleave>
<ref name="div.inner"/>
<ref name="div.attrs"/>
</interleave>
</element>
</define>
<define name="div.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="common.attrs.aria"/>
</optional>
</interleave>
</define>
<define name="div.inner">
<zeroOrMore>
<ref name="style.elem.scoped"/>
</zeroOrMore>
<ref name="common.inner.flow"/>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="div.elem"/>
</define>
<define name="legend.elem">
<a:documentation>Title or Explanatory Caption: &lt;legend&gt;</a:documentation>
<element name="legend">
<interleave>
<ref name="legend.inner"/>
<ref name="legend.attrs"/>
</interleave>
</element>
</define>
<define name="legend.attrs">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="common.attrs.aria.implicit.region"/>
</optional>
</interleave>
</define>
<define name="legend.inner">
<ref name="common.inner.phrasing"/>
</define>
</grammar>

@ -1,536 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<!-- ##################################################################### -->
<define name="XMLonly">
<a:documentation> RELAX NG Schema for HTML 5: Common Definitions #</a:documentation>
<!-- ##################################################################### -->
<!-- ##################################################################### -->
<a:documentation> Language Parameters - redefine in inclusion block as necessary #</a:documentation>
<!-- ##################################################################### -->
<a:documentation>HTML vs. XHTML restrictions</a:documentation>
<empty/>
</define>
<define name="HTMLonly">
<notAllowed/>
</define>
<!--
(This only affects mixed-version modules; wholly HTML5
modules should simply be left out of the inclusion list.)
-->
<define name="v5only">
<a:documentation>HTML 4 Compatibility - set to notAllowed to disallow markup introduced in HTML 5</a:documentation>
<empty/>
</define>
<!-- (xml:base on elements other than <html>) -->
<define name="nonRoundtrippable">
<a:documentation>HTML Compatibility Switches - set to notAllowed to disallow</a:documentation>
<a:documentation>XML features that can't be roundtripped HTML &lt;-&gt; XHTML</a:documentation>
<empty/>
</define>
<define name="nonHTMLizable">
<a:documentation>XML features that can't be serialized as HTML</a:documentation>
<empty/>
</define>
<!-- ##################################################################### -->
<define name="common.attr.anything">
<a:documentation> Wildcards #</a:documentation>
<!-- ##################################################################### -->
<a:documentation>Any attribute from any namespace</a:documentation>
<zeroOrMore>
<attribute>
<anyName/>
</attribute>
</zeroOrMore>
</define>
<define name="common.elem.anything">
<a:documentation>Any element from any namespace</a:documentation>
<element>
<anyName/>
<interleave>
<ref name="common.inner.anything"/>
<ref name="common.attr.anything"/>
</interleave>
</element>
</define>
<define name="common.inner.anything">
<a:documentation>Any content from any namespace</a:documentation>
<interleave>
<text/>
<zeroOrMore>
<ref name="common.elem.anything"/>
</zeroOrMore>
</interleave>
</define>
<!-- ##################################################################### -->
<define name="common.elem.metadata">
<a:documentation> Common Element Classes #</a:documentation>
<!-- ##################################################################### -->
<a:documentation>Metadata Elements</a:documentation>
<notAllowed/>
</define>
<define name="common.elem.phrasing">
<a:documentation>Phrase Elements</a:documentation>
<notAllowed/>
</define>
<define name="common.elem.flow">
<a:documentation>Prose Elements</a:documentation>
<ref name="common.elem.phrasing"/>
</define>
<!-- ##################################################################### -->
<define name="common.inner.metadata">
<a:documentation> Common Content Models #</a:documentation>
<!-- ##################################################################### -->
<a:documentation>Metadata Content</a:documentation>
<zeroOrMore>
<ref name="common.elem.metadata"/>
</zeroOrMore>
</define>
<define name="common.inner.phrasing">
<a:documentation>Phrase Content</a:documentation>
<interleave>
<text/>
<zeroOrMore>
<ref name="common.elem.phrasing"/>
</zeroOrMore>
</interleave>
</define>
<define name="common.inner.flow">
<a:documentation>Prose Content</a:documentation>
<interleave>
<text/>
<zeroOrMore>
<ref name="common.elem.flow"/>
</zeroOrMore>
</interleave>
</define>
<!-- REVISIT <style scoped> -->
<!-- ##################################################################### -->
<!-- ##################################################################### -->
<!-- When updating, check <bdo> definition too -->
<define name="common.attrs">
<a:documentation> Common Attributes #</a:documentation>
<interleave>
<ref name="common.attrs.basic"/>
<ref name="common.attrs.i18n"/>
<ref name="common.attrs.present"/>
<ref name="common.attrs.other"/>
</interleave>
</define>
<define name="common.attrs.basic">
<interleave>
<optional>
<choice>
<ref name="common.attrs.id"/>
<ref name="common.attrs.xml-id"/>
</choice>
</optional>
<optional>
<!-- REVISIT assuming only either one is allowed -->
<ref name="common.attrs.class"/>
</optional>
<optional>
<ref name="common.attrs.title"/>
</optional>
<optional>
<ref name="common.attrs.base"/>
</optional>
<optional>
<ref name="common.attrs.space"/>
</optional>
</interleave>
</define>
<define name="common.attrs.id">
<attribute name="id">
<ref name="common.data.id"/>
</attribute>
</define>
<define name="common.attrs.xml-id">
<interleave>
<attribute name="xml:id">
<data type="NCName"/>
</attribute>
<ref name="XMLonly"/>
</interleave>
</define>
<define name="common.attrs.class">
<attribute name="class">
<ref name="common.data.tokens"/>
</attribute>
</define>
<define name="common.attrs.title">
<attribute name="title"/>
</define>
<define name="common.attrs.base">
<interleave>
<ref name="common.attrs.xmlbase"/>
<ref name="nonRoundtrippable"/>
</interleave>
</define>
<define name="common.attrs.xmlbase">
<interleave>
<attribute name="xml:base">
<ref name="common.data.uri"/>
</attribute>
<ref name="XMLonly"/>
</interleave>
</define>
<define name="common.attrs.space">
<ref name="common.attrs.xmlspace"/>
</define>
<define name="common.attrs.xmlspace">
<interleave>
<attribute name="xml:space">
<value type="string" datatypeLibrary="">preserve</value>
<!-- REVISIT this is not allowed per spec -->
</attribute>
<ref name="XMLonly"/>
</interleave>
</define>
<define name="common.attrs.i18n">
<interleave>
<optional>
<ref name="common.attrs.dir"/>
</optional>
<optional>
<ref name="common.attrs.language"/>
</optional>
</interleave>
</define>
<define name="common.attrs.dir">
<attribute name="dir">
<choice>
<value type="string">ltr</value>
<value type="string">rtl</value>
</choice>
</attribute>
</define>
<!--
This lang definition is a hack for enviroments where
the HTML5 parser maps lang to xml:lang.
Sameness check left to Schematron
-->
<define name="common.attrs.language">
<interleave>
<optional>
<ref name="common.attrs.xmllang"/>
</optional>
<optional>
<ref name="common.attrs.lang"/>
</optional>
</interleave>
</define>
<define name="common.attrs.lang">
<interleave>
<attribute name="lang">
<ref name="common.data.langcode"/>
</attribute>
<ref name="XMLonly"/>
</interleave>
</define>
<define name="common.attrs.xmllang">
<attribute name="xml:lang">
<ref name="common.data.langcode"/>
</attribute>
</define>
<!--
common.attrs.language =
( common.attrs.lang
| common.attrs.xmllang
)
common.attrs.lang =
attribute lang {
common.data.langcode
} & HTMLonly
common.attrs.xmllang =
attribute xml:lang {
common.data.langcode
} & XMLonly
-->
<define name="common.attrs.present">
<interleave>
<optional>
<ref name="common.attrs.style"/>
</optional>
<optional>
<ref name="common.attrs.tabindex"/>
</optional>
<optional>
<ref name="common.attrs.accesskey"/>
</optional>
</interleave>
</define>
<define name="common.attrs.style">
<attribute name="style">
<data type="string" datatypeLibrary=""/>
</attribute>
</define>
<define name="common.attrs.tabindex">
<attribute name="tabindex">
<ref name="common.data.integer"/>
</attribute>
</define>
<!-- REVISIT move style to a module and bundle tabindex with ARIA -->
<define name="common.attrs.accesskey">
<attribute name="accesskey">
<ref name="common.data.keylabellist"/>
</attribute>
</define>
<define name="common.attrs.other">
<empty/>
</define>
<!-- ##################################################################### -->
<define name="common.data.tokens">
<a:documentation> Common Datatypes #</a:documentation>
<!-- ##################################################################### -->
<a:documentation>Names and Tokens</a:documentation>
<list>
<zeroOrMore>
<data type="token" datatypeLibrary=""/>
</zeroOrMore>
</list>
</define>
<define name="common.data.browsing-context">
<data type="string"/>
</define>
<define name="common.data.browsing-context-or-keyword">
<data type="string"/>
</define>
<!--
xsd:string {
pattern = "()|([^_].*)|(_[bB][lL][aA][nN][kK])|(_[sS][eE][lL][fF])|(_[pP][aA][rR][eE][nN][tT])|(_[tT][oO][pP])"
}
-->
<define name="common.data.id">
<a:documentation>IDs and IDREFs</a:documentation>
<data type="ID"/>
</define>
<!--
xsd:string {
pattern = "\S+"
}
-->
<define name="common.data.idref">
<data type="IDREF"/>
</define>
<define name="common.data.idrefs">
<data type="IDREFS"/>
</define>
<define name="common.data.name">
<data type="ID"/>
</define>
<!-- FIXME -->
<define name="common.data.hash-name">
<data type="string"/>
</define>
<!--
xsd:string {
pattern = "#.+"
}
-->
<define name="common.data.integer">
<a:documentation>Numerical</a:documentation>
<data type="integer"/>
</define>
<!--
xsd:string {
pattern = "-?[0-9]+"
}
-->
<define name="common.data.integer.positive">
<data type="positiveInteger"/>
</define>
<!--
xsd:string {
pattern = "0*[1-9][0-9]*"
}
-->
<define name="common.data.integer.non-negative">
<data type="nonNegativeInteger"/>
</define>
<!--
xsd:string {
pattern = "[0-9]+"
}
-->
<!--
common.data.percent =
xsd:string {
pattern = "(100)|([1-9]?[0-9](\.[0-9]+)?)%"
}
-->
<define name="common.data.float">
<data type="float"/>
</define>
<!--
xsd:string {
pattern = "-?[0-9]+(\.[0-9]+)?([eE]-?[0-9]+)?"
}
-->
<define name="common.data.float.positive">
<data type="float"/>
</define>
<!--
xsd:string {
pattern = "(0*[1-9][0-9]*(\.[0-9]+)?)|([0-9]+(\.0*[1-9][0-9]*)?)([eE]-?[0-9]+)?"
}
-->
<define name="common.data.float.non-negative">
<data type="float"/>
</define>
<!--
xsd:string {
pattern = "[0-9]+(\.[0-9]+)?([eE]-?[0-9]+)?"
}
-->
<define name="common.data.datetime">
<a:documentation>Temporal</a:documentation>
<data type="dateTime"/>
</define>
<define name="common.data.date-or-time">
<data type="date"/>
</define>
<define name="common.data.uri">
<a:documentation>IRIs</a:documentation>
<choice>
<value type="string"/>
<data type="anyURI"/>
</choice>
</define>
<define name="common.data.uris">
<list>
<zeroOrMore>
<data type="anyURI"/>
</zeroOrMore>
</list>
</define>
<define name="common.data.uri.absolute">
<data type="anyURI"/>
</define>
<define name="common.data.sizes">
<a:documentation>&lt;link type='icon'&gt; sizes</a:documentation>
<!-- list { w:sizes } -->
<list>
<oneOrMore>
<data type="string">
<param name="pattern">[1-9][0-9]*x[1-9][0-9]*</param>
</data>
</oneOrMore>
</list>
</define>
<define name="common.data.mimetype">
<a:documentation>MIME types</a:documentation>
<data type="string"/>
</define>
<define name="common.data.charset">
<a:documentation>Encodings</a:documentation>
<data type="string"/>
</define>
<define name="common.data.meta-charset">
<data type="string"/>
</define>
<define name="common.data.refresh">
<a:documentation>Refresh</a:documentation>
<data type="string"/>
</define>
<define name="common.data.default-style">
<a:documentation>Default style</a:documentation>
<data type="string" datatypeLibrary=""/>
</define>
<!-- w:default-style -->
<define name="common.data.mediaquery">
<a:documentation>Media Queries</a:documentation>
<data type="string"/>
</define>
<define name="common.data.langcode">
<a:documentation>Language Codes</a:documentation>
<choice>
<value type="string"/>
<data type="language"/>
</choice>
</define>
<define name="common.data.keylabellist">
<a:documentation>List of Key Labels</a:documentation>
<data type="anyType"/>
</define>
<define name="common.data.microdata-identifier">
<a:documentation>Microdata Identifier</a:documentation>
<data type="string"/>
</define>
<define name="common.data.zero">
<a:documentation>Zero</a:documentation>
<data type="anyType"/>
</define>
<!-- ##################################################################### -->
<!-- ##################################################################### -->
<define name="common-form.attrs.form">
<a:documentation> WF2 Module Hook #</a:documentation>
<notAllowed/>
</define>
<!-- ##################################################################### -->
<!-- ##################################################################### -->
<define name="common.attrs.aria">
<a:documentation> ARIA Module Hooks #</a:documentation>
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.button">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.input">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.region">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.group">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.th">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.structure">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.link">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.listitem">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.img">
<notAllowed/>
</define>
<define name="common.attrs.aria.implicit.select">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.application">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.banner">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.complementary">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.contentinfo">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.main">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.navigation">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.search">
<notAllowed/>
</define>
<!-- per ARIA spec: article, document, and note are not actually landmarks -->
<define name="common.attrs.aria.landmark.article">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.document">
<notAllowed/>
</define>
<define name="common.attrs.aria.landmark.note">
<notAllowed/>
</define>
</grammar>

@ -1,687 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0">
<!-- ##################################################################### -->
<define name="script.elem.embedded">
<a:documentation> RELAX NG Schema for HTML 5: Core Scripting #</a:documentation>
<!-- ##################################################################### -->
<!-- ##################################################################### -->
<a:documentation>Scripting Elements</a:documentation>
<a:documentation>Inline Scripts: &lt;script&gt;</a:documentation>
<element name="script">
<interleave>
<ref name="script.inner.embedded"/>
<ref name="script.attrs.embedded"/>
</interleave>
</element>
</define>
<define name="script.attrs.embedded">
<interleave>
<ref name="common.attrs"/>
<optional>
<ref name="script.attrs.type"/>
</optional>
<optional>
<ref name="script.attrs.language"/>
</optional>
</interleave>
<!-- restricted in Schematron -->
</define>
<define name="script.elem.imported">
<element name="script">
<interleave>
<ref name="script.inner.imported"/>
<ref name="script.attrs.imported"/>
</interleave>
</element>
</define>
<define name="script.attrs.imported">
<interleave>
<ref name="common.attrs"/>
<ref name="script.attrs.src"/>
<optional>
<ref name="script.attrs.defer"/>
</optional>
<optional>
<ref name="script.attrs.async"/>
</optional>
<optional>
<ref name="script.attrs.type"/>
</optional>
<optional>
<ref name="script.attrs.charset"/>
</optional>
<optional>
<ref name="script.attrs.language"/>
</optional>
</interleave>
<!-- restricted in Schematron -->
</define>
<define name="script.attrs.src">
<attribute name="src">
<ref name="common.data.uri"/>
</attribute>
</define>
<define name="script.attrs.defer">
<attribute name="defer">
<choice>
<value type="string">defer</value>
<value type="string"/>
</choice>
</attribute>
</define>
<define name="script.attrs.async">
<interleave>
<attribute name="async">
<choice>
<value type="string">async</value>
<value type="string"/>
</choice>
</attribute>
<ref name="v5only"/>
</interleave>
</define>
<define name="script.attrs.type">
<attribute name="type">
<ref name="common.data.mimetype"/>
<!-- XXX without charset parameter! -->
</attribute>
</define>
<define name="script.attrs.charset">
<attribute name="charset">
<ref name="common.data.charset"/>
</attribute>
</define>
<define name="script.attrs.language">
<attribute name="language">
<data type="string" datatypeLibrary=""/>
</attribute>
</define>
<define name="script.inner.embedded">
<ref name="common.inner.anything"/>
</define>
<define name="script.inner.imported">
<ref name="common.inner.anything"/>
</define>
<define name="script.elem">
<choice>
<ref name="script.elem.embedded"/>
<ref name="script.elem.imported"/>
</choice>
</define>
<define name="common.elem.metadata" combine="choice">
<ref name="script.elem"/>
</define>
<define name="common.elem.phrasing" combine="choice">
<ref name="script.elem"/>
</define>
<define name="noscript.elem.head">
<a:documentation>Fallback Unscripted Content: &lt;noscript&gt;</a:documentation>
<interleave>
<element name="noscript">
<interleave>
<ref name="noscript.inner.head"/>
<ref name="noscript.attrs"/>
</interleave>
</element>
<ref name="HTMLonly"/>
</interleave>
</define>
<define name="noscript.inner.head">
<zeroOrMore>
<choice>
<ref name="link.elem"/>
<ref name="meta.http-equiv.default-style.elem"/>
<ref name="meta.http-equiv.refresh.elem"/>
<ref name="style.elem"/>
</choice>
</zeroOrMore>
</define>
<define name="noscript.elem.phrasing">
<interleave>
<element name="noscript">
<interleave>
<ref name="noscript.inner.phrasing"/>
<ref name="noscript.attrs"/>
</interleave>
</element>
<ref name="HTMLonly"/>
</interleave>
</define>
<define name="noscript.inner.phrasing">
<ref name="common.inner.phrasing"/>
</define>
<define name="noscript.elem.flow">
<interleave>
<element name="noscript">
<interleave>
<ref name="noscript.inner.flow"/>
<ref name="noscript.attrs"/>
</interleave>
</element>
<ref name="HTMLonly"/>
</interleave>
</define>
<define name="noscript.inner.flow">
<ref name="common.inner.flow"/>
</define>
<define name="noscript.attrs">
<ref name="common.attrs"/>
</define>
<define name="common.elem.metadata" combine="choice">
<ref name="noscript.elem.head"/>
</define>
<define name="common.elem.phrasing" combine="choice">
<ref name="noscript.elem.phrasing"/>
</define>
<define name="common.elem.flow" combine="choice">
<ref name="noscript.elem.flow"/>
</define>
<!-- ##################################################################### -->
<define name="common.attrs.scripting" combine="interleave">
<a:documentation>Event Handler Attribute Definitions</a:documentation>
<interleave>
<optional>
<ref name="scripting.attr.onabort"/>
</optional>
<optional>
<ref name="scripting.attr.onblur"/>
</optional>
<optional>
<ref name="scripting.attr.oncanplay"/>
</optional>
<optional>
<ref name="scripting.attr.oncanplaythrough"/>
</optional>
<optional>
<ref name="scripting.attr.onchange"/>
</optional>
<optional>
<ref name="scripting.attr.onclick"/>
</optional>
<optional>
<ref name="scripting.attr.oncontextmenu"/>
</optional>
<optional>
<ref name="scripting.attr.ondblclick"/>
</optional>
<optional>
<ref name="scripting.attr.ondrag"/>
</optional>
<optional>
<ref name="scripting.attr.ondragend"/>
</optional>
<optional>
<ref name="scripting.attr.ondragenter"/>
</optional>
<optional>
<ref name="scripting.attr.ondragleave"/>
</optional>
<optional>
<ref name="scripting.attr.ondragover"/>
</optional>
<optional>
<ref name="scripting.attr.ondragstart"/>
</optional>
<optional>
<ref name="scripting.attr.ondrop"/>
</optional>
<optional>
<ref name="scripting.attr.ondurationchange"/>
</optional>
<optional>
<ref name="scripting.attr.onemptied"/>
</optional>
<optional>
<ref name="scripting.attr.onended"/>
</optional>
<optional>
<ref name="scripting.attr.onerror"/>
</optional>
<optional>
<ref name="scripting.attr.onfocus"/>
</optional>
<optional>
<ref name="scripting.attr.onformchange"/>
</optional>
<optional>
<ref name="scripting.attr.onforminput"/>
</optional>
<optional>
<ref name="scripting.attr.oninput"/>
</optional>
<optional>
<ref name="scripting.attr.oninvalid"/>
</optional>
<optional>
<ref name="scripting.attr.onkeydown"/>
</optional>
<optional>
<ref name="scripting.attr.onkeypress"/>
</optional>
<optional>
<ref name="scripting.attr.onkeyup"/>
</optional>
<optional>
<ref name="scripting.attr.onload"/>
</optional>
<optional>
<ref name="scripting.attr.onloadeddata"/>
</optional>
<optional>
<ref name="scripting.attr.onloadedmetadata"/>
</optional>
<optional>
<ref name="scripting.attr.onloadstart"/>
</optional>
<optional>
<ref name="scripting.attr.onmousedown"/>
</optional>
<optional>
<ref name="scripting.attr.onmousemove"/>
</optional>
<optional>
<ref name="scripting.attr.onmouseout"/>
</optional>
<optional>
<ref name="scripting.attr.onmouseover"/>
</optional>
<optional>
<ref name="scripting.attr.onmouseup"/>
</optional>
<optional>
<ref name="scripting.attr.onmousewheel"/>
</optional>
<optional>
<ref name="scripting.attr.onpause"/>
</optional>