Doc. Composer - Writing Element Templates


What is Doc. Composer Template Language

DCTL (Doc. Composer Template Language) is an XML-based language that enables the transformation of design specification into document content. You will learn DCTL in this article.

 

Template Root

Learn how to start off an element template by using an appropriate initiation block.

 

Text and Property

When you want to output some text, you either use a or a . You will learn how it works in this article.

 

Looping (Non Connector)

When you want to retrieve the children elements from a querying model element / diagram, write a loop element. You will learn how it works in this article.

 

Looping (Connector)

When you want to retrieve connectors from a querying model element / diagram, write a loop element. You will learn how it works in this article.

 

Sorting in Loop

Add <Sortings> under a loop element (e.g. <IterationBlock>, <ForEach>) to sort retrieved elements. In this article you will learn how it works.


Conditional Expression

Write conditional expression to control the content to be presented. You will learn how to write conditional expression in this article.

 

Working with Table

Structure data with table. You will learn how to create table block, table row and table cell in this article.

 

Working with Image

Add diagram image or icon image into document. You will learn how it works in this article.

 

Working with Break

Add paragraph break or page break into a document. You will learn how to create breaks in this article.

 

Working with other DCTL Constructs

Learn how to use OwnerDiagram, ParentModel and ParentShape in writing DCTL.

 

Reusing Template with Inline or Reference

The reuse of element template can be done by using and . The article shows you how and work.

 

Using variables in Doc. Composer

To favor template reusability, some of the template elements support the use of variable. In this article you will see how to define and use variables.

 

DCTL Examples

Learn how to write Doc. Composer Template Language by reading a series of examples.

 

Supported Diagram Types

This page contains all the diagram types available in Visual Paradigm. Both the display and real diagram type are listed.

 
14. Managing Doc Templates in Team Environment Table of Contents 1. What is Doc. Composer Template Language