At 3:26 PM +0100 4/20/02, James Strachan wrote:

>Another extension of this idea could be to also support the common locales
>that are defined as static constants in the Locale class via their name and
>to use reflection to find them. Then we could do things like...
>
>upper-case( /foo/bar, 'FRENCH' )
>lower-case( /foo/bar, 'CHINA' )
>

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

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|             http://www.cafeconleche.org/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

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

Reply via email to