add
Add a new standard to be supported by the Legacy Content Delivery application.
Description
This function creates a new entry in the eXist db (standards.xml) for the new standard, and creates standard-specific collections for e.g. XSL processing. An XML result is returned.
Parameters
- action
- add
- name
- Name of the standard to be added, which must be alphanumeric only.
Example URL
http://<host>:<port>/<context>/web/standards.xql?action=add&name=<value>
Successful Result
This function returns a standard API result element (<result status='SUCCESS' statusCode='0' message='Localized Message' messageKey='message.key'/>). A statusCode of 0 indicates a successful execution. Any other statusCode indicates a failure.
Failed Result
Accessing this API feature requires the Manage application permission, and the function will throw a permission exception if the permission is not available. Errors are also returned if the standard name is unspecified, if it has invalid characters or if it already exists.