[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Writing Hebrew in docbook
Bob Stayton wrote: > The snapshot doesn't seem to be automatically building today. It built > yesterday, but it did not start today after I checked in a change several > hours ago. What a pity. Hillel, add following template into your customization layer. It contains fix that I submited into CVS recently: <xsl:template name="language.attribute"> <xsl:param name="node" select="."/> <xsl:variable name="language"> <xsl:choose> <xsl:when test="$l10n.gentext.language != ''"> <xsl:value-of select="$l10n.gentext.language"/> </xsl:when> <xsl:otherwise> <!-- can't do this one step: attributes are unordered! --> <xsl:variable name="lang-scope" select="$node/ancestor-or-self::* [@lang or @xml:lang][1]"/> <xsl:variable name="lang-attr" select="($lang-scope/@lang | $lang-scope/@xml:lang)[1]"/> <xsl:choose> <xsl:when test="string($lang-attr) = ''"> <xsl:value-of select="$l10n.gentext.default.language"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$lang-attr"/> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="$language != ''"> <xsl:attribute name="lang"> <xsl:value-of select="$language"/> </xsl:attribute> </xsl:if> <!-- FIXME: This is sort of hack, but it was the easiest way to add at least partial support for dir attribute --> <xsl:copy-of select="ancestor-or-self::*[@dir][1]/@dir"/> </xsl:template> -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------
S/MIME Cryptographic Signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]