| |
---|
| | <xsl-out:apply-templates select="title" mode="preamble" /> |
---|
| | <xsl-out:call-template name="newline-internal" /> |
---|
| | <xsl-out:apply-templates select="author" mode="preamble" /> |
---|
| | <xsl-out:call-template name="newline-internal" /> |
---|
| | <xsl-out:apply-templates select="date" mode="preamble" /> |
---|
| | <xsl-out:apply-templates select="date|due-date" mode="preamble" /> |
---|
| | <xsl-out:call-template name="newline-internal" /> |
---|
| | |
---|
| | <xsl-out:text> |
---|
| | \begin{document} |
---|
| |
---|
| | <xsl:copy-of select="common[not(@formats)]/node()" /> |
---|
| | |
---|
| | <!-- Copy across code that is specific to the current format. --> |
---|
| | <xsl:copy-of select="common[contains(@formats, concat('/', $target-format, '/'))]/node()" /> |
---|
| | <xsl:copy-of select="*[name(.)=$target-format]/node()" /> |
---|
| | <xsl:copy-of select="*[name(.) = $target-format]/node()" /> |
---|
| | |
---|
| | </xsl-out:template> |
---|
| | </xsl:template> |
---|
| | |
---|
| |
---|
|