mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
9929d1c6fc
.epub is generated using dbtoepub which is still considered alpha software apparently and installed in a non-standard place. for now, use the docbook stylesheet location to find it. .mobi is generated using kindlegen from the .epub in order to have a real toc. there is some preprocessing with a custom stylesheet to make things "look right". see mobi-fixup.xsl.in Change-Id: Ice92e701e2f921e70c0f98683b5e9ab44a347e3b Reviewed-on: http://gerrit.openafs.org/4887 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org>
37 lines
1.1 KiB
XML
37 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
The kindle seems to render certain lists with an extra line break.
|
|
To work around this for now, we remove the first <para> for itemized
|
|
and ordered lists.
|
|
-->
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:import href="@DOCBOOK_STYLESHEETS@/epub/docbook.xsl"/>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:copy>
|
|
<xsl:apply-imports/>
|
|
</xsl:copy>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="itemizedlist/listitem/para[position() = 1]">
|
|
<!-- still process any anchors embedded in the <listitem> -->
|
|
<xsl:call-template name="anchor">
|
|
<xsl:with-param name="node" select="parent::listitem"/>
|
|
</xsl:call-template>
|
|
<xsl:apply-templates/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="orderedlist/listitem/para[position() = 1]">
|
|
<!-- still process any anchors embedded in the <listitem> -->
|
|
<xsl:call-template name="anchor">
|
|
<xsl:with-param name="node" select="parent::listitem"/>
|
|
</xsl:call-template>
|
|
<xsl:apply-templates/>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|