example

- SourceForge
- Home Page
- Samples

- Reference Contents |
- Download & Install |
- User Guides |
- Notes, E-mail & Bugs |
- Q&A

Suggestions
Search:
Next: informalexample
Up: Examples example.mod.xsl

Reference Section

## Name

example — Process `example` [2.0.9] elements

## Synopsis

    <xsl:template match="example">
    <xsl:variable name="placement">
    			<xsl:call-template name="generate.formal.title.placement">
    				<xsl:with-param name="object" select="local-name(.)"/>
    			</xsl:call-template>
    		</xsl:variable>
    <xsl:variable name="caption">
    			<xsl:text>{</xsl:text>
    			<xsl:value-of select="$latex.example.caption.style"/>
    			<xsl:text>{\caption{</xsl:text>
    			<xsl:apply-templates select="title" mode="caption.mode"/>
    			<xsl:text>}</xsl:text>
    			<xsl:call-template name="label.id"/>
    			<xsl:text>}}
    </xsl:text>
    		</xsl:variable>
      ...
    </xsl:template>

## A. Description

Format a caption.

## B. Pertinent Variables

- latex.example.caption.style

## E. Samples and Tests

`test_book.pdf` from `test_book/test.xml`, `test_program.pdf` from `test_program/test.xml`

## F. Further Reading

- generate.formal.title.placement
- The DB2LaTeX mapping system latex.mapping.xsl
- title|subtitle (in caption.mode mode)

Prev | Up | Next
Examples example.mod.xsl | Home | informalexample