Windows: Release Notes for 1.7.5
[openafs.git] / doc / xml / mobi-fixup.xsl.in
1 <?xml version="1.0"?>
2
3 <!--
4      The kindle seems to render certain lists with an extra line break.
5      To work around this for now, we remove the first <para> for itemized
6      and ordered lists.
7 -->
8
9 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
10
11     <xsl:import href="@DOCBOOK_STYLESHEETS@/epub/docbook.xsl"/>
12
13     <xsl:template match="/">
14         <xsl:copy>
15             <xsl:apply-imports/>
16         </xsl:copy>
17     </xsl:template>
18
19
20     <xsl:template match="itemizedlist/listitem/para[position() = 1]">
21         <!-- still process any anchors embedded in the <listitem> -->
22         <xsl:call-template name="anchor">
23             <xsl:with-param name="node" select="parent::listitem"/>
24         </xsl:call-template>
25         <xsl:apply-templates/>
26     </xsl:template>
27
28     <xsl:template match="orderedlist/listitem/para[position() = 1]">
29         <!-- still process any anchors embedded in the <listitem> -->
30         <xsl:call-template name="anchor">
31             <xsl:with-param name="node" select="parent::listitem"/>
32         </xsl:call-template>
33         <xsl:apply-templates/>
34     </xsl:template>
35
36 </xsl:stylesheet>