xsl-list
[Top] [All Lists]

Re: [xsl] i18n and l10n question

2006-11-07 03:20:29


The desired result would be a simple html-file that contained one
title 

But you do
  <xsl:for-each select="//entry">
so you select both entry elements, and in each case you look up (back in
the same file) language replacements, ignoring the text that's there.
If you get 4 results there's an error in the key lookup.

    <xsl:key name="l" match="entry" use="concat(../@name,' ',@key)"/>
on the entry .. is properties and properties doesnt have a name
attribute, you want
../../@name
(you can blame me:-) If you change to ../ then you just get one for each
lookup

$ saxon factory.xml factory.xsl locale=de
<html>
   <body>
      <h1>Tur&aacute;n GraphTur&aacute;n Graph</h1>
   </body>
</html>
davidc(_at_)souldern /c/tmp
$ saxon factory.xml factory.xsl locale=nl
<html>
   <body>
      <h1>Tur&aacute;n GraafTur&aacute;n Graaf</h1>
   </body>
</html>


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>