| <?xml version='1.0'?> |
| |
| |
| |
| |
| |
| |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
| |
| <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <xsl:param name="generate.consistent.ids" select="1"/> |
| |
| |
| <xsl:template match="citerefentry[not(@project)]"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:value-of select="refentrytitle"/><xsl:text>.html#</xsl:text> |
| <xsl:value-of select="refentrytitle/@target"/> |
| </xsl:attribute> |
| <xsl:call-template name="inline.charseq"/> |
| </a> |
| </xsl:template> |
| |
| <xsl:template match="citerefentry[@project='man-pages'] | citerefentry[manvolnum='2'] | citerefentry[manvolnum='4']"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>http://man7.org/linux/man-pages/man</xsl:text> |
| <xsl:value-of select="manvolnum"/> |
| <xsl:text>/</xsl:text> |
| <xsl:value-of select="refentrytitle"/> |
| <xsl:text>.</xsl:text> |
| <xsl:value-of select="manvolnum"/> |
| <xsl:text>.html</xsl:text> |
| </xsl:attribute> |
| <xsl:call-template name="inline.charseq"/> |
| </a> |
| </xsl:template> |
| |
| <xsl:template match="citerefentry[@project='die-net']"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>http://linux.die.net/man/</xsl:text> |
| <xsl:value-of select="manvolnum"/> |
| <xsl:text>/</xsl:text> |
| <xsl:value-of select="refentrytitle"/> |
| </xsl:attribute> |
| <xsl:call-template name="inline.charseq"/> |
| </a> |
| </xsl:template> |
| |
| <xsl:template match="citerefentry[@project='wireguard']"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>https://git.zx2c4.com/WireGuard/about/src/tools/</xsl:text> |
| <xsl:value-of select="refentrytitle"/> |
| <xsl:text>.</xsl:text> |
| <xsl:value-of select="manvolnum"/> |
| </xsl:attribute> |
| <xsl:call-template name="inline.charseq"/> |
| </a> |
| </xsl:template> |
| |
| <xsl:template match="citerefentry[@project='mankier']"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>https://www.mankier.com/</xsl:text> |
| <xsl:value-of select="manvolnum"/> |
| <xsl:text>/</xsl:text> |
| <xsl:value-of select="refentrytitle"/> |
| </xsl:attribute> |
| <xsl:call-template name="inline.charseq"/> |
| </a> |
| </xsl:template> |
| |
| <xsl:template match="citerefentry[@project='archlinux']"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>https://www.archlinux.org/</xsl:text> |
| <xsl:value-of select="refentrytitle"/> |
| <xsl:text>/</xsl:text> |
| <xsl:value-of select="refentrytitle"/> |
| <xsl:text>.</xsl:text> |
| <xsl:value-of select="manvolnum"/> |
| <xsl:text>.html</xsl:text> |
| </xsl:attribute> |
| <xsl:call-template name="inline.charseq"/> |
| </a> |
| </xsl:template> |
| |
| <xsl:template match="citerefentry[@project='freebsd']"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>https://www.freebsd.org/cgi/man.cgi?</xsl:text> |
| <xsl:value-of select="refentrytitle"/> |
| <xsl:text>(</xsl:text> |
| <xsl:value-of select="manvolnum"/> |
| <xsl:text>)</xsl:text> |
| </xsl:attribute> |
| <xsl:call-template name="inline.charseq"/> |
| </a> |
| </xsl:template> |
| |
| <xsl:template match="citerefentry[@project='dbus']"> |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>http://dbus.freedesktop.org/doc/</xsl:text> |
| <xsl:value-of select="refentrytitle"/> |
| <xsl:text>.</xsl:text> |
| <xsl:value-of select="manvolnum"/> |
| <xsl:text>.html</xsl:text> |
| </xsl:attribute> |
| <xsl:call-template name="inline.charseq"/> |
| </a> |
| </xsl:template> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <xsl:template name="generateID"> |
| |
| <xsl:param name="keyNode"/> |
| |
| <xsl:param name="templateID"/> |
| <xsl:variable name="conflictSource" select="preceding::refsect1/title|preceding::refsect1/info/title| |
| preceding::refsect2/title|preceding::refsect2/info/title| |
| preceding::varlistentry/term[1]"/> |
| <xsl:variable name="conflictCount" select="count($conflictSource[. = $keyNode])"/> |
| <xsl:choose> |
| |
| <xsl:when test="$conflictCount = 0"> |
| <xsl:value-of select="$templateID"/> |
| </xsl:when> |
| <xsl:otherwise> |
| <xsl:value-of select="concat($templateID, $conflictCount)"/> |
| </xsl:otherwise> |
| </xsl:choose> |
| </xsl:template> |
| |
| |
| |
| |
| |
| <xsl:template name="permalink"> |
| <xsl:param name="nodeType"/> |
| <xsl:param name="nodeContent"/> |
| <xsl:param name="linkTitle"/> |
| |
| |
| <xsl:param name="keyNode"/> |
| <xsl:param name="templateID"/> |
| |
| |
| |
| |
| |
| |
| |
| <xsl:variable name="generatedID"> |
| <xsl:call-template name="generateID"> |
| <xsl:with-param name="keyNode" select="$keyNode"/> |
| <xsl:with-param name="templateID" select="$templateID"/> |
| </xsl:call-template> |
| </xsl:variable> |
| |
| <xsl:element name="{$nodeType}"> |
| <xsl:attribute name="id"> |
| <xsl:value-of select="$generatedID"/> |
| </xsl:attribute> |
| <xsl:apply-templates select="$nodeContent"/> |
| <a class="headerlink" title="{$linkTitle}" href="#{$generatedID}">¶</a> |
| </xsl:element> |
| </xsl:template> |
| |
| |
| <xsl:template name="headerlink"> |
| <xsl:param name="nodeType"/> |
| <xsl:call-template name="permalink"> |
| <xsl:with-param name="nodeType" select="$nodeType"/> |
| <xsl:with-param name="linkTitle" select="'Permalink to this headline'"/> |
| <xsl:with-param name="nodeContent" select="node()"/> |
| <xsl:with-param name="keyNode" select="."/> |
| |
| |
| |
| |
| |
| <xsl:with-param name="templateID"> |
| <xsl:call-template name="inline.charseq"/> |
| </xsl:with-param> |
| </xsl:call-template> |
| </xsl:template> |
| |
| <xsl:template match="refsect1/title|refsect1/info/title"> |
| |
| <xsl:call-template name="headerlink"> |
| <xsl:with-param name="nodeType" select="'h2'"/> |
| </xsl:call-template> |
| </xsl:template> |
| |
| <xsl:template match="refsect2/title|refsect2/info/title"> |
| <xsl:call-template name="headerlink"> |
| <xsl:with-param name="nodeType" select="'h3'"/> |
| </xsl:call-template> |
| </xsl:template> |
| |
| <xsl:template match="varlistentry"> |
| <xsl:call-template name="permalink"> |
| <xsl:with-param name="nodeType" select="'dt'"/> |
| <xsl:with-param name="linkTitle" select="'Permalink to this term'"/> |
| <xsl:with-param name="nodeContent" select="term"/> |
| <xsl:with-param name="keyNode" select="term[1]"/> |
| |
| |
| |
| |
| |
| <xsl:with-param name="templateID"> |
| <xsl:call-template name="inline.charseq"> |
| <xsl:with-param name="content" select="term[1]"/> |
| </xsl:call-template> |
| </xsl:with-param> |
| </xsl:call-template> |
| <dd> |
| <xsl:apply-templates select="listitem"/> |
| </dd> |
| </xsl:template> |
| |
| |
| |
| <xsl:template name="user.header.content"> |
| <style> |
| a.headerlink { |
| color: #c60f0f; |
| font-size: 0.8em; |
| padding: 0 4px 0 4px; |
| text-decoration: none; |
| visibility: hidden; |
| } |
| |
| a.headerlink:hover { |
| background-color: #c60f0f; |
| color: white; |
| } |
| |
| h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink { |
| visibility: visible; |
| } |
| </style> |
| |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>index.html</xsl:text> |
| </xsl:attribute> |
| <xsl:text>Index </xsl:text> |
| </a>· |
| <a> |
| <xsl:attribute name="href"> |
| <xsl:text>systemd.directives.html</xsl:text> |
| </xsl:attribute> |
| <xsl:text>Directives </xsl:text> |
| </a> |
| |
| <span style="float:right"> |
| <xsl:text>systemd </xsl:text> |
| <xsl:value-of select="$systemd.version"/> |
| </span> |
| <hr/> |
| </xsl:template> |
| |
| <xsl:template match="literal"> |
| <xsl:text>"</xsl:text> |
| <xsl:call-template name="inline.monoseq"/> |
| <xsl:text>"</xsl:text> |
| </xsl:template> |
| |
| |
| <xsl:output method="html" encoding="UTF-8" indent="no"/> |
| |
| </xsl:stylesheet> |