← Prev in month
← Prev in thread
fo:block language attribute
I have a variable set in the template called $lang and it’s value is: ‘fi’ When I get to the below condition, $lang is never recognized properly so I created a test that takes a hardcoded ‘fi’ and that renders correctly. Why doesn’t the 2nd block work when $lang = ‘fi’? <xsl:choose> <xsl:when test="$lang = 'fi'"> <fo:block xsl:use-attribute-sets="section.title.level1.properties" hyphenate="true" language="fi"> <xsl:copy-of select="string(.)"/> </fo:block> </xsl:when> <xsl:otherwise> <fo:block xsl:use-attribute-sets="section.title.level1.properties" hyphenate="true" language="$lang"> <xsl:copy-of select="string(.)"/> </fo:block> </xsl:otherwise> </xsl:choose> David White
← Prev in month
← Prev in thread