Changeset 76 for trunk/template_db.xsl


Ignore:
Timestamp:
09/18/08 12:14:27 (16 years ago)
Author:
pinsard
Message:

no more NEMO reference in XSL files; project information (name and home page are in main.xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template_db.xsl

    r64 r76  
    77xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    88 
    9 <!-- 
    10 module : 
     9<!--rst 
     10NAME 
     11==== 
     12 
    1113création du prototype de formulaire utilisateur 
    1214 
    13 update : 
     15EVOLUTIONS 
     16========== 
     17 
    1418$Id$ 
    15 fplod 2008-04-30T13:30:47Z aedon.locean-ipsl.upmc.fr (Darwin) 
    16 language inherited  from biblio.xml 
    17 fplod 2008-04-29T10:28:37Z aedon.locean-ipsl.upmc.fr (Darwin) 
    18 chgt for dbk5 
    19 fplod 2007-04-26T09:31:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
    20 creation 
     19 
     20- fplod 2008-09-17T09:49:51Z aedon.locean-ipsl.upmc.fr (Darwin) 
     21 
     22  * project name from main.xml file instead of a fixed one 
     23 
     24- fplod 2008-04-30T13:30:47Z aedon.locean-ipsl.upmc.fr (Darwin) 
     25 
     26  * language inherited from biblio.xml 
     27 
     28- fplod 2008-04-29T10:28:37Z aedon.locean-ipsl.upmc.fr (Darwin) 
     29 
     30  * chgt for dbk5 
     31 
     32- fplod 2007-04-26T09:31:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     33 
     34  * creation 
    2135--> 
    2236 
     
    3549 
    3650<xsl:template match="user[child::userid='template']"> 
     51<xsl:variable name="project"> 
     52 <xsl:value-of select="document('main.xml')//d:keyword[@xml:id='project']"/> 
     53</xsl:variable> 
     54 
    3755<xsl:element name="article"> 
    3856<xsl:attribute name="version">5.0</xsl:attribute> 
     
    4159<xsl:attribute name="xml:id">template_form</xsl:attribute> 
    4260 
    43  <title>Nemo Survey - Template</title> 
     61 <title><xsl:value-of select="$project"/> - Template</title> 
    4462<info> 
    4563<authorgroup> 
     
    4967</authorgroup> 
    5068<keywordset> 
    51 <keyword>NEMO</keyword> 
     69<keyword><xsl:value-of select="$project"/></keyword> 
    5270</keywordset> 
    5371<!-- ++ date --> 
     
    5573 <xsl:text>&#xA;</xsl:text> 
    5674 
    57  <xsl:comment>  
     75 <xsl:comment> 
    5876  template form from template userid in user.xml. 
    5977<xsl:call-template name="para_lastupdate_user"> 
     
    6987  <title>Context</title> 
    7088  <xsl:element name="para"> 
    71    The mail sent by filling this form will be used to update  
    72 <link xl:href="main.php">Nemo-Publications-Papers</link> 
    73 and <link xl:href="user.html">Nemo Users</link>. 
     89   The mail sent by filling this form will be used to update 
     90<link xl:href="main.php"><xsl:value-of select="$project"/>-Publications-Papers</link> 
     91and <link xl:href="user.html"><xsl:value-of select="$project"/> Users</link>. 
    7492  </xsl:element> 
    7593 </xsl:element> 
Note: See TracChangeset for help on using the changeset viewer.