1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 <!-- Defines the xhtml produced by enkel.xhtml.formgen. -->
5 <grammar xmlns=
"http://relaxng.org/ns/structure/1.0"
6 ns=
"http://www.w3.org/1999/xhtml">
8 <define name=
"common-field-attr">
9 <attribute name=
"name">
16 <attribute name=
"disabled">
17 <value>disabled
</value>
22 <define name=
"fields">
25 <attribute name=
"class">
28 <element name=
"label">
29 <attribute name=
"for">
35 <element name=
"input">
38 <attribute name=
"type">
41 <attribute name=
"value">
45 <attribute name=
"maxlength">
51 <attribute name=
"type">
52 <value>checkbox
</value>
54 <attribute name=
"value">
58 <attribute name=
"checked">
59 <value>checked
</value>
64 <ref name=
"common-field-attr"/>
66 <element name=
"textarea">
67 <attribute name=
"cols">
70 <attribute name=
"rows">
73 <ref name=
"common-field-attr"/>
75 <element name=
"select">
76 <attribute name=
"size">
80 <attribute name=
"multiple">
81 <value>multiple
</value>
84 <ref name=
"common-field-attr"/>
86 <element name=
"option">
87 <attribute name=
"value">
91 <attribute name=
"selected">
92 <value>selected
</value>
100 <element name=
"div"> <!-- help -->
101 <attribute name=
"class">
107 <element name=
"div"> <!-- error -->
108 <attribute name=
"class">
119 <define name=
"hidden-elements">
122 <element name=
"input">
123 <attribute name=
"type">
124 <value>hidden
</value>
126 <attribute name=
"name">
129 <attribute name=
"value">
134 <!-- This will only appear once at the bottom of the form,
135 but I could not manage to express that in relax-ng. -->
136 <element name=
"input">
137 <attribute name=
"type">
138 <value>submit
</value>
140 <attribute name=
"value">
150 <element name=
"form">
151 <attribute name=
"action">
154 <attribute name=
"method">
158 <attribute name=
"enctype">
163 <attribute name=
"id">
169 <element name=
"fielset">
170 <element name=
"legend">
174 <ref name=
"hidden-elements"/>
178 <ref name=
"hidden-elements"/>