FlexDoc/XML - XSDDoc - Templates
Template Parameters
Template parameters serve both as options to control the documentation generator implemented by a particular main template and internally as channels for settings and data passed to subtemplates.XSDDoc is controlled by ca. 500 external parameters. On the left screenshot below you can see the parameter definitions of FramedDoc.tpl. On the right is the Parameter Inspector built by those definitions (click to enlarge):
![]() |
![]() |
Below you can see how doc.comp.model.diagram
parameter is defined
(which is the one selected in the left screenshot above). On the right is the FlexQuery expression
that calculates the default value of this parameter:
![]() |
![]() |
When the same parameter is defined in a subtemplate, it receives its value from the nearest equally named parameter in the template call chain. Such propagation of parameter values happens automatically. However, it can be overridden in any particular Call Template section, so as to pass different values (as well as the values of those parameters defined locally only in the called subtemplate), as it is shown in the screenshot below: