2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/TR/xhtml1/strict">
6 <xsl:strip-space elements="doc chapter section para row"/>
7 <xsl:output method="text" indent="no" encoding="iso-8859-1"/>
9 <xsl:template match="doc">
10 <xsl:apply-templates/>
12 ------------------------------------------------------------------
13 <xsl:apply-templates select="//footnote" mode="footnotes"/>
16 <xsl:template match="article">
17 <xsl:apply-templates/>
20 <xsl:template match="book">
21 <xsl:apply-templates/>
24 <xsl:template match="report">
25 <xsl:apply-templates/>
28 <xsl:template match="titlepage">
29 *********************************************************************************
30 <xsl:apply-templates/>
31 *********************************************************************************
34 <xsl:template match="title">
35 <xsl:apply-templates/>
38 <xsl:template match="date">
39 <xsl:apply-templates/>
42 <xsl:template match="author">
45 <xsl:template match="docinfo">
47 <xsl:apply-templates/>
50 <xsl:template match="infoitem">
51 <xsl:value-of select="@label"/>: <xsl:apply-templates/>
54 <xsl:template match="abstract">
58 <xsl:apply-templates/>
62 <xsl:template match="chapter/heading">
63 !!!<xsl:apply-templates/>
66 <xsl:template match="section/heading">
67 !!<xsl:apply-templates/>
70 <xsl:template match="subsection/heading">
71 !<xsl:apply-templates/>
74 <xsl:template match="subsubsection/heading">
75 <xsl:apply-templates/>
78 <xsl:template match="paragraph/heading">
79 <xsl:apply-templates/>
82 <xsl:template match="subparagraph/heading">
83 <xsl:apply-templates/>
86 <xsl:template match="para|quote">
88 <xsl:apply-templates/>
92 <xsl:template match="verbatim">
94 <xsl:apply-templates/>
98 <xsl:template match="itemize/item">
99 * <xsl:apply-templates/>
102 <xsl:template match="enumerate/item">
103 # <xsl:apply-templates/>
106 <xsl:template match="footnote">(<xsl:number/>)</xsl:template>
108 <xsl:template match="footnote" mode="footnotes">
109 (<xsl:number/>) <xsl:apply-templates/>
113 <xsl:template match="sub|sup"><xsl:apply-templates/></xsl:template>
114 <xsl:template match="emph">_<xsl:apply-templates/>_</xsl:template>
116 <xsl:template match="strong">*<xsl:apply-templates/>*</xsl:template>
118 <xsl:template match="code">=<xsl:apply-templates/>=</xsl:template>
120 <xsl:template match="remark">_<xsl:apply-templates/>_</xsl:template>
122 <xsl:template match="newline">
125 <xsl:template match="newpage">
128 <xsl:template match="table">
129 <xsl:apply-templates/>
132 <xsl:template match="row">
133 <xsl:apply-templates/>
137 <xsl:template match="col">
138 <xsl:variable name='n' select='position()'/>
139 <xsl:for-each select='../col[position() < $n]'><xsl:text> </xsl:text></xsl:for-each>
140 <xsl:apply-templates/><xsl:if test='position()!=last()'> |</xsl:if><xsl:text>
144 <xsl:template match="picture">
147 <xsl:template match="reference">
148 <xsl:apply-templates/>[<xsl:value-of select="@href"/>]
151 <xsl:template match="include">
152 <xsl:apply-templates select="document(@href)"/>