mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 07:08:51 -05:00
Merge commit 'refs/pull/613/head' of https://github.com/xsf/xeps
This commit is contained in:
commit
af2ad7fe4f
11
xep-0122.xml
11
xep-0122.xml
@ -25,6 +25,12 @@
|
||||
</schemaloc>
|
||||
<registry/>
|
||||
&linuxwolf;
|
||||
<revision>
|
||||
<version>1.0.2</version>
|
||||
<date>2018-03-21</date>
|
||||
<initials>fs</initials>
|
||||
<remark>Remove text about element emptiness.</remark>
|
||||
</revision>
|
||||
<revision>
|
||||
<version>1.0.1</version>
|
||||
<date>2018-03-05</date>
|
||||
@ -142,7 +148,6 @@
|
||||
</field>
|
||||
]]></example>
|
||||
<p>Using <basic/> validation, the form interpreter MUST follow the validation rules of the datatype (if understood) and the field type.</p>
|
||||
<p>The <basic/> element MUST be empty (i.e., not contain any character data or child elements) and MUST NOT possess any attributes.</p>
|
||||
</section3>
|
||||
<section3 topic='<open/> Validation' anchor='usercases-validation.open'>
|
||||
<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 <validate/> element shall contain an <open/> child element:</p>
|
||||
@ -160,7 +165,6 @@
|
||||
</field>
|
||||
]]></example>
|
||||
<p>The <open/> 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>
|
||||
<p>The <open/> element MUST be empty (i.e., not contain any character data or child elements) and MUST NOT possess any attributes.</p>
|
||||
</section3>
|
||||
<section3 topic='<range/> Validation' anchor='usercases-validation.range'>
|
||||
<p>To indicate that the value should fall within a certain range, the <validate/> element shall contain a <range/> child element:</p>
|
||||
@ -178,7 +182,6 @@
|
||||
<p>The 'max' attribute specifies the maximum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.</p>
|
||||
<p>The 'min' attribute specifies the minimum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.</p>
|
||||
<p>The <range/> 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>
|
||||
<p>The <range/> element MUST be empty (i.e., not contain any character data or child elements).</p>
|
||||
</section3>
|
||||
<section3 topic='<regex/> Validation' anchor='usercases-validatoin.regex'>
|
||||
<p>To indicate that the value should be restricted to a regular expression, the <validate/> element shall contain a <regex/> child element:</p>
|
||||
@ -192,7 +195,7 @@
|
||||
</field>
|
||||
]]></example>
|
||||
<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&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>
|
||||
<p>The <regex/> element MUST contain character data only (i.e., not contain any child elements) and MUST NOT possess any attributes.</p>
|
||||
<p>The <regex/> element MUST contain character data only.</p>
|
||||
</section3>
|
||||
</section2>
|
||||
<section2 topic='Selection Ranges in "list-multi"' anchor='usecases-ranges'>
|
||||
|
Loading…
Reference in New Issue
Block a user