Subject: Re: Fwd: i18n and l10n question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 13 Nov 2006 15:36:11 GMT
|
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
| Current Thread |
|
David Carlisle - 13 Nov 2006 15:36:29 -0000 <=
Nico Van Cleemput - 14 Nov 2006 07:51:56 -0000
|
|