> > > I think it would make more sense to use legal xml:lang values like
> > > fr, fr-CA, and en-US-Brooklyn; then convert them to the appropriate
> > > Locale object inside the extension function, This way you're not
> > > limited to just the ones that have defined named constants and it's
> > > overall more in keeping with global de jure standards.
> >
>
> Actually the above should work if I test for the only locale with language
=
> 'fr' and no country or variant specified. So 'fr' should match
> Locale.FRENCH. So Elliotte's proposal works very nicely.

OK I've now finally implemented Elliottes idea, its in CVS now if anyone
fancies playing with it. Don't have any proper test cases yet though.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to