Add a data source schema, select a data file for previewing,
and then add details for the Full Tag column.
The data source schema gives structure to data from a data
provider. In this lesson, you are selecting that data source schema
and the data file to provide your template with the information that
is to be visible in the first column of the published table. The column
itself is not static; the column can adjust to the amount of data
in the data file, but the first column is not providing data from
custom attributes yet. The first column appears in the output result
no matter what you enter for the variables you create in later lessons.
- Download the tutorialSpecialAttributes.xsd schema
and save the file to your computer. Example: C:\tutorial_resources\tutorialSpecialAttributes.xsd
- Add the data source schema to the template. A schema contains
the structure of your data, not the data itself.
- In the Data Source Schemas view, click the Add
data source schema icon and click Next.
- Select Generic XML.
- Click Browse and select the schema
you downloaded.
- Click Next.
- Click Finish. The
schema you added includes a set of Attributes:
- Specify the data source. This file is where the data that
is visible in the document comes from.
- Download the tutorialSpecialAttributes.xml data
file.
- In the Outline view, select the data source schema.
- In the Properties view, enter the default URI as the
path to the tutorialSpecialAttributes.xml data
file. Example: C:\tutorial_resources\tutorialSpecialAttributes.xml
- Preview the data to ensure that the data source is accessible:
- In the Outline view, right-click the data source schema.
- Click Preview Data. The default URI you entered displays.
- Click Preview. The
data in the Requirements_PR.xml loads.
- Click Close.
- In the first row, double-click the first cell and enter
the header name Full Tag. This header
is static text and appears in every document generated, regardless
of the variable selected at run time.
- From the Data Source Schemas, drag the PRRequirement query
into the second Row element.
- Drag the Full tag query into the Text
element.
- Select Use as value and click OK. This query is not static text. A cell is created in this row
for every Full Tag entry found in the data source file.
- Save the changes.