xsl-list
[Top] [All Lists]

Re: [xsl] i18n and l10n question

2006-11-13 08:54:38
David Carlisle wrote:

  <xsl:for-each

select="(node[starts-with($locale,@name)]/properties|properties)[last()]/entry">

  Mmh, if I'm right this is based on the fact that the most
locale-specific (en_US, or en, or the default) is last in the document
order.  If it's not the case, I'd sugest instead to use the ","
operator and construct an ordered sequence:

    (node[(_at_)name eq $locale], node[(_at_)name eq $country], .)[1]
      / properties

  Regards,

--drkm























        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

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