Running a Validation Report on a Structured Document

This task describes how to run a validation report on a DITA or non-DITA structured document.

The structured document is sent to an XML parser and validated against the document's DTD or schema, and issues a report. If the report identifies validation errors, you can print the result for further action.
  1. Right-click a structured document and select Relationships > Validation Report.
    Note: You can also invoke this command on a portion of a non-DITA document, such as a chapter. However, if IDREF targets are in another chapter of the document, IDREF validation will fail, as only the portion of the selected document is examined.
    The Validate dialog appears showing the name of the selected document.
  2. From the IDREF Validation list, select the validation type to run, then click OK.
    IDREF Validation Type Description
    None Use this option to validate DITA structured documents. They do not use IDREF XML attributes.

    This option can also be used on non-DITA structured documents that do not use IDREF type XML attributes.

    Validation Use this option for non-DITA structured documents that contain IDREF type XML attributes to verify that the target of every IDREF is present in the document.
    Validation & Link Repair Use this option for non-DITA structured documents to perform the IDREF validation and also attempt to repair any invalid references.
    The Validation Report window appears, displaying any validation errors, in table columns for Object, Description, and Summary information.


    If no errors are found, the table is empty and a message appears below the table indicating the object name that has no errors.

  3. If no errors are found, click Done to close the report.
  4. If the report contains errors, you can click Print and direct output to a printer.