ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
Re: [xsl] i18n and l10n question
by Nicolas Van Cleemput other posts by this author
Nov 8 2006 12:42AM messages near this date
Re: [xsl] i18n and l10n question | Re: [xsl] i18n and l10n question
& XSLT OK, now I'm coming to the next step. These factoryfiles also contain a list of
parameters:

<factory> 
  <i18n> 
    ... (this works already ;))
  </i18n> 
  <parameter> 
     <name> </name>
     <type> </type>
     <i18n> 
        <properties> 
            <entry key="parameter.description"> descr</entry>
        </properties> 
        <node name="nl"> 
          <properties> 
              <entry key="parameter.description"> descr</entry>
          </properties> 
        </node> 
     </i18n> 
  </parameter> 
  <parameter> 
     <name> </name>
     <type> </type>
     <i18n> 
        <properties> 
            <entry key="parameter.description"> descr</entry>
        </properties> 
        <node name="nl"> 
          <properties> 
              <entry key="parameter.description"> descr</entry>
          </properties> 
        </node> 
     </i18n> 
  </parameter> 
...

Now I want to make a table which contains an overview of the parameters. I
therefore need to access several of these entry-elements (I only typed the
description one for simplicity). Analogue to the previous method I did this:

<xsl:for-each select="parameter"> 
<tr> 
  <td> 
    <xsl:choose> 
      <xsl:when test="key('l',concat($locale,' parameter.description'))"> 
        <xsl:apply-templates select="key('l',concat($locale,' 
parameter.description'))"/> 
      </xsl:when> 
      <xsl:when test="key('l',concat($locale2,'  parameter.description'))"> 
        <xsl:apply-templates select="key('l',concat($locale2,' 
parameter.description'))"/> 
      </xsl:when> 
      <xsl:otherwise> 
        <xsl:apply-templates select="key('l','  parameter.description')"/> 
      </xsl:otherwise> 
    </xsl:choose> 
  </td> 
</tr> 
</xsl:for-each> 

This finds the correct number of parameters, but nothing is placed inside the
table cells. It is as if the entry-elements aren't found.





--~------------------------------------------------------------------
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@[...].com> 
--~--
Thread:
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved