- Replace " with \texttt{"}, which is ugly, but less ugly than quotes going
in the wrong direction.
- Add a disclaimer to the front of the book telling people to look
at the html if they have a problem.
- Use "longtable" (and thereby allow a pagebreak) for tables with
more than 15 rows.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100319
13f79535-47bb-0310-9956-
ffa450edef68
A quick search makes me believe that pdftex will not handle gifs.
It probably will handle png.
-- Fix quotes
-
- In LaTeX, quotes should be like ``This''. This may
- not be feasible for us, in which case we could simply replace
- " with \texttt{"} or something, so that the quotes are all straight.
-
- Hundreds of other little problems with presentation, cross-referencing,
etc.
<xsl:template match="related">
<xsl:text>
\fbox{\begin{tabular}{rr}
-\begin{minipage}[t]{.4\linewidth}
+\begin{minipage}[t]{.49\linewidth}
\textbf{</xsl:text>
<xsl:value-of select="$messages/message[@name='relatedmodules']" />
<xsl:text>} \\
<!-- XXX: We need to deal with table headers -->
<xsl:template match="table">
-<xsl:text>\fbox{\begin{tabular}{</xsl:text>
+<xsl:variable name="table-type">
+ <xsl:choose>
+ <xsl:when test="count(tr) > 15">longtable</xsl:when>
+ <xsl:otherwise>tabular</xsl:otherwise>
+ </xsl:choose>
+</xsl:variable>
+
+<xsl:text>\begin{</xsl:text><xsl:value-of select="$table-type"/>
+<xsl:text>}{|</xsl:text>
<xsl:choose>
<xsl:when test="columnspec">
<xsl:for-each select="columnspec/column">
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
-<xsl:text>}</xsl:text>
+<xsl:text>|}\hline
+</xsl:text>
<xsl:apply-templates select="tr"/>
-<xsl:text>\end{tabular}}
+<xsl:text>\hline\end{</xsl:text>
+<xsl:value-of select="$table-type"/>
+<xsl:text>}
</xsl:text>
</xsl:template>
\begin{document}
\frontmatter
\maketitle
+
+\section*{About The PDF Documentation}
+
+This is an early release of the PDF version of the Apache
+Documentation. It is converted from XML source files, and may contain
+some errors and inconsistencies. If you have difficulty reading a
+part of this file, please consult instead the HTML version of the
+documentation on the Apache HTTP Server website.
+
\tableofcontents
\mainmatter
</xsl:text>
</xsl:choose>
</xsl:variable>
+<xsl:variable name="result7">
+ <xsl:choose>
+ <xsl:when test="contains($result6, '"')">
+ <xsl:call-template name="replace-string">
+ <xsl:with-param name="replace" select="'"'"/>
+ <xsl:with-param name="with" select="'\texttt{"}'"/>
+ <xsl:with-param name="text" select="$result6"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$result6"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:variable>
+
+
<xsl:call-template name="replace-string">
<xsl:with-param name="replace" select="'_'"/>
<xsl:with-param name="with" select="'\_'"/>
<xsl:call-template name="replace-string">
<xsl:with-param name="replace" select="'&'"/>
<xsl:with-param name="with" select="'\&'"/>
- <xsl:with-param name="text" select="$result6"/>
+ <xsl:with-param name="text" select="$result7"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>