company logo

XML template

XML templates are provided for XML document generation. With the file support any document template can be created by means of expressions, but often, it becomes more simple to define an XML template instead of an expression. XML templates contain template text parts and code elements. Code elements are OSI statements or variable declarations.

In an XML template, code parts are included in $-sequences. A $-sequence starts with a single '$' character or a $keyword (a keyword preceded by a '$' character. A $-sequence must be terminated by a single '$ character. All text outside $-sequences is interpreted as fixed text or comment.

XML templates passed from external sources may start with template text immediately or might be preceded by an expression header. XML templates can also be passed as XML template expressions.

Thus, XML templates behave rather similar to text templates. The only difference is, that some HTML conversion is done, when line breaks, tabs or other reserved characters are found in data. When data has been stored in the database as XML, it is passed as such to the expression.