When generating output from a project, you may need to reference several kinds of definitions that are specific to the particular output type. You do that with an <output> element in the project root <map> that specifies the output type and contains refs to the output-specific definitions needed. The @type can be a single term, or a boolean expression (as in the condition rules) containing:
These output formats are supported by uDoc2Go™; you can readily add more by overriding the <element> definition for <output> in stdelems.mxl with one of your own:
<element name="output" props="def output"> <usage>Define a project output type, contains refs to its related defs</usage> <attr name="type" type="bool"/> </element>
The content of the <output> element may reference any definitions needed, such as:
A project root <map> can contain as many <output> definitions as necessary. An editor does not use them unless it is providing a preview of an output; a processor always uses the ones for the output it is creating, or for the one specified in the <xref> (or <key>) itself if that is present.