From 48858f179022640715db53e5750f6529dddabcff Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 21 Mar 2018 09:36:14 +0100 Subject: [PATCH] XEP-0122: Remove unnecessary normative wording regarding the emptiness of elements. There is no point having that, it just prevents potential (but unlikely) future extensions and adds additional noise to the text. --- xep-0122.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xep-0122.xml b/xep-0122.xml index 2a3210dc..f655d3ae 100644 --- a/xep-0122.xml +++ b/xep-0122.xml @@ -26,6 +26,12 @@ &linuxwolf; + 1.0.2 + 2018-03-21 + fs + Remove text about element emptiness. + + 1.0.1 2018-03-05 fs @@ -142,7 +148,6 @@ ]]>

Using <basic/> validation, the form interpreter MUST follow the validation rules of the datatype (if understood) and the field type.

-

The <basic/> element MUST be empty (i.e., not contain any character data or child elements) and MUST NOT possess any attributes.

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:

@@ -160,7 +165,6 @@ ]]>

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.

-

The <open/> element MUST be empty (i.e., not contain any character data or child elements) and MUST NOT possess any attributes.

To indicate that the value should fall within a certain range, the <validate/> element shall contain a <range/> child element:

@@ -178,7 +182,6 @@

The 'max' attribute specifies the maximum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.

The 'min' attribute specifies the minimum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.

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.

-

The <range/> element MUST be empty (i.e., not contain any character data or child elements).

To indicate that the value should be restricted to a regular expression, the <validate/> element shall contain a <regex/> child element:

@@ -192,7 +195,7 @@ ]]>

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 expressionsThe "best" definition of this syntax can be found in the re_format(7) man page, including support for UnicodeGuidelines for adapting regular expressions to support Unicode is defined at http://www.unicode.org/reports/tr18/.

-

The <regex/> element MUST contain character data only (i.e., not contain any child elements) and MUST NOT possess any attributes.

+

The <regex/> element MUST contain character data only.