Documentation Center

validate

Validates consistency and completeness of language version and produces the validation report.

Description

Checks for missing images, broken links, failed content references, unused resources, etc.; loads list of unused resources in a session variable; returns an HTML page or fragment or an XML document.

Parameters

action
validate
export
If xml parameter does not exist, then if export parameter exists and is not empty, returns validation report as an HTML page else as an HTML fragment to be displayed in the right pane.
xml
If parameter exists and is not empty, returns validation report as an XML document.
lang
A language version of a publication.
pub
A publication, which is a logical grouping of information (topics and multimedia) related to a specific subject, containing one or more language versions.

Example URL

http://<host>:<port>/<context>/web/pub.xql?action=validate&export=<value>&xml=<value>&lang=<value>&pub=<value>

Successful Result

The validation report in HTML or XML.

Failed Result

Accessing this API feature requires the "Manage pubs" permission, and the function will throw a permission exception if the permission is not available.