Browse Source

Merge commit 'refs/pull/613/head' of https://github.com/xsf/xeps

Jonas Wielicki 1 year ago
parent
commit
af2ad7fe4f
1 changed files with 7 additions and 4 deletions
  1. 7
    4
      xep-0122.xml

+ 7
- 4
xep-0122.xml View File

@@ -26,6 +26,12 @@
26 26
   <registry/>
27 27
   &linuxwolf;
28 28
   <revision>
29
+    <version>1.0.2</version>
30
+    <date>2018-03-21</date>
31
+    <initials>fs</initials>
32
+    <remark>Remove text about element emptiness.</remark>
33
+  </revision>
34
+ <revision>
29 35
     <version>1.0.1</version>
30 36
     <date>2018-03-05</date>
31 37
     <initials>fs</initials>
@@ -142,7 +148,6 @@
142 148
 </field>
143 149
 ]]></example>
144 150
       <p>Using &lt;basic/&gt; validation, the form interpreter MUST follow the validation rules of the datatype (if understood) and the field type.</p>
145
-      <p>The &lt;basic/&gt; element MUST be empty (i.e., not contain any character data or child elements) and MUST NOT possess any attributes.</p>
146 151
     </section3>
147 152
     <section3 topic='&lt;open/&gt; Validation' anchor='usercases-validation.open'>
148 153
       <p>For "list-single" or "list-multi", to indicate that the user may enter a custom value (matching the datatype constraints) or choose from the predefined values, the &lt;validate/&gt; element shall contain an &lt;open/&gt; child element:</p>
@@ -160,7 +165,6 @@
160 165
 </field>
161 166
 ]]></example>
162 167
       <p>The &lt;open/&gt; validation method applies to "text-multi" differently; it hints that each value for a "text-multi" field shall be validated separately. This effectively turns "text-multi" fields into an open-ended "list-multi", with no options and all values automatically selected.</p>
163
-      <p>The &lt;open/&gt; element MUST be empty (i.e., not contain any character data or child elements) and MUST NOT possess any attributes.</p>
164 168
     </section3>
165 169
     <section3 topic='&lt;range/&gt; Validation' anchor='usercases-validation.range'>
166 170
       <p>To indicate that the value should fall within a certain range, the &lt;validate/&gt; element shall contain a &lt;range/&gt; child element:</p>
@@ -178,7 +182,6 @@
178 182
       <p>The 'max' attribute specifies the maximum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.</p>
179 183
       <p>The 'min' attribute specifies the minimum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.</p>
180 184
       <p>The &lt;range/&gt; element SHOULD possess either a 'min' or 'max' attribute, and MAY possess both. If neither attribute is included, the processor MUST assume that there are no range constraints.</p>
181
-      <p>The &lt;range/&gt; element MUST be empty (i.e., not contain any character data or child elements).</p>
182 185
     </section3>
183 186
     <section3 topic='&lt;regex/&gt; Validation' anchor='usercases-validatoin.regex'>
184 187
       <p>To indicate that the value should be restricted to a regular expression, the &lt;validate/&gt; element shall contain a &lt;regex/&gt; child element:</p>
@@ -192,7 +195,7 @@
192 195
 </field>
193 196
 ]]></example>
194 197
       <p>The XML character data of this element is the pattern to apply. The syntax of this content MUST be that defined for POSIX extended regular expressions<note>The "best" definition of this syntax can be found in the <link url='http://www.gsp.com/cgi-bin/man.cgi?section=7&amp;topic=re_format'>re_format(7) man page</link></note>, including support for Unicode<note>Guidelines for adapting regular expressions to support Unicode is defined at <link url='http://www.unicode.org/reports/tr18/'>http://www.unicode.org/reports/tr18/</link></note>.</p>
195
-      <p>The &lt;regex/&gt; element MUST contain character data only (i.e., not contain any child elements) and MUST NOT possess any attributes.</p>
198
+      <p>The &lt;regex/&gt; element MUST contain character data only.</p>
196 199
     </section3>
197 200
   </section2>
198 201
   <section2 topic='Selection Ranges in "list-multi"' anchor='usecases-ranges'>

Loading…
Cancel
Save