Date:Tue, 17 Dec 2002 17:50:28 +0100
Reply-To:Metadata Object Description Schema List <[log in to unmask]>
Sender:Metadata Object Description Schema List <[log in to unmask]>
From:Yves Pratter <[log in to unmask]>
Subject:Language lookup : working example
Comments:To: MODS List <[log in to unmask]>
Content-Type:multipart/alternative;
I wrote a working example of displaying language name from ISO639-2B /
RFC3066 code.
I start from the MODS HTML Display (Stylesheet) (translate it to french) and
add a template "DisplayLanguage" with to parameters :
a.. the attribute name used for the search (iso639-2b or rfc3066)
b.. his value (the language code)
The result is the language name (in french - but you could select english if
you want).
It use the file languages.xml.
If MODS will use ONLY RFC3066 language code in the future, the code will be
more simple...
You could have a look or download these files from the CVS repository of the
MODS-FR project :
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mods-fr/xsl/mods-fr.xslhttp://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mods-fr/xsl/languages.xml
Yves
PS: i hope to have a running example directly from the mods-fr web site in a
near future.
----------------------------------------------------------------------------
----
Yves Pratter
Ingénieur Support
Alex Temex Multimédia
4 Bis, Avenue du pré de Challes
74940 Annecy-le-Vieux
tél. : +33 (04) 50 64 08 97
fax : +33 (04) 50 64 15 81
mel : [log in to unmask]
----------------------------------------------------------------------------
----