38. value-editor
Prev | Chapter 5. Content objects | Next

## 38. 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.

Key | Value | Default | Description
--- | --- | --- | ---
attribute | Qualified name of attribute to be edited | No default | Without 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())

Prev | Up | Next
37. time-picker | Home | 39. xpath