lib/isodoc/itu/itu.resolution.xsl in metanorma-itu-1.2.10 vs lib/isodoc/itu/itu.resolution.xsl in metanorma-itu-1.2.11

- old
+ new

@@ -2216,11 +2216,16 @@ <xsl:variable name="table_attributes"> <attribute name="table-layout">fixed</attribute> - <attribute name="width">100%</attribute> + <attribute name="width"> + <xsl:choose> + <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when> + <xsl:otherwise>100%</xsl:otherwise> + </xsl:choose> + </attribute> <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute> <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute> @@ -3424,10 +3429,14 @@ </xsl:choose> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </fo:inline> + </xsl:template><xsl:template match="*[local-name()='underline']"> + <fo:inline text-decoration="underline"> + <xsl:apply-templates/> + </fo:inline> </xsl:template><xsl:template match="*[local-name()='del']"> <fo:inline font-size="10pt" color="red" text-decoration="line-through"> <xsl:apply-templates/> </fo:inline> </xsl:template><xsl:template match="text()[ancestor::*[local-name()='smallcap']]"> @@ -4982,10 +4991,12 @@ </xsl:if> </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'initial']/text()" mode="strip"> <xsl:value-of select="translate(.,'. ','')"/> </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip"> <xsl:value-of select="substring(.,1,1)"/> + </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title"> + <fo:inline><xsl:apply-templates/></fo:inline> </xsl:template><xsl:template name="convertDate"> <xsl:param name="date"/> <xsl:param name="format" select="'short'"/> <xsl:variable name="year" select="substring($date, 1, 4)"/> <xsl:variable name="month" select="substring($date, 6, 2)"/> @@ -5261,8 +5272,13 @@ <xsl:variable name="curr_lang"> <xsl:call-template name="getLang"/> </xsl:variable> - <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/> + <xsl:choose> + <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"> + <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/> + </xsl:when> + <xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise> + </xsl:choose> </xsl:template></xsl:stylesheet> \ No newline at end of file