if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">Direktiv</message>
<message id="nodirectives">Dette modul har ingen direktiver.</message>
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive" replace-space-with="-">Direktive</message>
<message id="nodirectives">Dieses Modul enthält keine
Direktiven.</message>
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">Directive</message>
<message id="nodirectives">This module provides no
directives.</message>
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">Directiva</message>
<message id="nodirectives">Este módulo no suministra ninguna
directiva.</message>
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
- <message id="directive">Directive</message>
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
+ <message id="directive" before-name="no">Directive</message>
<message id="nodirectives">Ce module ne fournit aucune directive.</message>
<!-- Used in summaries -->
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">ディレクティブ</message>
<message id="nodirectives">このモジュールにディレクティブはありません。</message>
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">Áö½Ã¾î</message>
<message id="nodirectives">ÀÌ ¸ðµâ¿¡´Â Áö½Ã¾î°¡ ¾ø½À´Ï´Ù.</message>
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">Diretrizes</message>
<message id="nodirectives">Esse módulo não fornece nenhuma diretriz.</message>
<!-- Used for directive lists -->
<message id="directives">äÉÒÅËÔÉ×Ù</message>
+ <!-- the optional attribute replace-space-with takes a string.
+ if present, the space between <directive name> and 'Directive'
+ in directivesynopsis headings will be replaced by the given string.
+ (see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">äÉÒÅËÔÉ×Á</message>
<message id="nodirectives">üÔÏÔ ÍÏÄÕÌØ ÎÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÎÉËÁËÉÈ
ÄÉÒÅËÔÉ×.</message>
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">Yönergesi</message>
<message id="nodirectives">Bu modül yönerge içermez.</message>
if present, the space between <directive name> and 'Directive'
in directivesynopsis headings will be replaced by the given string.
(see de.xml for an example) -->
+ <!-- the optional attribute before-name takes a string.
+ if "yes", the 'Directive' word is place before the name instead of
+ being placed behind. See fr.xml for an example. -->
<message id="directive">指令</message>
<message id="nodirectives">此模块没有提供指令。</message>
<xsl:template match="directivesynopsis/name">
<xsl:text>\subsection*{</xsl:text>
-<xsl:call-template name="simpledirname"/>
+
+<xsl:choose>
+<xsl:when test="$message [@id='directive']/@before-name = 'yes'">
+ <xsl:value-of select="$message[@id='directive']" />
+
<xsl:choose>
<xsl:when test="$message[@id='directive']/@replace-space-with">
<xsl:value-of select="$message[@id='directive']/@replace-space-with"/>
</xsl:otherwise>
</xsl:choose>
-<xsl:value-of select="$message[@id='directive']" />
+ <xsl:call-template name="simpledirname"/>
+</xsl:when>
+
+<xsl:otherwise>
+ <xsl:call-template name="simpledirname"/>
+
+ <xsl:choose>
+ <xsl:when test="$message[@id='directive']/@replace-space-with">
+ <xsl:value-of select="$message[@id='directive']/@replace-space-with"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:value-of select="$message[@id='directive']" />
+</xsl:otherwise>
+</xsl:choose>
+
<xsl:text>}\label{</xsl:text>
<xsl:value-of select="concat('/mod/', //modulesynopsis/name, ':', translate(., $uppercase, $lowercase))"/>
<xsl:text>}\hypertarget{</xsl:text>
<!-- Directive heading gets both mixed case and lowercase -->
<!-- anchors, and includes lt/gt only for "section" directives -->
<h2>
- <a id="{name}" name="{name}">
- <xsl:if test="@type='section'"><</xsl:if>
- <xsl:value-of select="name" />
- <xsl:if test="@type='section'">></xsl:if>
- </a>
-
<xsl:choose>
<xsl:when test="$message
- [@id='directive']/@replace-space-with">
- <xsl:value-of select="$message
- [@id='directive']/@replace-space-with"/>
+ [@id='directive']/@before-name = 'yes'">
+ <a id="{$lowername}" name="{$lowername}">
+ <xsl:value-of select="$message[@id='directive']" />
+ </a>
+
+ <xsl:choose>
+ <xsl:when test="$message
+ [@id='directive']/@replace-space-with">
+ <xsl:value-of select="$message
+ [@id='directive']/@replace-space-with"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <a id="{name}" name="{name}">
+ <xsl:if test="@type='section'"><</xsl:if>
+ <xsl:value-of select="name" />
+ <xsl:if test="@type='section'">></xsl:if>
+ </a>
</xsl:when>
+
<xsl:otherwise>
- <xsl:text> </xsl:text>
+ <a id="{name}" name="{name}">
+ <xsl:if test="@type='section'"><</xsl:if>
+ <xsl:value-of select="name" />
+ <xsl:if test="@type='section'">></xsl:if>
+ </a>
+
+ <xsl:choose>
+ <xsl:when test="$message
+ [@id='directive']/@replace-space-with">
+ <xsl:value-of select="$message
+ [@id='directive']/@replace-space-with"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <a id="{$lowername}" name="{$lowername}">
+ <xsl:value-of select="$message[@id='directive']" />
+ </a>
</xsl:otherwise>
</xsl:choose>
-
- <a id="{$lowername}" name="{$lowername}">
- <xsl:value-of select="$message[@id='directive']" />
- </a>
</h2>&lf;
<!-- Directive header -->