Skip to main content
Mitratech Success Center

Client Support Center

Need help? Click a product group below to select your application and get access to knowledge articles, webinars, training content, and release notes or to contact our support team.

Authorized users - log in to create a ticket, view tickets status and check your success plan details.

 

Creating Document Tags

The document tag of a document template specifies all the necessary background information such as the name of the template within the Document Generator and the mime type used to open the generated document.

Every document template must have the tc:document tag. One of the final steps you complete as you finalize your document template is adding this tag.

The following table provides a list of the attributes and possible attribute values that must be used with the tc:document tag.

Document Tag Attributes

Tag attribute

Attribute value

Description

version

"1.0"

Specify the XML version (currently 1.0).

mime-type

"MimeType"

Specify the application that is launched by TeamConnect to open the generated document. The mime-type is for a specific word processor or RTF format. For example, the mime type for Microsoft Word is application/msword, while the mime type for RTF is application/rtf.

For mime types msword and rtf, the mime type must match the file type of the template itself. For example, if the mime type is msword, the document template must be a Word (.DOC) file.

name

"TemplateName"

Specify the name of the template. This is the name that the user will see when he/she selects templates to generate documents from them.

  • Do not include a file extension in the name. The file extension, such as .doc, is inserted automatically when a document is generated from the template, based on the mime type.
  • The template name must be unique among templates for the object.

xlmns:tc

"http://www.w3.org/1999/XSL/Transform"

Specifies what name space the prefix "tc" is bound to (used for parsing).

The following is an example of a tc:document opening tag in a document template. The mime type indicates that Microsoft Word is the desired output format and that the name of the template that the user will see is "Notice of Auto Accident."

Document Section

<tc:document version="1.0" mime-type="application/msword" name="Notice of Auto Accident" xmlns:tc="http:// www.w3.org/1999/XSL/Transform">

  • Was this article helpful?