Re: [xsl] i18n and l10n question

Subject: Re: [xsl] i18n and l10n question
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Mon, 13 Nov 2006 16:50:22 +0100 (CET)
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[@name eq $locale], node[@name eq $country], .)[1]
      / properties

  Regards,

--drkm























	

	
		
___________________________________________________________________________ 
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! 
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses 
http://fr.answers.yahoo.com

Current Thread