]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Apply the <surname> template only for french language.
authorben <ben@saturne.(none)>
Fri, 8 Jan 2016 21:23:10 +0000 (22:23 +0100)
committerben <ben@saturne.(none)>
Fri, 8 Jan 2016 21:23:10 +0000 (22:23 +0100)
data/xetex_param.xsl

index 83110418a40b56ccd83c2c9d852f2f39b1c60131..e1da970e9c33bc97821a760b7ac567db8c8ca0ea 100644 (file)
 </xsl:template>
 
 <xsl:template match="footnote//surname">
-  <xsl:text>\textsc{</xsl:text>
-  <xsl:apply-templates/>
-  <xsl:text>}</xsl:text>
+  <xsl:variable name="lang">
+    <xsl:call-template name="l10n.language"/>
+  </xsl:variable>
+
+  <xsl:choose>
+  <xsl:when test="$lang='fr'">
+    <xsl:text>\textsc{</xsl:text>
+    <xsl:apply-templates/>
+    <xsl:text>}</xsl:text>
+  </xsl:when>
+  <xsl:otherwise>
+    <xsl:apply-templates/>
+  </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 </xsl:stylesheet>