|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
XSLT Stylesheet DocBook -> LaTeX
|
|
Packit Service |
76cb02 |
############################################################################ -->
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="appendix">
|
|
Packit Service |
76cb02 |
<xsl:if test="not (preceding-sibling::appendix)">
|
|
Packit Service |
76cb02 |
<xsl:text>% ---------------------
</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:text>% Appendixes start here
</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:text>% ---------------------
</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{appendices}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:call-template name="makeheading">
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:with-param name="level">
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
following-sibling::part">-1</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="parent::book or parent::part">0</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>1</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:with-param>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:apply-templates/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:if test="not (following-sibling::appendix)">
|
|
Packit Service |
76cb02 |
<xsl:text>
\end{appendices}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="appendix/title"></xsl:template>
|
|
Packit Service |
76cb02 |
<xsl:template match="appendix/titleabbrev"></xsl:template>
|
|
Packit Service |
76cb02 |
<xsl:template match="appendix/subtitle"></xsl:template>
|
|
Packit Service |
76cb02 |
<xsl:template match="appendix/docinfo|appendixinfo"></xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
</xsl:stylesheet>
|
|
Packit Service |
76cb02 |
|