Template Engine language reference > Composition Center interface > Document definition functions

Document definition functions
TEL grammar includes a number of document definition functions that you can apply to sections and resources accessed in a document definition:
id() – returns the ID of a document definition, section or resource.
contentType() – returns the content type of a resource.
toBase64() – base64 encodes image resources.
toAttachment() – generates email attachments for resources.
sectionArray() – returns an array of all sections in a document definition.
resourceArray() – returns an array of all resources in a section.
propertyNameArray() – returns an array of all property names in a document definition, section or resource.
propertyValue() – returns the value of a property.
You can also use general functions, for example name() to return the name of a resource. See General functions.
In this section
OpenText StreamServe 5.6.2 Updated: 2018-01-26