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 more than 400 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):
To make so many parameters manageable, they are organized in a tree. Also, the default values of many parameters are calculated dynamically from the values of other parameters and properties. This helps you with setting of lots related parameters. Just a few most important ones may need to be changed to achieve necessary effects.
Below you can see how doc.comp.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:
See Also: FlexDoc/XML | XSDDoc | Parameter Tree