2013-07-10 12:38:06 +02:00
|
|
|
<?xml version='1.0' encoding="iso-8859-1"?>
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:str="http://exslt.org/strings"
|
|
|
|
extension-element-prefixes="str"
|
|
|
|
version='1.0'>
|
|
|
|
|
|
|
|
<!-- $FreeBSD$ -->
|
|
|
|
|
2013-11-13 07:10:37 +01:00
|
|
|
<!-- The localization layer is the same preference level of this file -->
|
|
|
|
<xsl:include href="http://www.FreeBSD.org/XML/lang/share/xml/freebsd-dblatex.xsl"/>
|
|
|
|
|
2013-07-10 13:57:13 +02:00
|
|
|
<xsl:param name="latex.encoding">utf8</xsl:param>
|
|
|
|
<xsl:param name="latex.hyperparam">linktocpage,colorlinks,linkcolor=blue,citecolor=blue,urlcolor=blue</xsl:param>
|
|
|
|
|
2013-07-21 16:36:42 +02:00
|
|
|
<xsl:template match="textobject"/>
|
|
|
|
|
2013-07-10 12:38:06 +02:00
|
|
|
<xsl:template match="filename">
|
|
|
|
<xsl:choose>
|
|
|
|
<!-- \Url cannot stand in a section heading -->
|
|
|
|
<xsl:when test="$filename.as.url='1' and
|
|
|
|
not(ancestor::title or ancestor::refentrytitle)">
|
|
|
|
<xsl:text>\nolinkurl{</xsl:text><xsl:apply-templates mode="tex.escape"/><xsl:text>}</xsl:text>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:call-template name="inline.monoseq"/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="text()" mode="tex.escape">
|
|
|
|
<xsl:variable name="t1" select="str:replace(., '\', '\\')"/>
|
|
|
|
<xsl:variable name="t2" select="str:replace($t1, '^', '\^')"/>
|
|
|
|
<xsl:variable name="t3" select="str:replace($t2, '~', '\~')"/>
|
|
|
|
<xsl:variable name="t4" select="str:replace($t3, '{', '\{')"/>
|
|
|
|
<xsl:variable name="t5" select="str:replace($t4, '}', '\}')"/>
|
|
|
|
<xsl:variable name="t6" select="str:replace($t5, '%', '\%')"/>
|
|
|
|
<xsl:variable name="t7" select="str:replace($t6, '$', '\$')"/>
|
|
|
|
<xsl:variable name="t8" select="str:replace($t7, '&', '\&')"/>
|
|
|
|
<xsl:variable name="t9" select="str:replace($t8, '#', '\#')"/>
|
|
|
|
<xsl:variable name="t10" select="str:replace($t9, '_', '\_')"/>
|
|
|
|
|
|
|
|
<xsl:value-of select="$t10"/>
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|