chiark / gitweb /
update Japanese translation
[developers-reference.git] / txt.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 version="1.0">
4   <xsl:import
5     href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
6
7   <!-- parameters for optimal text output -->
8   <xsl:param name="callout.graphics" select="0"/>
9   <xsl:param name="callout.unicode" select="0"/>
10   <xsl:param name="section.autolabel" select="1"/>
11   <xsl:param name="section.label.includes.component.label" select="1"/>
12   <xsl:param name="generate.toc">
13   appendix  title
14   article/appendix  nop
15   article   toc,title
16   book      toc,title,figure,table,example,equation
17   chapter   title
18   part      toc,title
19   preface   toc,title
20   qandadiv  toc
21   qandaset  toc
22   reference toc,title
23   section   toc
24   set       toc,title
25   </xsl:param>
26
27   <!-- centering and aligning title elements -->
28   <xsl:template match="/*/title[position()=1]" mode="titlepage.mode">
29     <br/>
30     <center>
31       <xsl:apply-imports/>
32     </center>
33     <br/>
34     <hr/> <!-- no underline, but at least something -->
35   </xsl:template>
36
37   <xsl:template match="author|editor" mode="titlepage.mode">
38     <center>
39       <xsl:apply-imports/>
40     </center>
41   </xsl:template>
42
43   <xsl:template match="releaseinfo" mode="titlepage.mode">
44     <center>
45       <xsl:apply-imports/>
46     </center>
47     <hr/>
48   </xsl:template>
49
50   <!-- dirty hack to get a left margin for paragraphs etc. -->
51   <xsl:template match="legalnotice/*
52         |chapter/*[not(name(.)='section') and not(name(.)='title')]
53         |section/*[not(name(.)='section') and not(name(.)='title')]
54         |appendix/*[not(name(.)='section') and not(name(.)='title')]
55         |footnote/*">
56     <xsl:copy><table><tr><td>&#xa0;&#xa0;&#xa0;</td><td>
57     <xsl:apply-imports/>
58     </td></tr></table></xsl:copy>
59   </xsl:template>
60
61 </xsl:stylesheet>