3.8 Output-Dependent Processing

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.

Previous Topic:  3.7 Dynamic Show and Hide

Next Topic:  Chapter 4. uDoc Addressing

Parent Topic:  Chapter 3. uDoc Processing

Sibling Topics:

3.1 References and Variables

3.2 Queries

3.3 Related Links

3.4 Classes and Formats

3.5 Conditional Processing

3.6 Branching

3.7 Dynamic Show and Hide