latex.xsl revision 1cb160a981947e75a8353da3fe40a653aa87100e
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive method="text"
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive encoding="ISO-8859-1"
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive indent="no"
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Read the localized messages from the specified language file -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:variable name="messages" select="document('/lang/en.xml')/messages"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Get the guts of the stylesheets -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\documentclass[11pt]{book}
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive\usepackage{times}
1cb160a981947e75a8353da3fe40a653aa87100eslive\usepackage{longtable}
1c6a10274e908898347be82bc82bc7ae18c66410slive%\usepackage[pdftex]{color}
1cb160a981947e75a8353da3fe40a653aa87100eslive\usepackage[colorlinks=true,letterpaper=true,linkcolor=green,urlcolor=blue]{hyperref}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive% Let LaTeX be lenient about very-bad line wrapping.
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\tolerance=9999
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive\emergencystretch=60pt
1c6a10274e908898347be82bc82bc7ae18c66410slive% Adjust margins to a reasonable level
1c6a10274e908898347be82bc82bc7ae18c66410slive\topmargin 0pt
1c6a10274e908898347be82bc82bc7ae18c66410slive\advance \topmargin by -\headheight
1c6a10274e908898347be82bc82bc7ae18c66410slive\advance \topmargin by -\headsep
1c6a10274e908898347be82bc82bc7ae18c66410slive\textheight 8.9in
1c6a10274e908898347be82bc82bc7ae18c66410slive\oddsidemargin 0pt
1c6a10274e908898347be82bc82bc7ae18c66410slive\evensidemargin \oddsidemargin
1c6a10274e908898347be82bc82bc7ae18c66410slive\marginparwidth 0.5in
1c6a10274e908898347be82bc82bc7ae18c66410slive\textwidth 6.5in
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive% Keep paragraphs flush left (rather than the default of indenting
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive% the first line) and put a space between paragraphs.
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\setlength{\parindent}{0ex}
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive\addtolength{\parskip}{1.2ex}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive% Shrink the inter-item spaces
01979b991e320f79fe2c1ae2afc298e8651bd69aslive\AfterBegin{itemize}{\addtolength{\itemsep}{-.6\baselineskip}}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\pagestyle{headings}
1c6a10274e908898347be82bc82bc7ae18c66410slive\hypersetup{
1c6a10274e908898347be82bc82bc7ae18c66410slive<xsl:value-of select="$messages/message[@name='apache']" />
1c6a10274e908898347be82bc82bc7ae18c66410slive<xsl:value-of select="$messages/message[@name='http-server']" />
1c6a10274e908898347be82bc82bc7ae18c66410slive<xsl:value-of select="$messages/message[@name='documentation']" />
1c6a10274e908898347be82bc82bc7ae18c66410slive<xsl:value-of select="$messages/message[@name='version']" />
1c6a10274e908898347be82bc82bc7ae18c66410slive pdfauthor={Apache Software Foundation}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:value-of select="$messages/message[@name='apache']" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:value-of select="$messages/message[@name='http-server']" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:value-of select="$messages/message[@name='documentation']" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:value-of select="$messages/message[@name='version']" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\author{Apache Software Foundation}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\date{\today}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\begin{document}
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive\frontmatter
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\tableofcontents
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:value-of select="substring-before($text,$replace)"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:with-param name="text" select="substring-after($text,$replace)"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Take care of all the LaTeX special characters. -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Silly multi-variable technique used to avoid deep recursion. -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:with-param name="with" select="'\textbackslash '"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:with-param name="text" select="normalize-space($string)"/>
1cb160a981947e75a8353da3fe40a653aa87100eslive<!-- The '[' and ']' characters don't, in general, need to be
1cb160a981947e75a8353da3fe40a653aa87100eslive escaped. But there are times when it is ambiguous whether
1cb160a981947e75a8353da3fe40a653aa87100eslive [ is the beginning of an optional argument or a literal '['.
1cb160a981947e75a8353da3fe40a653aa87100eslive Hence, it is safer to protect the literal ones with {}. -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:with-param name="with" select="'\textgreater{}'"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:with-param name="with" select="'\textasciitilde{}'"/>