%xsldoc.ent; ]> $Id: formal.mod.xsl,v 1.13 2004/01/03 09:48:34 j-devenish Exp $ &ramon; &james; 2000200120022003 Ramon Casellas &rev_2003_05; Formal Objects <filename>formal.mod.xsl</filename> The file formal.mod.xsl contains generic XSL templates for formal (title-bearing, block-style) components and informal (no-title, block-style) components. It also contains templates for equation and informalequation (which should probably be moved to block.mod.xsl). Typeset a formal object generically This template formats the current node as a formal object by calling then . &no_var; Typeset the title of a formal object generically Outputs an anchor for cross-references and hyper-links, then applies templates in the title.content mode (supported by common/common.xsl) &no_var; Typeset an informal object generically Outputs an anchor for cross-references and hyper-links, then applies all templates. &no_var; Typeset formal or informal object generically Chooses whether the current node is a formal- or informal-like object and calls either or . &no_var; Determine the relative position for a caption Chooses the position of a caption to be before or after the selected object. object The type of object (i.e. name of the element) to which the caption pertains. If after has not been specified for the given object in , before will be used by default. before Process equation elements Formats an titled, block-style equation. If an informalequation is present, it will be typeset in preference to any other elements. Otherwise, this template will follow the same logic as the template. &test_book; &mapping; { {\caption{ } }} \captionswapskip{} \captionswapskip{} Process informalequation elements Formats an untitled, block-style equation. The equation will be found by searching the informalequation for its most appropriate child elements. Firstly, this template will search for all alt, mediaobject/textobject or mediaobject/textobject/phrase children that have a &roleattr; of latex or tex. If none were found, the template will search for generic mediaobject or alt children. If is set, alts will be preferred over mediaobjects. If none of these elements was found, the template will format any graphic children. &test_book; &mapping;