Data (for XML Form Documents)

The Data tab page of the Properties dialog for an XML Form document offers some XML forms settings.

рдпреЛ рдЖрджреЗрд╢ рдкрд╣реБрдБрдЪ рдЧрд░реНрди...

Open context menu of a selected control on an XML Form document, choose Control - Data tab.

Open Form Controls toolbar of an XML Form document, click Control icon - Data tab.


рдПрдЙрдЯрд╛ рдирд┐рдпрдиреНрддреНрд░рдгрдХреЛ Data рдЯреНрдпрд╛рд╡ рдкреГрд╖реНрдардХреЛ рд╕рдВрднрд╛рд╡реНрдп рд╕реЗрдЯрд┐рдЩрд╣рд░реВ рд╕рдореНрдмрдиреНрдзрд┐рдд рдирд┐рдпрдиреНрддреНрд░рдгрд╣рд░реВрдорд╛ рдирд┐рд░реНрднрд░ рдЧрд░реНрджрдЫред рддрдкрд╛рдИрдБрдВрд▓реЗ рд╣рд╛рд▓рдХреЛ рдирд┐рдпрдиреНрддреНрд░рдг рд░ рдкреНрд░рд╕рдЩреНрдЧрдХрд╛ рд▓рд╛рдЧрд┐ рдЙрдкрд▓рдмреНрдз рд╡рд┐рдХрд▓реНрдк рдорд╛рддреНрд░ рджреЗрдЦреНрдиреБрд╣реБрдиреЗрдЫред рдирд┐рдореНрди рдлрд╛рдБрдЯрд╣рд░реВ рдЙрдкрд▓рдмреНрдз рдЫрди:

XML data model

Select a model from the list of all models in the current document.

рдмрд╛рдЗрдиреНрдбрд┐рдЩрд╣рд░реВ

Select or enter the name of a binding. Selecting the name of an existing binding associates the binding with the form control. Entering a new name creates a new binding and associates it with the form control.

Binding expression

Enter the DOM node to bind the control model to. Click the ... button for a dialog to enter the XPath expression.

Required

Specifies if the item must be included on the XForm.

Relevant

Declares the item as relevant.

рдкрдвреНрдиреЗ-рдорд╛рддреНрд░

Declares the item as read-only.

Constraint

Declares the item as a constraint.

рдЧрдгрдирд╛

Declares that the item is calculated.

Data type

Select a data type which the control should be validated against.

x

Select a user-defined data type and click the button to delete the user-defined data type.

+

Click the button to open a dialog where you can enter the name of a new user-defined data type. The new data type inherits all facets from the currently selected data type.

рджреНрд░рд╖реНрдЯрд╡реНрдп рдкреНрд░рддрд┐рдорд╛

The following lists all facets that are valid for data types. Some facets are only available for some data types.


Whitespaces

Specifies how whitespaces are to be handled when a string of the current data type is being processed. Possible values are "Preserve", "Replace", and "Collapse". The semantics follow the definition at https://www.w3.org/TR/xmlschema-2/#rf-whiteSpace.

Pattern

Specifies a regular expression pattern. Strings validated against the data type must conform to this pattern to be valid. The XSD data type syntax for regular expressions is different from the regular expression syntax used elsewhere in LibreOffice, for example in the Find & Replace dialog.

Digits (total)

Specifies the maximum total number of digits that values of the decimal data type can have.

Digits (fraction)

Specifies the maximum total number of fractional digits that values of the decimal data type can have.

Max. (inclusive)

Specifies an inclusive upper bound for values.

Max. (exclusive)

Specifies an exclusive upper bound for values.

Min. (inclusive)

Specifies an inclusive lower bound for values.

Min. (exclusive)

Specifies an exclusive lower bound for values.

рд▓рдореНрдмрд╛рдЗ

Specifies the number of characters for a string.

Length (at least)

Specifies the minimum number of characters for a string.

Length (at most)

Specifies the maximum number of characters for a string.

Please support us!