diff options
Diffstat (limited to 'docs/manual/style/latex/manualpage.xsl')
-rw-r--r-- | docs/manual/style/latex/manualpage.xsl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/manual/style/latex/manualpage.xsl b/docs/manual/style/latex/manualpage.xsl new file mode 100644 index 0000000000..a5a0237d5e --- /dev/null +++ b/docs/manual/style/latex/manualpage.xsl @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/1999/xhtml"> + +<xsl:template match="manualpage"> +<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" /> + +<xsl:text>\section{</xsl:text><xsl:apply-templates select="title"/> +<xsl:text>}</xsl:text> +<xsl:text>\label{</xsl:text><xsl:value-of +select="$metafile/path"/><xsl:value-of +select="$metafile/basename"/> +<xsl:text>} +</xsl:text> +<xsl:apply-templates select="summary"/> + + + <xsl:if test="seealso"> + <xsl:text>\bigskip\noindent\textbf{</xsl:text> + <xsl:value-of select="$messages/message[@name='seealso']" /> + <xsl:text>} + \begin{itemize}</xsl:text> + <xsl:for-each select="seealso"> + <xsl:text>\item </xsl:text><xsl:apply-templates /> + </xsl:for-each> + \end{itemize} + </xsl:if> + +<xsl:apply-templates select="section"/> +</xsl:template> + +</xsl:stylesheet>
\ No newline at end of file |