[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Selecting User Defined Language tags for output in AutoTOC and AutoIndex
Hello I need some help customizing Docbook XSL AutoToC and AutoIndex feature. I am writing a technical manual in english, french, and spanish. I added elements to the DTD to translate any content areas see below. (Pardon my translation) <translations> <english>Hello World</english> <spanish>Hola Globa</spanish> <french>Halo Globé</french> </translations> I then customize XSL as shown below. <xsl:param name="OutLang">es</xsl:param> <xsl:template match="translations"> <xsl:if test="$OutLang = 'es'"> <xsl:value-of select="spanish"/> </xsl:if> <xsl:if test="$OutLang = 'en'"> <xsl:value-of select="english"/> </xsl:if> <xsl:if test="$OutLang = 'fr'"> <xsl:value-of select="french"/> </xsl:if> </xsl:template> The output works for anywhere in the document body except for Auto TOC. I haven't tried the AutoIndex as yet. I'm quite sure it would be same problem. Can you tell me if it's possible to add a customization layer to switch between the above languages in the AutoTOC and AutoIndex sections? Thanks in advance.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]