You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Dr. Hans M. Rupp" <ha...@danet.de> on 2002/08/23 17:31:05 UTC

i18n transformer problem II

Hallo!

When have the following problem.
i18n tags which are included in xsl templates which produce the main
body of the html output are processed correctly.
However at some times I want to call a named template which is
physically located in a different xsl file to produce the right i18n tag
like:

<xsl:template name="MapWeatherCriterionEnum">
 <xsl:param name="constant" />
 <xsl:variable name="enumType" select="'WeatherCriterionEnum'" />
 <xsl:choose>
  <xsl:when test="$constant='WEATHER'"><i18n:text
i18n:key="WeatherCriterionEnum.WEATHER">WEATHER</i18n:text></xsl:when>
  <xsl:when test="$constant='TEMPERATURE_CURRENT'"><i18n:text
i18n:key="WeatherCriterionEnum.TEMPERATURE_CURRENT">TEMPERATURE_CURRENT</i18n:text></xsl:when>

.......

The i18n tags produced by named templates are never touched by the i18n
Transformer!

The output before i18n:

<td class="Text"><i18n:text
i18n:key="WeatherCriterionEnum.TEMPERATURE_CURRENT">TEMPERATURE_CURRENT</i18n:text></td>

output after i18n:

<td class="Text">
<i18n:text
i18n:key="WeatherCriterionEnum.TEMPERATURE_CURRENT">TEMPERATURE_CURRENT</i18n:text>

</td>

We use Cocoon 2.03

I would be gratefull for any ideas.

Many thanks,

Hans


--------------------------------------------
Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

------------------------------------------



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>