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
[xsl] i18n and l10n question
by Nicolas Van Cleemput other posts by this author
Nov 6 2006 1:52AM messages near this date
[xsl] RE: Help needed to transform in data joining | Re: [xsl] i18n and l10n question
& XSLT hi,

in our application we currently use XML-files that are structured as follows:

<factory> 
  <i18n> 
     <properties> 
        <entry key="id1"> text</entry>
        ...
     </properties> 
     <node name="nl"> 
       <properties> 
          <entry key="id1"> text in other language</entry>
          ...
       </properties> 
     </node> 
     <node name="fr"> 
       <properties> 
          <entry key="id1"> another translation</entry>
          ...
       </properties> 
     </node> 
     (and so on for all the available locales)
  </i18n> 
  <other_tags> </other_tags>
  ...
</factory> 

We are now planning to use XSL to create help pages from these XML-files. We
want this to be done with the correct rules for i18n, i.e. if the text for id1
isn't available in the demanded locale, it defaults to a lesser specific locale
untill it reaches the default locale (the one that isn't inside a
<node> </node>).

Any idea how this can be done with XSL (and maybe some JAVA-programming)?

Thanks in advance,
Nico Van Cleemput
University Ghent
http://www.UGent.be


--~------------------------------------------------------------------
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