xsl-list
[Top] [All Lists]

Re: Fwd: [xsl] i18n and l10n question

2006-11-13 08:36:28

As I said before I originally assumed that you were using a "dictionary
lookup" for your translations, which is why I introduced, a key  but
since you are not doing that you don't want a key at all, as you don't
need to look anything up, all your translations are inline on each
property.


<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

    <xsl:param name="locale"/>
 
    <xsl:template match="i18n">
<table>
<tr>
  <xsl:for-each 
select="(node[starts-with($locale,@name)]/properties|properties)[last()]/entry">
    <td><xsl:value-of select="."/></td>
  </xsl:for-each>
</tr>
</table>
    </xsl:template>
</xsl:transform>


However, if there are two parameters, with caption n and r this
returns:

it's much easier to debug things if you post source that matches the
result that you post.

David


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>