latex.xsl revision 2f9338296f846174ea5c8eab620399071afaef1b
beaad6ac31022179c44d88536811e9ccd9425696nd<?xml version="1.0" encoding="ISO-8859-1"?>
beaad6ac31022179c44d88536811e9ccd9425696nd
beaad6ac31022179c44d88536811e9ccd9425696nd<!--
db878466c5e95073429dda0bdd001f45e9486e16fielding Copyright 2003-2005 The Apache Software Foundation or its licensors, as
db878466c5e95073429dda0bdd001f45e9486e16fielding applicable.
db878466c5e95073429dda0bdd001f45e9486e16fielding
db878466c5e95073429dda0bdd001f45e9486e16fielding Licensed under the Apache License, Version 2.0 (the "License");
db878466c5e95073429dda0bdd001f45e9486e16fielding you may not use this file except in compliance with the License.
db878466c5e95073429dda0bdd001f45e9486e16fielding You may obtain a copy of the License at
beaad6ac31022179c44d88536811e9ccd9425696nd
beaad6ac31022179c44d88536811e9ccd9425696nd http://www.apache.org/licenses/LICENSE-2.0
beaad6ac31022179c44d88536811e9ccd9425696nd
beaad6ac31022179c44d88536811e9ccd9425696nd Unless required by applicable law or agreed to in writing, software
beaad6ac31022179c44d88536811e9ccd9425696nd distributed under the License is distributed on an "AS IS" BASIS,
beaad6ac31022179c44d88536811e9ccd9425696nd WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
beaad6ac31022179c44d88536811e9ccd9425696nd See the License for the specific language governing permissions and
beaad6ac31022179c44d88536811e9ccd9425696nd limitations under the License.
beaad6ac31022179c44d88536811e9ccd9425696nd-->
beaad6ac31022179c44d88536811e9ccd9425696nd
01c674544bd4c211141bcd9fb09b96ffc18c6c3dnd<xsl:stylesheet version="1.0"
01c674544bd4c211141bcd9fb09b96ffc18c6c3dnd xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
01c674544bd4c211141bcd9fb09b96ffc18c6c3dnd<xsl:output
3726777f47ac4bba3e21b075905959bbea47e72eerikabele method="text"
3726777f47ac4bba3e21b075905959bbea47e72eerikabele encoding="ISO-8859-1"
3726777f47ac4bba3e21b075905959bbea47e72eerikabele indent="no"
3726777f47ac4bba3e21b075905959bbea47e72eerikabele/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- Read the localized messages from the specified language file -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:variable name="message" select="document('/lang/en.xml')
7e68fce3cbd2246164e045a51ecd77f9f26680ednd /language/messages/message"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<xsl:variable name="allmodules" select="document('/xsl/util/allmodules.xml')
7e68fce3cbd2246164e045a51ecd77f9f26680ednd /items/item[@lang='en']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
e5343521634b71f10f0e88374d88bd5a45f75f68nd<!-- Get the guts of the stylesheets -->
66e48875fca2df6669dab4f2690ee36c6913c0ffnd<xsl:include href="manualpage.xsl" />
66e48875fca2df6669dab4f2690ee36c6913c0ffnd<xsl:include href="common.xsl" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:include href="html.xsl" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:include href="synopsis.xsl" />
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<xsl:include href="moduleindex.xsl" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:include href="directiveindex.xsl" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:include href="faq.xsl" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:include href="quickreference.xsl" />
bdbf46e4950b6f633073f803486962e82c2f086and
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:template match="sitemap">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\documentclass[10pt]{book}
fffabed77cd6264da64fa3d267243d1d76897049nd\usepackage{times}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\usepackage{longtable}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\usepackage{style/latex/atbeginend}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\usepackage[pdftex]{graphicx}
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end\usepackage[colorlinks=true,letterpaper=true,linkcolor=blue,urlcolor=blue]{hyperref}
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end
7e68fce3cbd2246164e045a51ecd77f9f26680ednd% Let LaTeX be lenient about very-bad line wrapping.
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\tolerance=9999
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\emergencystretch=60pt
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd% Adjust margins to a reasonable level
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\topmargin 0pt
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\advance \topmargin by -\headheight
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\advance \topmargin by -\headsep
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\textheight 8.9in
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\oddsidemargin 0pt
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\evensidemargin \oddsidemargin
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\marginparwidth 0.5in
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\textwidth 6.5in
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd% Keep paragraphs flush left (rather than the default of indenting
7e68fce3cbd2246164e045a51ecd77f9f26680ednd% the first line) and put a space between paragraphs.
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\setlength{\parindent}{0ex}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\addtolength{\parskip}{1.2ex}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd% Shrink the inter-item spaces
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\AfterBegin{itemize}{\setlength{\itemsep}{0em}}
e5343521634b71f10f0e88374d88bd5a45f75f68nd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\pagestyle{headings}
bdbf46e4950b6f633073f803486962e82c2f086and
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\hypersetup{
7e68fce3cbd2246164e045a51ecd77f9f26680ednd pdftitle={</xsl:text>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<xsl:value-of select="$message[@id='apache']" />
11c3b428f0fc9b03f353ed9b66347c5deb567052nd<xsl:text> </xsl:text>
11c3b428f0fc9b03f353ed9b66347c5deb567052nd<xsl:value-of select="$message[@id='http-server']" />
11c3b428f0fc9b03f353ed9b66347c5deb567052nd<xsl:text> </xsl:text>
11c3b428f0fc9b03f353ed9b66347c5deb567052nd<xsl:value-of select="$message[@id='documentation']" />
11c3b428f0fc9b03f353ed9b66347c5deb567052nd<xsl:text> </xsl:text>
11c3b428f0fc9b03f353ed9b66347c5deb567052nd<xsl:value-of select="$message[@id='version']" />
11c3b428f0fc9b03f353ed9b66347c5deb567052nd<xsl:text>},
11c3b428f0fc9b03f353ed9b66347c5deb567052nd pdfauthor={Apache Software Foundation}
11c3b428f0fc9b03f353ed9b66347c5deb567052nd }
11c3b428f0fc9b03f353ed9b66347c5deb567052nd
11c3b428f0fc9b03f353ed9b66347c5deb567052nd\title{</xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:value-of select="$message[@id='apache']" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:text> </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:value-of select="$message[@id='http-server']" />
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<xsl:text> </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:value-of select="$message[@id='documentation']" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:text> </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:value-of select="$message[@id='version']" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:text>\\ \bigskip \bigskip
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\includegraphics{images/feather}\\ \bigskip}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\author{Apache Software Foundation}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\date{\today}
e5343521634b71f10f0e88374d88bd5a45f75f68nd
bdbf46e4950b6f633073f803486962e82c2f086and\begin{document}
bdbf46e4950b6f633073f803486962e82c2f086and\frontmatter
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\maketitle
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\section*{About The PDF Documentation}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680edndCopyright \copyright 2005 The Apache Software Foundation
fd46b0fed4351924170b4db5859dc35b771ee16dnd
fd46b0fed4351924170b4db5859dc35b771ee16dndLicensed under the Apache License, Version 2.0 (the "License");
7e68fce3cbd2246164e045a51ecd77f9f26680edndyou may not use this file except in compliance with the License.
7e68fce3cbd2246164e045a51ecd77f9f26680edndYou may obtain a copy of the License at \href{http://www.apache.org/licenses/LICENSE-2.0}{http://www.apache.org/licenses/LICENSE-2.0}
fd46b0fed4351924170b4db5859dc35b771ee16dnd
fd46b0fed4351924170b4db5859dc35b771ee16dndThis version of the Apache HTTP Server Documentation is converted from
7e68fce3cbd2246164e045a51ecd77f9f26680edndXML source files to \LaTeX\ using XSLT with the help of Apache Ant,
7e68fce3cbd2246164e045a51ecd77f9f26680edndApache XML Xalan, and Apache XML Xerces.
fd46b0fed4351924170b4db5859dc35b771ee16dnd
fd46b0fed4351924170b4db5859dc35b771ee16dndSince the HTML version of the documentation is more commonly checked
7e68fce3cbd2246164e045a51ecd77f9f26680edndduring development, the PDF version may contain some errors and
7e68fce3cbd2246164e045a51ecd77f9f26680edndinconsistencies, especially in formatting. If you have difficulty
7e68fce3cbd2246164e045a51ecd77f9f26680edndreading a part of this file, please consult the HTML version
7e68fce3cbd2246164e045a51ecd77f9f26680edndof the documentation on the Apache HTTP Server website at
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\href{http://httpd.apache.org/docs-2.0/}{http://httpd.apache.org/docs-2.0/}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680edndThe Apache HTTP Server Documentation is maintained by the Apache HTTP
3726777f47ac4bba3e21b075905959bbea47e72eerikabeleServer Documentation Project. More information is available at
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\href{http://httpd.apache.org/docs-project/}{http://httpd.apache.org/docs-project/}
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd\tableofcontents
3726777f47ac4bba3e21b075905959bbea47e72eerikabele\mainmatter
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:text>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:for-each select="category">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:text>\chapter{</xsl:text>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:apply-templates select="title" mode="printcat"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:text>}
66e48875fca2df6669dab4f2690ee36c6913c0ffnd</xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:if test="@id = 'modules'">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="document($allmodules)/modulefilelist" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:for-each>
bdbf46e4950b6f633073f803486962e82c2f086and
bdbf46e4950b6f633073f803486962e82c2f086and<xsl:text>\end{document}</xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:template>
e5343521634b71f10f0e88374d88bd5a45f75f68nd
e5343521634b71f10f0e88374d88bd5a45f75f68nd<xsl:template match="page">
e5343521634b71f10f0e88374d88bd5a45f75f68nd<xsl:text>\include{</xsl:text>
e5343521634b71f10f0e88374d88bd5a45f75f68nd<xsl:choose>
e5343521634b71f10f0e88374d88bd5a45f75f68nd<xsl:when test="contains(@href,'.')">
e5343521634b71f10f0e88374d88bd5a45f75f68nd <xsl:value-of select="substring-before(@href,'.')"/>
e5343521634b71f10f0e88374d88bd5a45f75f68nd</xsl:when>
e5343521634b71f10f0e88374d88bd5a45f75f68nd<xsl:otherwise>
e5343521634b71f10f0e88374d88bd5a45f75f68nd <xsl:value-of select="concat(@href,'index')"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:otherwise>
bdbf46e4950b6f633073f803486962e82c2f086and</xsl:choose>
bdbf46e4950b6f633073f803486962e82c2f086and<xsl:text>}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:text>
bdbf46e4950b6f633073f803486962e82c2f086and</xsl:template>
bdbf46e4950b6f633073f803486962e82c2f086and
bdbf46e4950b6f633073f803486962e82c2f086and<xsl:template match="category/title" mode="printcat">
0767de1bfa7e1c323b14f839d773902d65611246humbedooh<xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
d177004a74b061338daf7f2603197d673ed76d36kess<xsl:template match="category/title"></xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:template match="modulefilelist">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:apply-templates/>
0767de1bfa7e1c323b14f839d773902d65611246humbedooh</xsl:template>
0767de1bfa7e1c323b14f839d773902d65611246humbedooh
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:template match="modulefile">
e5343521634b71f10f0e88374d88bd5a45f75f68nd<xsl:text>\include{mod/</xsl:text>
bdbf46e4950b6f633073f803486962e82c2f086and<xsl:value-of select="substring-before(.,'.')"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:text>}
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd<xsl:template match="summary">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:template name="replace-string">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:param name="text"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:param name="replace"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:param name="with"/>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd <xsl:when test="not(contains($text,$replace))">
66e48875fca2df6669dab4f2690ee36c6913c0ffnd <xsl:value-of select="$text"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:when>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="substring-before($text,$replace)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$with"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:call-template name="replace-string">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="text" select="substring-after($text,$replace)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="replace" select="$replace"/>
480bee29abcc415b6b8c18d2ecbf2c5f88f1f05bnd <xsl:with-param name="with" select="$with"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:call-template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- ==================================================================== -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- Take care of all the LaTeX special characters. -->
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd<!-- Silly multi-variable technique used to avoid deep recursion. -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<!-- ==================================================================== -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:template match="text()">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:call-template name="ltescape">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="string" select="."/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele</xsl:call-template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:template name="ltescape">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:param name="string"/>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:variable name="result1">
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="contains($string, '\')">
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:call-template name="replace-string">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="replace" select="'\'"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="with" select="'\textbackslash '"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="text" select="normalize-space($string)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:call-template>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd </xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:otherwise>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:value-of select="$string"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:otherwise>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:choose>
ba5874d287f4d19d1a336e9195c73de9ab34fa50slive</xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:variable name="result2">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd <xsl:when test="contains($result1, '$')">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="replace-string">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:with-param name="replace" select="'$'"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="with" select="'\$'"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="text" select="$result1"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:call-template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:when>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd <xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$result1"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:otherwise>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<xsl:variable name="result3">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd <xsl:when test="contains($result2, '{')">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="replace-string">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="replace" select="'{'"/>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:with-param name="with" select="'\{'"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="text" select="$result2"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:call-template>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$result2"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:variable name="result4">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="contains($result3, '}')">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="replace-string">
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:with-param name="replace" select="'}'"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:with-param name="with" select="'\}'"/>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end <xsl:with-param name="text" select="$result3"/>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end </xsl:call-template>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end </xsl:when>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end <xsl:otherwise>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd <xsl:value-of select="$result3"/>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end </xsl:otherwise>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end </xsl:choose>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd</xsl:variable>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end<!-- The '[' and ']' characters don't, in general, need to be
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end escaped. But there are times when it is ambiguous whether
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end [ is the beginning of an optional argument or a literal '['.
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end Hence, it is safer to protect the literal ones with {}. -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:variable name="result5">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="contains($result4, '[')">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="replace-string">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="replace" select="'['"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="with" select="'{[}'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="text" select="$result4"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:call-template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:otherwise>
5effc8b39fae5cd169d17f342bfc265705840014rbowen <xsl:value-of select="$result4"/>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd </xsl:otherwise>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd </xsl:choose>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd</xsl:variable>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd
21041d71aa640dca78abab65ea293171b668bc20nd<xsl:variable name="result6">
21041d71aa640dca78abab65ea293171b668bc20nd <xsl:choose>
21041d71aa640dca78abab65ea293171b668bc20nd <xsl:when test="contains($result5, ']')">
21041d71aa640dca78abab65ea293171b668bc20nd <xsl:call-template name="replace-string">
21041d71aa640dca78abab65ea293171b668bc20nd <xsl:with-param name="replace" select="']'"/>
21041d71aa640dca78abab65ea293171b668bc20nd <xsl:with-param name="with" select="'{]}'"/>
21041d71aa640dca78abab65ea293171b668bc20nd <xsl:with-param name="text" select="$result5"/>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd </xsl:call-template>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd </xsl:when>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd <xsl:otherwise>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd <xsl:value-of select="$result5"/>
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd </xsl:otherwise>
21041d71aa640dca78abab65ea293171b668bc20nd </xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<xsl:variable name="result7">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
fffabed77cd6264da64fa3d267243d1d76897049nd <xsl:when test="contains($result6, '&quot;')">
fffabed77cd6264da64fa3d267243d1d76897049nd <xsl:call-template name="replace-string">
71bfb81066213909d835d0a33723e8847486cd15humbedooh <xsl:with-param name="replace" select="'&quot;'"/>
0767de1bfa7e1c323b14f839d773902d65611246humbedooh <xsl:with-param name="with" select="'\texttt{&quot;}'"/>
0767de1bfa7e1c323b14f839d773902d65611246humbedooh <xsl:with-param name="text" select="$result6"/>
fffabed77cd6264da64fa3d267243d1d76897049nd </xsl:call-template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:otherwise>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:value-of select="$result6"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:otherwise>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:choose>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd</xsl:variable>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd
8cfbcde8e416fd60132dd4324c42a5098da156cfnd
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:call-template name="replace-string">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="replace" select="'_'"/>
e5343521634b71f10f0e88374d88bd5a45f75f68nd <xsl:with-param name="with" select="'\_'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="text">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:call-template name="replace-string">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="replace" select="'#'"/>
66e48875fca2df6669dab4f2690ee36c6913c0ffnd <xsl:with-param name="with" select="'\#'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="text">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:call-template name="replace-string">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="replace" select="'%'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="with" select="'\%'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="text">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:call-template name="replace-string">
99e4eb246ec234156eb878835d4e1b4e2f48c499nd <xsl:with-param name="replace" select="'&gt;'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="with" select="'\textgreater{}'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="text">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:call-template name="replace-string">
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="replace" select="'&lt;'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="with" select="'\textless{}'"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd <xsl:with-param name="text">
66e48875fca2df6669dab4f2690ee36c6913c0ffnd <xsl:call-template name="replace-string">
99e4eb246ec234156eb878835d4e1b4e2f48c499nd <xsl:with-param name="replace" select="'~'"/>
99e4eb246ec234156eb878835d4e1b4e2f48c499nd <xsl:with-param name="with" select="'\textasciitilde{}'"/>
99e4eb246ec234156eb878835d4e1b4e2f48c499nd <xsl:with-param name="text">
99e4eb246ec234156eb878835d4e1b4e2f48c499nd <xsl:call-template name="replace-string">
99e4eb246ec234156eb878835d4e1b4e2f48c499nd <xsl:with-param name="replace" select="'^'"/>
c804424d87da28b21a0eece7e377a4075c7784ednd <xsl:with-param name="with" select="'\^{}'"/>
61d237f7e3a54089a7514227d663fac296d7d8f0bnicholes <xsl:with-param name="text">
61d237f7e3a54089a7514227d663fac296d7d8f0bnicholes <xsl:call-template name="replace-string">
61d237f7e3a54089a7514227d663fac296d7d8f0bnicholes <xsl:with-param name="replace" select="'&amp;'"/>
61d237f7e3a54089a7514227d663fac296d7d8f0bnicholes <xsl:with-param name="with" select="'\&amp;'"/>
c804424d87da28b21a0eece7e377a4075c7784ednd <xsl:with-param name="text" select="$result7"/>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:call-template>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:with-param>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:call-template>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:with-param>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:call-template>
99e4eb246ec234156eb878835d4e1b4e2f48c499nd </xsl:with-param>
99e4eb246ec234156eb878835d4e1b4e2f48c499nd </xsl:call-template>
99e4eb246ec234156eb878835d4e1b4e2f48c499nd </xsl:with-param>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:call-template>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:with-param>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd </xsl:call-template>
951c558544841b7f77eb1618619b531c99c24606nd </xsl:with-param>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end </xsl:call-template>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end </xsl:with-param>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end </xsl:call-template>
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end
f4a6ce7d0d0311e4da2d4df6812263c562a05a3end</xsl:template>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd
8cfbcde8e416fd60132dd4324c42a5098da156cfnd</xsl:stylesheet>
8cfbcde8e416fd60132dd4324c42a5098da156cfnd