Edit online

In some cases, the value of an attribute is a reference to an external database (for example, a citation, a product number, etc.) In these cases, Oxygen XML Web Author can be configured to propose only values for that attribute that are valid with respect to the content of the external database (for example, valid product numbers, valid references to articles, etc.)

The value of the attribute can be set either by using the attributes panel or an inline form-control such as a combo-box. By default, the options presented in the combo-box form control are the same as the ones provided by the attributes panel and they are the valid attribute values defined in the schema attached to the XML document.

There are several ways to implement this:
  • Customize Oxygen XML Web Author to propose custom values for an attribute by using the SchemaManagerFilter Java API. This is a server-side implementation and has the possibility to cache the values between multiple documents.
  • Implement a custom form control that connects to the external database to propose choices to the user. In this form control, you can fetch the options on-demand, which may be useful for large databases. An example of a custom form control is available on GitHub.
    Warning: Your external database needs to have an HTTP API with CORS enabled to be able to query it from Oxygen XML Web Author.