This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Selecting User Defined Language tags for output in AutoTOC and AutoIndex
- From: "Mykone Saunders" <mykone at i3dvr dot com>
- To: <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 7 Nov 2003 14:21:40 -0500
- Subject: [docbook-apps] 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.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.