Creating Document Tags
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 |
---|---|---|
|
"1.0" |
Specify the XML version (currently 1.0). |
|
"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. |
|
"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.
|
|
"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">