| |
---|
| | Process the subtitle, if any. If there is no author specified, then we can appropriate the \author, otherwise, append it to the main title. |
---|
| | --> |
---|
| | <xsl:if test="/document/subtitle and /document/author"> |
---|
| | <xsl:text>\\[0.25\baselineskip] \large </xsl:text> |
---|
| | <xsl:value-of select="/document/subtitle" /> |
---|
| | <xsl:apply-templates select="/document/subtitle" mode="title" /> |
---|
| | </xsl:if> |
---|
| | <xsl:text>}</xsl:text> |
---|
| | <xsl:if test="/document/subtitle and not( /document/author )"> |
---|
| | <xsl:text>\author{</xsl:text> |
---|
| | <xsl:value-of select="/document/subtitle" /> |
---|
| | <xsl:apply-templates select="/document/subtitle" mode="title" /> |
---|
| | <xsl:text>}</xsl:text> |
---|
| | </xsl:if> |
---|
| | </common> |
---|
| | <!-- |
---|
| |
---|
| | </common> |
---|
| | </template> |
---|
| | |
---|
| | <!-- |
---|
| | Document subtitle. This template exists only to catch any embdedded markup within the subtitle. |
---|
| | Document subtitle. This template exists only to catch any embdedded markup within the subtitle. Note that this is also used by the LaTeX preamble above. |
---|
| | --> |
---|
| | <template name="document-subtitle-title" match="document/subtitle" mode="title"> |
---|
| | <common formats="/html/xhtml/"> |
---|
| | <xsl:apply-templates /> |
---|
| | </common> |
---|
| | </template> |
---|
| | <common> |
---|
| | <xsl:apply-templates /> |
---|
| | </common> |
---|
| | </template> |
---|
| | |
---|
| | <!-- |
---|
| | This template exists only to trap the general apply-templates and prevent the subtitle being output twice. The actual processing of this element is done in the document-title template above. |
---|
| | --> |
---|
| |
---|
|