diff options
author | Mark A. Hershberger <mah@everybody.org> | 2007-11-23 06:58:00 +0000 |
---|---|---|
committer | Mark A. Hershberger <mah@everybody.org> | 2007-11-23 06:58:00 +0000 |
commit | 8cd39fb3c4cf47d2464f00eaa69c587e17dd11cc (patch) | |
tree | 7bcd47a7dcbbad100dd3e8f8a7e08b48353c58a8 /etc/schema/xhtml-form.rnc | |
parent | f7cf8b2009b0bc2526d50c3455f737a543122dd4 (diff) | |
download | emacs-8cd39fb3c4cf47d2464f00eaa69c587e17dd11cc.tar.gz emacs-8cd39fb3c4cf47d2464f00eaa69c587e17dd11cc.tar.bz2 emacs-8cd39fb3c4cf47d2464f00eaa69c587e17dd11cc.zip |
Initial merge of nxml
Diffstat (limited to 'etc/schema/xhtml-form.rnc')
-rw-r--r-- | etc/schema/xhtml-form.rnc | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/etc/schema/xhtml-form.rnc b/etc/schema/xhtml-form.rnc new file mode 100644 index 00000000000..f5544190b01 --- /dev/null +++ b/etc/schema/xhtml-form.rnc @@ -0,0 +1,49 @@ +# Forms Module + +# Unlike the DTD implementation, this builds on the basic-form module + +include "xhtml-basic-form.rnc" { + select = element select { select.attlist, (option | optgroup)+ } +} +form.attlist &= + attribute accept-charset { Charsets.datatype }?, + attribute accept { ContentTypes.datatype }? +input.attlist &= + attribute disabled { "disabled" }?, + attribute readonly { "readonly" }?, + attribute alt { text }?, + attribute tabindex { Number.datatype }?, + attribute accept { ContentTypes.datatype }? +InputType.class |= "image" | "button" +select.attlist &= + attribute disabled { "disabled" }?, + attribute tabindex { Number.datatype }? +option.attlist &= + attribute disabled { "disabled" }?, + attribute label { Text.datatype }? +optgroup = element optgroup { optgroup.attlist, option+ } +optgroup.attlist = + Common.attrib, + attribute disabled { "disabled" }?, + attribute label { Text.datatype } +textarea.attlist &= + attribute disabled { "disabled" }?, + attribute readonly { "readonly" }?, + attribute tabindex { Number.datatype }? +fieldset = element fieldset { fieldset.attlist, legend, Flow.model } +fieldset.attlist = Common.attrib +button = element button { button.attlist, Flow.model } +button.attlist = + Common.attrib, + attribute name { text }?, + attribute value { text }?, + attribute type { "button" | "submit" | "reset" }?, + attribute disabled { "disabled" }?, + attribute tabindex { Number.datatype }?, + attribute accesskey { Character.datatype }? +legend = element legend { legend.attlist, Inline.model } +legend.attlist = + Common.attrib, + attribute accesskey { Character.datatype }? +Form.class |= fieldset +Formctrl.class |= button |