| 1 |
<?xml version='1.0'?> |
| 2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> |
| 3 |
|
| 4 |
<!--############################################################################ |
| 5 |
XSLT Stylesheet DocBook -> LaTeX |
| 6 |
############################################################################ --> |
| 7 |
|
| 8 |
<xsl:template match="part"> |
| 9 |
<xsl:text>% </xsl:text> |
| 10 |
<xsl:text>% PART </xsl:text> |
| 11 |
<xsl:text>% </xsl:text> |
| 12 |
<xsl:apply-templates select="." mode="endnotes"/> |
| 13 |
<xsl:call-template name="mapheading"/> |
| 14 |
<xsl:apply-templates/> |
| 15 |
<!-- Force exiting the part. It assumes the bookmark package available --> |
| 16 |
<xsl:if test="not(following-sibling::part)"> |
| 17 |
<xsl:text>\bookmarksetup{startatroot} </xsl:text> |
| 18 |
</xsl:if> |
| 19 |
</xsl:template> |
| 20 |
|
| 21 |
<xsl:template match="part/docinfo"/> |
| 22 |
<xsl:template match="part/title"/> |
| 23 |
<xsl:template match="part/subtitle"/> |
| 24 |
|
| 25 |
<xsl:template match="partintro"> |
| 26 |
<xsl:apply-templates/> |
| 27 |
</xsl:template> |
| 28 |
|
| 29 |
<xsl:template match="partintro/title"/> |
| 30 |
<xsl:template match="partintro/subtitle"/> |
| 31 |
<xsl:template match="partintro/titleabbrev"/> |
| 32 |
|
| 33 |
</xsl:stylesheet> |