<!-- for use with db2latex-0.6 using docbook-xsl-1.45 --> <xsl:import href="file:/d:/usr/share/sgml/dbxsl145/latex06/docbook.xsl"/> <xsl:param name="my.time.stamp">$Date: 2001/11/25 16:22:14 steffen$</xsl:param> <xsl:output method="text" encoding="ISO-8859-1" indent="yes"/> <xsl:variable name="latex.override">% ----------------------- Define your Preamble Here \documentclass[english,a4]{book} \usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn} \usepackage{graphicx} \usepackage{float} \usepackage{times} %%\usepackage{algorithmic} \usepackage[dvips]{hyperref} \DeclareGraphicsExtensions{.eps} % ------------------------ End of you preamble. </xsl:variable> <!-- resolve incompatibilities between db2latex-0.6 and docbook-xsl-1.45 --> <!-- taken from: dbxsl145/fo/graphics.xsl --> <xsl:template name="is.graphic.extension"> <xsl:param name="ext"></xsl:param> <xsl:if test="$ext = 'png' or $ext = 'pdf' or $ext = 'jpeg' or $ext = 'jpg' or $ext = 'gif' or $ext = 'bmp'">1</xsl:if> </xsl:template> <xsl:template name="is.graphic.format"> <xsl:param name="format"></xsl:param> <xsl:if test="$format = 'PNG' or $format = 'PDF' or $format = 'JPG' or $format = 'JPEG' or $format = 'linespecific' or $format = 'GIF' or $format = 'GIF87a' or $format = 'GIF89a' or $format = 'BMP'">1</xsl:if> </xsl:template> <!-- taken from within a comment in: dbxsl145/common/common.xsl --> <!-- those templates were still in use in dbxsl134 but no more in 145 --> <xsl:template name="xref.g.subst"> <xsl:param name="string"></xsl:param> <xsl:param name="target" select="."/> <xsl:variable name="subst">%g</xsl:variable> <xsl:choose> <xsl:when test="contains($string, $subst)"> <xsl:value-of select="substring-before($string, $subst)"/> <xsl:call-template name="gentext.element.name"> <xsl:with-param name="element.name" select="name($target)"/> </xsl:call-template> <xsl:call-template name="xref.g.subst"> <xsl:with-param name="string" select="substring-after($string, $subst)"/> <xsl:with-param name="target" select="$target"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$string"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="xref.t.subst"> <xsl:param name="string"></xsl:param> <xsl:param name="target" select="."/> <xsl:variable name="subst">%t</xsl:variable> <xsl:choose> <xsl:when test="contains($string, $subst)"> <xsl:call-template name="xref.g.subst"> <xsl:with-param name="string" select="substring-before($string, $subst)"/> <xsl:with-param name="target" select="$target"/> </xsl:call-template> <xsl:call-template name="title.xref"> <xsl:with-param name="target" select="$target"/> </xsl:call-template> <xsl:call-template name="xref.t.subst"> <xsl:with-param name="string" select="substring-after($string, $subst)"/> <xsl:with-param name="target" select="$target"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="xref.g.subst"> <xsl:with-param name="string" select="$string"/> <xsl:with-param name="target" select="$target"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="xref.n.subst"> <xsl:param name="string"></xsl:param> <xsl:param name="target" select="."/> <xsl:variable name="subst">%n</xsl:variable> <xsl:choose> <xsl:when test="contains($string, $subst)"> <xsl:call-template name="xref.t.subst"> <xsl:with-param name="string" select="substring-before($string, $subst)"/> <xsl:with-param name="target" select="$target"/> </xsl:call-template> <xsl:call-template name="number.xref"> <xsl:with-param name="target" select="$target"/> </xsl:call-template> <xsl:call-template name="xref.t.subst"> <xsl:with-param name="string" select="substring-after($string, $subst)"/> <xsl:with-param name="target" select="$target"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="xref.t.subst"> <xsl:with-param name="string" select="$string"/> <xsl:with-param name="target" select="$target"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="subst.xref.text"> <xsl:param name="xref.text"></xsl:param> <xsl:param name="target" select="."/> <xsl:call-template name="xref.n.subst"> <xsl:with-param name="string" select="$xref.text"/> <xsl:with-param name="target" select="$target"/> </xsl:call-template> </xsl:template> <!-- taken from db2latex051/latex/normalize-scape.mod.xsl --> <!-- overwritten partly because of my corrections of gentext/de.xml --> <xsl:template name="scape" > <xsl:param name="string"/> <xsl:call-template name="string-replace"> <xsl:with-param name="to">$\backslash$</xsl:with-param> <xsl:with-param name="from">\</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">$<$</xsl:with-param> <xsl:with-param name="from"><</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">$>$</xsl:with-param> <xsl:with-param name="from">></xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">\{</xsl:with-param> <xsl:with-param name="from">{</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">\}</xsl:with-param> <xsl:with-param name="from">}</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">\&</xsl:with-param> <xsl:with-param name="from">&</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">\#</xsl:with-param> <xsl:with-param name="from">#</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">\_</xsl:with-param> <xsl:with-param name="from">_</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">\$</xsl:with-param> <xsl:with-param name="from">$</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">\%</xsl:with-param> <xsl:with-param name="from">%</xsl:with-param> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">---</xsl:with-param> <xsl:with-param name="from">—</xsl:with-param><!--—=—--> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">--</xsl:with-param> <xsl:with-param name="from">–</xsl:with-param><!--–=–--> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">`"</xsl:with-param> <xsl:with-param name="from">‚</xsl:with-param><!--‚=‚--> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">´"</xsl:with-param> <xsl:with-param name="from">“</xsl:with-param><!--“=“--> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">`</xsl:with-param> <xsl:with-param name="from">‘</xsl:with-param><!--lsquo=8216--> <xsl:with-param name="string"> <xsl:call-template name="string-replace"> <xsl:with-param name="to">´"</xsl:with-param> <xsl:with-param name="from">’</xsl:with-param><!--’=’--> <xsl:with-param name="string" select="$string"></xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:template> <!-- taken from: db2latex06/latex/normalize-scape.mod.xsl --> <!-- each and every text() has to be 'scaped', e.g. because of — --> <xsl:template match="text()"> <xsl:call-template name="scape"> <xsl:with-param name="string" select="."/> </xsl:call-template> </xsl:template> <!-- taken from: dblatex06/latex/inline.mod.xsl --> <xsl:template name="inline.italicseq"> <xsl:param name="content"> <xsl:apply-templates/> </xsl:param> <xsl:text> {\em </xsl:text> <!-- <xsl:copy-of select="$content"/> --> <xsl:apply-templates/> <!-- hopefully this uses text()-template with scape subproc --> <xsl:text> }</xsl:text> </xsl:template> <!-- taken from: dbxsl145/common/l10n.xsl --> <xsl:template name="gentext.dingbat"> <xsl:param name="dingbat">bullet</xsl:param> <xsl:param name="lang"> <xsl:call-template name="l10n.language"/> </xsl:param> <xsl:variable name="local.l10n.dingbat" select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:dingbat[@key=$dingbat])[1]"/> <xsl:variable name="l10n.dingbat" select="($l10n.xml/l:i18n/l:l10n[@language=$lang]/l:dingbat[@key=$dingbat])[1]"/> <xsl:choose> <xsl:when test="count($local.l10n.dingbat) > 0"> <xsl:value-of select="$local.l10n.dingbat/@text"/> </xsl:when> <xsl:when test="count($l10n.dingbat) > 0"> <!-- <xsl:value-of select="$l10n.dingbat/@text"/> --> <xsl:call-template name="scape"> <!-- hopefully this substitutes invalid output chars --> <xsl:with-param name="string" select="$l10n.dingbat/@text"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:message> <xsl:text>No "</xsl:text> <xsl:value-of select="$lang"/> <xsl:text>" localization of dingbat </xsl:text> <xsl:value-of select="$dingbat"/> <xsl:text> exists; using "en".</xsl:text> </xsl:message> <xsl:value-of select="($l10n.xml/l:i18n/l:l10n[@language='en']/l:dingbat[@key=$dingbat])[1]/@text"/> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet> <!-- Local variables: mode: xsl time-stamp-start: "\\$Date: \\\\?" time-stamp-end: "\\\\?\\$" time-stamp-format: "%:y/%02m/%02d %02H:%02M:%02S %u" sgml-omittag:nil sgml-shorttag:nil sgml-namecase-general:nil sgml-general-insert-case:lower sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:2 sgml-indent-data:nil sgml-parent-document:nil End: -->
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC