44. value-editor

value-editor(key, value, ..., key, value)

Inserts a control in generated content. Which control to insert is found by examining the grammar constraining the document. This control can be used to edit the value of the element which is the target of the CSS rule. If "attribute, attribute_name" is specified, this control can be used to edit the value of an attribute of this target element.

Note that if value-editor is used to generate an editor for an element value and the content type of the target element is not data (XML-Schema examples: xs:date, xs:double), no control is generated at all. A generic style sheet such as xmldata.css takes advantage of this feature.

KeyValueDefaultDescription
attributeQualified name of attribute to be editedNo defaultWithout this parameter, the control is used to edit the value of the element for which the control has been generated.

Key, value, ..., key, value may also specify style parameters.

Examples:

value-editor()

value-editor(attribute, attribute())