source: rtems-source-builder/source-builder/sb/asciidoc/dblatex/asciidoc-dblatex.xsl @ 0464153

4.104.114.95
Last change on this file since 0464153 was 0464153, checked in by Chris Johns <chrisj@…>, on 03/03/13 at 04:58:11

Change asciidoc to the 8.6.4 release package because Windows was broken.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<!--
3dblatex(1) XSL user stylesheet for asciidoc(1).
4See dblatex(1) -p option.
5-->
6<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
7
8  <!-- TOC links in the titles, and in blue. -->
9  <xsl:param name="latex.hyperparam">colorlinks,linkcolor=blue,pdfstartview=FitH</xsl:param>
10  <xsl:param name="doc.publisher.show">1</xsl:param>
11  <xsl:param name="doc.lot.show"></xsl:param>
12  <xsl:param name="term.breakline">1</xsl:param>
13  <xsl:param name="doc.collab.show">0</xsl:param>
14  <xsl:param name="doc.section.depth">3</xsl:param>
15  <xsl:param name="table.in.float">0</xsl:param>
16  <xsl:param name="monoseq.hyphenation">0</xsl:param>
17  <xsl:param name="latex.output.revhistory">1</xsl:param>
18
19  <!-- This doesn't work, don't know why, see:
20  http://dblatex.sourceforge.net/html/manual/apas03.html
21  ./docbook-xsl/common.xsl
22  -->
23  <!--
24  <xsl:param name="doc.toc.show">
25    <xsl:choose>
26      <xsl:when test="/processing-instruction('asciidoc-toc')">
271
28      </xsl:when>
29      <xsl:otherwise>
300
31      </xsl:otherwise>
32    </xsl:choose>
33  </xsl:param>
34  <xsl:param name="doc.lot.show">
35    <xsl:choose>
36      <xsl:when test="/book">
37figure,table,equation,example
38      </xsl:when>
39    </xsl:choose>
40  </xsl:param>
41  -->
42  <xsl:param name="doc.toc.show">1</xsl:param>
43
44  <!--
45    Override default literallayout template.
46    See `./dblatex/dblatex-readme.txt`.
47  -->
48  <xsl:template match="address|literallayout[@class!='monospaced']">
49    <xsl:text>\begin{alltt}</xsl:text>
50    <xsl:text>&#10;\normalfont{}&#10;</xsl:text>
51    <xsl:apply-templates/>
52    <xsl:text>&#10;\end{alltt}</xsl:text>
53  </xsl:template>
54
55  <xsl:template match="processing-instruction('asciidoc-pagebreak')">
56    <!-- force hard pagebreak, varies from 0(low) to 4(high) -->
57    <xsl:text>\pagebreak[4] </xsl:text>
58    <xsl:apply-templates />
59    <xsl:text>&#10;</xsl:text>
60  </xsl:template>
61
62  <xsl:template match="processing-instruction('asciidoc-br')">
63    <xsl:text>\newline&#10;</xsl:text>
64  </xsl:template>
65
66  <xsl:template match="processing-instruction('asciidoc-hr')">
67    <!-- draw a 444 pt line (centered) -->
68    <xsl:text>\begin{center}&#10; </xsl:text>
69    <xsl:text>\line(1,0){444}&#10; </xsl:text>
70    <xsl:text>\end{center}&#10; </xsl:text>
71  </xsl:template>
72
73</xsl:stylesheet>
74
Note: See TracBrowser for help on using the repository browser.