Show/Hide Toolbars

The tc:file tag retrieves the text of a separate XML file and places that text in the end-user's generated document. The file you are retrieving must be uploaded to a specific directory in TeamConnect's Documents area. This tag can be nested as needed in a document template.

You can use this tag to retrieve content that is being used by many different templates, instead of including the same content directly in each template. This tag is also useful if the text in the XML file should be included only under certain circumstances. You can use this tag in conjunction with the tc:conditional tag to accomplish this.

Usage of tc:file

Tag attribute

Attribute value

Description

select

"FileFolder/FileName"

Specify the name of the folder in which the XML file is located and the name of the file.

This path is relative to the document template's location in TeamConnect's Documents area. This means that all supporting XML files that are retrieved by a document template must be stored in a subfolder of the Document Templates folder where the template is located.

Example:

<tc:file select="Statutes/CalStatutes.xml" />

The select attribute takes the name of the folder in which the XML file is located and the name of the XML file as its value. In the example given, Statutes is the name of the folder and CalStatutes is the name of the XML file. The content of the CalStatutes file will be included as text in the generated document.

Preparing XML Files Referenced by tc:file

You may wish to retrieve text from a file with a DOC extension (a Microsoft Word™ file) and insert that text into the generated document. However, only an XML file can be extracted with the tc:file tag and inserted into the generated document.