Testing a Template with Source XML - Document Composition - Foundation 24.1 - Foundation 24.1 - Ready - OnBase - external - OnBase/Document-Composition/Foundation-24.1/Document-Composition/Configuration/Testing-Templates/Testing-a-Template-with-Source-XML - 2024-03-25

Document Composition

Platform
OnBase
Product
Document Composition
Release
Foundation 24.1
License

Testing Templates describes the basic process for testing a template. To test a template with source XML:

  1. From the Test this Template dialog box, select XML button.

    If source XML has already been entered, the Test this Template dialog box indicates XML source text is set. To use this same source XML to test the template, skip to step 5. Click Edit Source to change the source XML that you will use to test the template.

    The Source XML dialog box is displayed.

  2. Enter the desired XML or edit existing XML as needed.
  3. Click the Format XML button to standardize the spacing of the entered XML.

    This helps to make the XML easier to view. It does not add necessary characters to or remove unnecessary characters from the XML. This button can also be used to expand collapsed elements.

  4. Click OK.

    The Test this Template dialog box indicates XML source text is set.

    You are notified if the XML you entered is invalid. If the XML is invalid, you are prompted to edit the XML you entered.

  5. Click Compose.

    The composed document is displayed. Configuration settings for populated Placeholders are automatically displayed as comments.

    Note:

    Placeholders located in Headers and Footers will not display configuration settings, as comments cannot be added to Headers and Footers in Microsoft Word.

    Note:

    Comments are not displayed for Nested Placeholders or for Placeholders composed within a Fragment or Repeating Placeholder.

    Inspect the document to ensure the configured elements are displaying as expected.

    Note:

    Depending on your privileges, you may not be able to view the composed template. For example, you may not have rights to view certain Placeholders.