Changeset 58 for trunk


Ignore:
Timestamp:
04/30/08 17:43:22 (16 years ago)
Author:
pinsard
Message:

introduce language dependency on each update message (bibilo, user, html files)

Location:
trunk
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/main.xml

    r56 r58  
    77xmlns="http://docbook.org/ns/docbook" 
    88xmlns:xl="http://www.w3.org/1999/xlink" 
    9 xmlns:html="http://www.w3.org/1999/xhtml" 
    10 xml:lang="en"> 
     9xmlns:html="http://www.w3.org/1999/xhtml"> 
    1110<!-- 
    1211module : 
     
    1716update : 
    1817$Id$ 
     18fplod 2008-04-30T15:21:49Z aedon.locean-ipsl.upmc.fr (Darwin) 
     19language inherited from biblio.xml 
    1920fplod 2008-03-20T15:52:10Z aedon.locean-ipsl.upmc.fr (Darwin) 
     21 
    2022--> 
    2123  <title>Nemo Survey</title> 
  • trunk/main_html.xsl

    r56 r58  
    11<?xml version='1.0' encoding='ISO-8859-1'?>  
    22<xsl:stylesheet  
     3xmlns:d="http://docbook.org/ns/docbook" 
    34xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
    45xmlns:html="http://www.w3.org/1999/xhtml" 
     
    1112update : 
    1213$Id$ 
     14fplod 2008-04-30T15:23:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
     15language inherited from biblio.xml 
    1316fplod 2008-04-28T11:02:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1417input dbk5 
     
    2730 
    2831<xsl:include href="titlepage.superbib.xsl"/> 
     32<xsl:include href="message_lang.xsl"/> 
    2933<xsl:include href="form_html.xsl"/> 
    3034 
     
    4044--> 
    4145<xsl:template name="user.footer.content"> 
    42   <xsl:element name="p"> 
    43 Last update : <xsl:value-of select="$makedate"/> 
    44   </xsl:element> 
     46 <xsl:call-template name="para_lastupdate"> 
     47  <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/> 
     48  <xsl:with-param name="date" select="$makedate"/> 
     49  <xsl:with-param name="mode" select="'html'"/> 
     50 </xsl:call-template> 
    4551</xsl:template> 
    4652 
  • trunk/makefile

    r57 r58  
    234234$(DIRSRC)/style.css \ 
    235235$(DIRSRC)/main_html.xsl \ 
     236$(DIRSRC)/message_lang.xsl \ 
    236237$(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    237238$(DIRSRC)/form_html.xsl \ 
     
    248249$(DIRSRC)/style.css \ 
    249250$(DIRSRC)/$(PRODUCT)01_html.xsl \ 
     251$(DIRSRC)/message_lang.xsl \ 
    250252$(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    251253$(DIRTMP)/$(PRODUCT)01.xml 
     
    270272$(DIRSRC)/style.css \ 
    271273$(DIRSRC)/$(PRODUCT)01_html.xsl \ 
     274$(DIRSRC)/message_lang.xsl \ 
    272275$(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    273276$(DIRTMP)/$(PRODUCT)02.xml 
     
    282285$(DIRSRC)/style.css \ 
    283286$(DIRSRC)/$(PRODUCT)many02_html.xsl \ 
     287$(DIRSRC)/message_lang.xsl \ 
    284288$(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    285289$(DIRSRC)/form_html.xsl \ 
     
    300304$(DIRTMP)/$(PRODUCT)many02.xml : \ 
    301305$(DIRSRC)/$(PRODUCT)many02_xml.xsl \ 
     306$(DIRSRC)/message_lang.xsl \ 
    302307$(DIRSRC)/form_db.xsl \ 
    303308$(DIRSRC)/compilers_db.xsl \ 
     
    324329$(DIRSRC)/style.css \ 
    325330$(DIRSRC)/$(PRODUCT)many01_html.xsl \ 
     331$(DIRSRC)/message_lang.xsl \ 
    326332$(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    327333$(DIRTMP)/$(PRODUCT)many01.xml 
     
    335341$(DIRTMP)/$(PRODUCT)many01.xml : \ 
    336342$(DIRSRC)/$(PRODUCT)many01_xml.xsl \ 
     343$(DIRSRC)/message_lang.xsl \ 
    337344$(DIRSRC)/firstname_id.xsl \ 
    338345$(DIRSRC)/surname_id.xsl \ 
     
    349356$(DIRTMP)/$(PRODUCT)02.xml : \ 
    350357$(DIRSRC)/$(PRODUCT)02_xml.xsl \ 
     358$(DIRSRC)/message_lang.xsl \ 
    351359$(DIRSRC)/firstname_id.xsl \ 
    352360$(DIRSRC)/surname_id.xsl \ 
     
    434442$(DIRSRC)/style.css \ 
    435443$(DIRSRC)/user_html.xsl \ 
     444$(DIRSRC)/message_lang.xsl \ 
    436445$(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    437446$(DIRSRC)/form_html.xsl \ 
     
    445454$(DIRTMP)/user_db.xml : \ 
    446455$(DIRSRC)/user_db.xsl \ 
     456$(DIRSRC)/message_lang.xsl \ 
    447457$(DIRSRC)/components_db.xsl \ 
    448458$(DIRSRC)/compilers_db.xsl \ 
     
    469479$(DIRSRC)/style.css \ 
    470480$(DIRSRC)/main_html.xsl \ 
     481$(DIRSRC)/message_lang.xsl \ 
    471482$(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    472483$(DIRSRC)/form_html.xsl \ 
     
    482493$(DIRSRC)/user.xml \ 
    483494$(DIRSRC)/template_db.xsl \ 
     495$(DIRSRC)/message_lang.xsl \ 
    484496$(DIRSRC)/form_db.xsl \ 
    485497$(DIRSRC)/compilers_db.xsl \ 
  • trunk/message_lang.xsl

    r57 r58  
    2020<xsl:param name="language"/> 
    2121<xsl:param name="date"/> 
     22<xsl:param name="mode"/> 
    2223 
    2324<xsl:variable name="message_lastupdate_bib"> 
     
    3132<xsl:otherwise> 
    3233 <xsl:message terminate="yes"> 
     34eee : in template para_lastupdate_bib 
    3335eee : unknown language : <xsl:value-of select="$language"/> 
    3436</xsl:message> 
     
    3638</xsl:choose> 
    3739</xsl:variable> 
     40 <xsl:text>&#xA;</xsl:text> 
    3841<para> 
    3942<xsl:value-of select="$message_lastupdate_bib"/> <xsl:value-of select="$date"/> 
    4043</para> 
     44 <xsl:text>&#xA;</xsl:text> 
     45</xsl:template> 
     46 
     47<xsl:template name="para_lastupdate_user"> 
     48<!-- 
     49 Last update of the user databank : date 
     50--> 
     51<xsl:param name="language"/> 
     52<xsl:param name="date"/> 
     53<xsl:param name="mode"/> 
     54 
     55<xsl:variable name="message_lastupdate_user"> 
     56<xsl:choose> 
     57<xsl:when test="($language = 'en')"> 
     58Last update of the user databank : 
     59</xsl:when> 
     60<xsl:when test="($language = 'fr')"> 
     61Dernière mise à jour de la base utilisateur : 
     62</xsl:when> 
     63<xsl:otherwise> 
     64 <xsl:message terminate="yes"> 
     65eee : in template para_lastupdate_user 
     66eee : unknown language : <xsl:value-of select="$language"/> 
     67</xsl:message> 
     68</xsl:otherwise> 
     69</xsl:choose> 
     70</xsl:variable> 
     71 <xsl:text>&#xA;</xsl:text> 
     72<para> 
     73<xsl:value-of select="$message_lastupdate_user"/> <xsl:value-of select="$date"/> 
     74</para> 
     75 <xsl:text>&#xA;</xsl:text> 
     76</xsl:template> 
     77 
     78<xsl:template name="para_lastupdate"> 
     79<!-- 
     80 Last update : date 
     81--> 
     82<xsl:param name="language"/> 
     83<xsl:param name="date"/> 
     84<xsl:param name="mode"/> 
     85 
     86<xsl:variable name="message_lastupdate"> 
     87<xsl:choose> 
     88<xsl:when test="($language = 'en')"> 
     89Last update : 
     90</xsl:when> 
     91<xsl:when test="($language = 'fr')"> 
     92Dernière mise à jour : 
     93</xsl:when> 
     94<xsl:otherwise> 
     95 <xsl:message terminate="yes"> 
     96eee : in template para_lastupdate 
     97eee : unknown language : <xsl:value-of select="$language"/> 
     98</xsl:message> 
     99</xsl:otherwise> 
     100</xsl:choose> 
     101</xsl:variable> 
     102 
     103<xsl:choose> 
     104<xsl:when test="($mode = 'dbk')"> 
     105 <xsl:text>&#xA;</xsl:text> 
     106<para> 
     107<xsl:value-of select="$message_lastupdate"/> <xsl:value-of select="$date"/> 
     108</para> 
     109 <xsl:text>&#xA;</xsl:text> 
     110</xsl:when> 
     111<xsl:when test="($mode = 'html')"> 
     112<xsl:element name="p"> 
     113<xsl:value-of select="$message_lastupdate"/> <xsl:value-of select="$date"/> 
     114</xsl:element> 
     115</xsl:when> 
     116<xsl:when test="($mode = 'flat')"> 
     117<xsl:value-of select="$message_lastupdate"/> <xsl:value-of select="$date"/> 
     118</xsl:when> 
     119<xsl:otherwise> 
     120 <xsl:message terminate="yes"> 
     121eee : in template para_lastupdate 
     122eee : unknown mode : <xsl:value-of select="$mode"/> 
     123</xsl:message> 
     124</xsl:otherwise> 
     125</xsl:choose> 
     126 
    41127</xsl:template> 
    42128 
  • trunk/superbib01_html.xsl

    r49 r58  
    2222 
    2323<xsl:include href="titlepage.superbib.xsl"/> 
     24<xsl:include href="message_lang.xsl"/> 
    2425 
    2526<xsl:template match="*" mode="book.titlepage.mode"/> 
     
    3435--> 
    3536<xsl:template name="user.footer.content"> 
    36   <xsl:element name="p"> 
    37 Last update : <xsl:value-of select="$makedate"/> 
    38   </xsl:element> 
     37 <xsl:call-template name="para_lastupdate"> 
     38  <xsl:with-param name="language" select="/article/@xml:lang"/> 
     39  <xsl:with-param name="date" select="$makedate"/> 
     40  <xsl:with-param name="mode" select="'html'"/> 
     41 </xsl:call-template> 
     42 
    3943</xsl:template> 
    4044 
  • trunk/superbib01_xml.xsl

    r57 r58  
    1313$Id$ 
    1414fplod 2008-04-30T10:32:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
    15 language inherited  from biblio.xml 
     15language inherited from biblio.xml 
    1616fplod 2008-04-29T15:23:51Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1717chgt for dbk5 in ++ 
  • trunk/superbib02_html.xsl

    r49 r58  
    2222 
    2323<xsl:include href="titlepage.superbib.xsl"/> 
     24<xsl:include href="message_lang.xsl"/> 
     25 
    2426 
    2527<xsl:template match="*" mode="book.titlepage.mode"/> 
     
    3638--> 
    3739<xsl:template name="user.footer.content"> 
    38   <xsl:element name="p"> 
    39 Last update : <xsl:value-of select="$makedate"/> 
    40   </xsl:element> 
     40 <xsl:call-template name="para_lastupdate"> 
     41  <xsl:with-param name="language" select="/article/@xml:lang"/> 
     42  <xsl:with-param name="date" select="$makedate"/> 
     43  <xsl:with-param name="mode" select="'html'"/> 
     44 </xsl:call-template> 
    4145</xsl:template> 
    4246 
  • trunk/superbib02_xml.xsl

    r56 r58  
    1212update : 
    1313$Id$ 
     14fplod 2008-04-30T15:02:03Z aedon.locean-ipsl.upmc.fr (Darwin) 
     15language inherited from biblio.xml 
    1416fplod 2008-04-29T08:01:08Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1517chgt for dbk5 
     
    3537 omit-xml-declaration="no"/> 
    3638 
     39<xsl:include href="message_lang.xsl"/> 
     40 
    3741<xsl:include href="firstname_id.xsl"/> 
    3842<xsl:include href="surname_id.xsl"/> 
     
    4751<xsl:attribute name="version">5.0</xsl:attribute> 
    4852<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute> 
    49 <xsl:attribute name="xml:lang">en</xsl:attribute> 
     53<xsl:attribute name="xml:lang"><xsl:value-of select="@xml:lang"/></xsl:attribute> 
    5054<title>NEMO - Publications - Papers by authors</title> 
    5155<info> 
     
    7882</xsl:element>. 
    7983</para> 
    80 <para> 
    81 Last update of the bibliography databank : <xsl:value-of select="d:info/d:date"/> 
    82 </para> 
     84 
     85<xsl:call-template name="para_lastupdate_bib"> 
     86 <xsl:with-param name="language" select="@xml:lang"/> 
     87 <xsl:with-param name="date" select="d:info/d:date"/> 
     88</xsl:call-template> 
    8389 
    8490<sect1 xml:id="intro"> 
  • trunk/superbibmany01_html.xsl

    r49 r58  
    2323 
    2424<xsl:include href="titlepage.superbib.xsl"/> 
     25<xsl:include href="message_lang.xsl"/> 
     26 
    2527 
    2628<xsl:template match="*" mode="book.titlepage.mode"/> 
     
    4345--> 
    4446<xsl:template name="user.footer.navigation"> 
    45   <xsl:element name="p"> 
    46 Last update : <xsl:value-of select="$makedate"/> 
    47   </xsl:element> 
     47 <xsl:call-template name="para_lastupdate"> 
     48  <xsl:with-param name="language" select="/article/@xml:lang"/> 
     49  <xsl:with-param name="date" select="$makedate"/> 
     50  <xsl:with-param name="mode" select="'html'"/> 
     51 </xsl:call-template> 
    4852</xsl:template> 
    4953 
  • trunk/superbibmany01_xml.xsl

    r56 r58  
    1414update : 
    1515$Id$ 
     16fplod 2008-04-30T14:52:20Z aedon.locean-ipsl.upmc.fr (Darwin) 
     17language inherited from biblio.xml 
    1618fplod 2008-04-29T15:57:17Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1719chgt for dbk5 in  
     
    3335 omit-xml-declaration="no"/> 
    3436 
     37<xsl:include href="message_lang.xsl"/> 
     38 
    3539<xsl:include href="firstname_id.xsl"/> 
    3640<xsl:include href="surname_id.xsl"/> 
     
    4549<xsl:attribute name="version">5.0</xsl:attribute> 
    4650<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute> 
    47 <xsl:attribute name="xml:lang">en</xsl:attribute> 
     51<xsl:attribute name="xml:lang"><xsl:value-of select="@xml:lang"/></xsl:attribute> 
    4852<title>NEMO - Publications - Papers by authors</title> 
    4953<info> 
     
    7680</xsl:element>. 
    7781</para> 
    78 <para> 
    79 Last update of the bibliography databank : <xsl:value-of select="d:info/d:date"/> 
    80 </para> 
     82<xsl:call-template name="para_lastupdate_bib"> 
     83 <xsl:with-param name="language" select="@xml:lang"/> 
     84 <xsl:with-param name="date" select="d:info/d:date"/> 
     85</xsl:call-template> 
    8186 
    8287<sect1 xml:id="intro"> 
  • trunk/superbibmany02_html.xsl

    r49 r58  
    1515 
    1616<xsl:include href="titlepage.superbib.xsl"/> 
     17<xsl:include href="message_lang.xsl"/> 
     18 
    1719<xsl:include href="form_html.xsl"/> 
    1820 
     
    3537--> 
    3638<xsl:template name="user.footer.navigation"> 
    37   <xsl:element name="p"> 
    38 Last update : <xsl:value-of select="$makedate"/> 
    39   </xsl:element> 
     39 <xsl:call-template name="para_lastupdate"> 
     40  <xsl:with-param name="language" select="/article/@xml:lang"/> 
     41  <xsl:with-param name="date" select="$makedate"/> 
     42  <xsl:with-param name="mode" select="'html'"/> 
     43 </xsl:call-template> 
    4044</xsl:template> 
    4145 
  • trunk/superbibmany02_xml.xsl

    r56 r58  
    1515update : 
    1616$Id$ 
     17fplod 2008-04-30T14:52:55Z aedon.locean-ipsl.upmc.fr (Darwin) 
     18language inherited from biblio.xml 
    1719fplod 2008-04-30T06:44:31Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1820chgt for dbk5 in 
     
    3638 omit-xml-declaration="yes"/> 
    3739 
     40<xsl:include href="message_lang.xsl"/> 
     41 
    3842<xsl:include href="firstname_id.xsl"/> 
    3943<xsl:include href="surname_id.xsl"/> 
     
    4852<xsl:attribute name="version">5.0</xsl:attribute> 
    4953<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute> 
    50 <xsl:attribute name="xml:lang">en</xsl:attribute> 
     54<xsl:attribute name="xml:lang"><xsl:value-of select="@xml:lang"/></xsl:attribute> 
    5155<title>NEMO Survey - Known users</title> 
    5256<info> 
     
    7579</xsl:element> 
    7680 
    77 <para> 
    78 Last update of the bibliography databank : <xsl:value-of select="d:info/d:date"/> 
    79 </para> 
    80 <para> 
    81 Last update of the user databank : <xsl:value-of select="document('user.xml')/users/date"/> 
    82 </para> 
     81<xsl:call-template name="para_lastupdate_bib"> 
     82 <xsl:with-param name="language" select="@xml:lang"/> 
     83 <xsl:with-param name="date" select="d:info/d:date"/> 
     84</xsl:call-template> 
     85 
     86<xsl:call-template name="para_lastupdate_user"> 
     87 <xsl:with-param name="language" select="@xml:lang"/> 
     88 <xsl:with-param name="date" select="document('user.xml')/users/date"/> 
     89</xsl:call-template> 
    8390 
    8491<xsl:call-template name="table_authors"> 
  • trunk/template_db.xsl

    r55 r58  
    33version="1.0" 
    44xmlns:html="http://www.w3.org/1999/xhtml" 
     5xmlns:d="http://docbook.org/ns/docbook" 
    56xmlns:xl="http://www.w3.org/1999/xlink" 
    67xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
     
    1213update : 
    1314$Id$ 
     15fplod 2008-04-30T13:30:47Z aedon.locean-ipsl.upmc.fr (Darwin) 
     16language inherited  from biblio.xml 
    1417fplod 2008-04-29T10:28:37Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1518chgt for dbk5 
     
    2427 omit-xml-declaration="no"/> 
    2528 
     29<xsl:include href="message_lang.xsl"/> 
    2630<xsl:include href="form_db.xsl"/> 
    2731 
     
    3539<xsl:attribute name="version">5.0</xsl:attribute> 
    3640<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute> 
    37 <!--++ 
    38 <xsl:attribute name="xmlns:html">http://www.w3.org/1999/xhtml</xsl:attribute> 
    39 ++--> 
    40 <xsl:attribute name="xml:lang">en</xsl:attribute> 
     41<xsl:attribute name="xml:lang"><xsl:value-of select="document('biblio.xml')/d:bibliography/@xml:lang"/></xsl:attribute> 
    4142<xsl:attribute name="xml:id">template_form</xsl:attribute> 
    4243 
     
    5354<!-- ++ date --> 
    5455</info> 
     56 <xsl:text>&#xA;</xsl:text> 
    5557 
    5658 <xsl:comment>  
    5759  template form from template userid in user.xml. 
    58 Last update of the user databank : <xsl:value-of select="ancestor::users/child::date"/> 
     60<xsl:call-template name="para_lastupdate_user"> 
     61 <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/> 
     62 
     63 <xsl:with-param name="date" select="ancestor::users/child::date"/> 
     64</xsl:call-template> 
    5965 </xsl:comment> 
     66 
    6067 <xsl:text>&#xA;</xsl:text> 
    6168 <xsl:element name="sect1"> 
  • trunk/user_db.xsl

    r55 r58  
    22<xsl:stylesheet 
    33version="1.0" 
     4xmlns:d="http://docbook.org/ns/docbook" 
    45xmlns:xl="http://www.w3.org/1999/xlink" 
    56xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
     
    1112update : 
    1213$Id$ 
     14fplod 2008-04-30T13:55:17Z aedon.locean-ipsl.upmc.fr (Darwin) 
     15language inherited  from biblio.xml 
    1316fplod 2008-04-29T10:23:26Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1417chgt for dbk5 
     
    2124--> 
    2225 
     26<xsl:include href="message_lang.xsl"/> 
    2327<xsl:include href="components_db.xsl"/> 
    2428<xsl:include href="compilers_db.xsl"/> 
     
    3741<xsl:attribute name="version">5.0</xsl:attribute> 
    3842<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute> 
    39 <xsl:attribute name="xml:lang">en</xsl:attribute> 
     43<xsl:attribute name="xml:lang"><xsl:value-of select="document('biblio.xml')/d:bibliography/@xml:lang"/></xsl:attribute> 
    4044<xsl:attribute name="xml:id">users</xsl:attribute> 
    4145 
     
    8387</para> 
    8488 
    85 <para> 
    86 Last update of the user databank : <xsl:value-of select="./date"/> 
    87 </para> 
     89<xsl:call-template name="para_lastupdate_user"> 
     90 <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/> 
     91 <xsl:with-param name="date" select="./date"/> 
     92</xsl:call-template> 
    8893 
    8994<sect1 xml:id="intro"> 
  • trunk/user_html.xsl

    r49 r58  
    2222 
    2323<xsl:include href="titlepage.superbib.xsl"/> 
     24<xsl:include href="message_lang.xsl"/> 
     25 
    2426<xsl:include href="form_html.xsl"/> 
    2527 
     
    3537--> 
    3638<xsl:template name="user.footer.content"> 
    37   <xsl:element name="p"> 
    38 Last update : <xsl:value-of select="$makedate"/> 
    39   </xsl:element> 
     39 <xsl:call-template name="para_lastupdate"> 
     40  <xsl:with-param name="language" select="@xml:lang"/> 
     41  <xsl:with-param name="date" select="$makedate"/> 
     42  <xsl:with-param name="mode" select="'html'"/> 
     43 </xsl:call-template> 
    4044</xsl:template> 
    4145 
Note: See TracChangeset for help on using the changeset viewer.