[2] | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
---|
[55] | 2 | <xsl:stylesheet |
---|
[56] | 3 | xmlns:d="http://docbook.org/ns/docbook" |
---|
[55] | 4 | xmlns:xl="http://www.w3.org/1999/xlink" |
---|
| 5 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
| 6 | version="1.0"> |
---|
[2] | 7 | |
---|
| 8 | <!-- |
---|
| 9 | module : |
---|
[55] | 10 | produce one DocBook 5 with a form containing bibliograhy references and general |
---|
| 11 | information of one author/user |
---|
[2] | 12 | |
---|
[55] | 13 | this DocBook will be chuncked for html output |
---|
| 14 | |
---|
[2] | 15 | update : |
---|
[33] | 16 | $Id$ |
---|
[58] | 17 | fplod 2008-04-30T14:52:55Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 18 | language inherited from biblio.xml |
---|
[56] | 19 | fplod 2008-04-30T06:44:31Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 20 | chgt for dbk5 in |
---|
[28] | 21 | fplod 2007-10-17T08:06:40Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 22 | improve sort (diacriticals) |
---|
[2] | 23 | fplod 2007-05-18T14:59:29Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 24 | modif gestion id |
---|
| 25 | fplod 2007-05-16T15:28:56Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 26 | correction pour homonymes partiels |
---|
| 27 | fplod 2007-05-15T15:07:37Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
[31] | 28 | modification to see user/userid="template" information if author_id |
---|
[2] | 29 | doesn't exit in users datafile |
---|
| 30 | fplod 2007-04-16T08:10:06Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 31 | creation |
---|
| 32 | --> |
---|
| 33 | |
---|
| 34 | <xsl:output |
---|
| 35 | method="xml" |
---|
| 36 | indent="yes" |
---|
| 37 | encoding="ISO-8859-1" |
---|
[55] | 38 | omit-xml-declaration="yes"/> |
---|
[2] | 39 | |
---|
[58] | 40 | |
---|
[2] | 41 | <xsl:include href="firstname_id.xsl"/> |
---|
| 42 | <xsl:include href="surname_id.xsl"/> |
---|
| 43 | <xsl:include href="table_authors.xsl"/> |
---|
| 44 | <xsl:include href="form_db.xsl"/> |
---|
| 45 | |
---|
[56] | 46 | <xsl:variable name="list_author_ids" select="///d:author[not( self::node() = following::d:author )]"/> |
---|
[2] | 47 | |
---|
[56] | 48 | <xsl:template match="d:bibliography"> |
---|
[2] | 49 | |
---|
[55] | 50 | <xsl:element name="article"> |
---|
| 51 | <xsl:attribute name="version">5.0</xsl:attribute> |
---|
| 52 | <xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute> |
---|
[58] | 53 | <xsl:attribute name="xml:lang"><xsl:value-of select="@xml:lang"/></xsl:attribute> |
---|
[2] | 54 | <title>NEMO Survey - Known users</title> |
---|
[55] | 55 | <info> |
---|
[2] | 56 | <authorgroup> |
---|
| 57 | <author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author> |
---|
| 58 | <author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author> |
---|
| 59 | <!--++--> |
---|
| 60 | </authorgroup> |
---|
| 61 | <keywordset> |
---|
| 62 | <keyword>NEMO</keyword> |
---|
| 63 | </keywordset> |
---|
| 64 | <!-- ++ date --> |
---|
[55] | 65 | </info> |
---|
| 66 | <sect1 xml:id="intro"> |
---|
| 67 | <title>Intro</title> |
---|
[2] | 68 | <xsl:element name="para"> |
---|
| 69 | These pages intent to provide an form for every know user of NEMO with bibliography and information. |
---|
| 70 | </xsl:element> |
---|
| 71 | <xsl:element name="para"> |
---|
| 72 | As you can imagine, this survey is not a new way to spy NEMO users and their work! The goal of this survey is simply collect and keep up-to-date information related to the use of NEMO: mainly the number of users and list of publications involving NEMO. These information and their temporal evolution are keys arguments when negotiating man-power or money to support our work. We tried to minimize as much as possible the time needed to fill this survey. Please, take a few minutes to fill it, this will greatly benefit to NEMO! |
---|
| 73 | </xsl:element> |
---|
| 74 | <xsl:element name="para"> |
---|
| 75 | The mail sent by filling these forms will be used to update |
---|
[55] | 76 | <link xl:href="../../one/main.php">Nemo-Publications-Papers</link> |
---|
| 77 | and <link xl:href="../../one/user.html">Nemo Users</link>. |
---|
[2] | 78 | </xsl:element> |
---|
| 79 | |
---|
[58] | 80 | <xsl:call-template name="para_lastupdate_bib"> |
---|
| 81 | <xsl:with-param name="language" select="@xml:lang"/> |
---|
| 82 | <xsl:with-param name="date" select="d:info/d:date"/> |
---|
| 83 | </xsl:call-template> |
---|
[2] | 84 | |
---|
[58] | 85 | <xsl:call-template name="para_lastupdate_user"> |
---|
| 86 | <xsl:with-param name="language" select="@xml:lang"/> |
---|
| 87 | <xsl:with-param name="date" select="document('user.xml')/users/date"/> |
---|
| 88 | </xsl:call-template> |
---|
| 89 | |
---|
[2] | 90 | <xsl:call-template name="table_authors"> |
---|
| 91 | <xsl:with-param name="linktype" select="'external'"/> |
---|
| 92 | </xsl:call-template> |
---|
| 93 | |
---|
| 94 | </sect1> |
---|
| 95 | |
---|
| 96 | <!-- loop on author_ids --> |
---|
| 97 | <xsl:for-each select="$list_author_ids"> |
---|
[28] | 98 | <xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> |
---|
[2] | 99 | <xsl:variable name="author_id2"> |
---|
| 100 | <xsl:call-template name="surname_id"> |
---|
[56] | 101 | <xsl:with-param name="surname" select="d:personname/d:surname"/> |
---|
[2] | 102 | </xsl:call-template> |
---|
| 103 | <xsl:text>_</xsl:text> |
---|
| 104 | <xsl:call-template name="firstname_id"> |
---|
[56] | 105 | <xsl:with-param name="firstname" select="d:personname/d:firstname"/> |
---|
[2] | 106 | </xsl:call-template> |
---|
| 107 | </xsl:variable> |
---|
| 108 | <!-- |
---|
| 109 | <xsl:message terminate="no"> |
---|
| 110 | noeud courant <xsl:value-of select="name(.)"/> |
---|
| 111 | author <xsl:value-of select="."/> |
---|
| 112 | author_id2 <xsl:value-of select="$author_id2"/> |
---|
| 113 | </xsl:message> |
---|
| 114 | --> |
---|
| 115 | <xsl:call-template name="one_author_id"> |
---|
| 116 | <xsl:with-param name="author_id" select="$author_id2"/> |
---|
| 117 | <xsl:with-param name="author_name" select="."/> |
---|
| 118 | </xsl:call-template> |
---|
| 119 | </xsl:for-each> |
---|
| 120 | |
---|
[55] | 121 | </xsl:element> |
---|
[2] | 122 | </xsl:template> |
---|
| 123 | |
---|
[56] | 124 | <xsl:template match="d:info/d:date"/> |
---|
| 125 | <xsl:template match="d:bibliography/d:title"/> |
---|
[2] | 126 | |
---|
| 127 | <xsl:template name="one_author_id"> |
---|
| 128 | <xsl:param name="author_id"/> |
---|
| 129 | <xsl:param name="author_name"/> |
---|
| 130 | <!-- |
---|
| 131 | <xsl:message terminate="no"> |
---|
| 132 | call template avec <xsl:value-of select="$author_id"/> |
---|
| 133 | et <xsl:value-of select="$author_name"/> |
---|
| 134 | noeud courant <xsl:value-of select="name(.)"/> |
---|
| 135 | </xsl:message> |
---|
| 136 | --> |
---|
| 137 | <!-- |
---|
| 138 | <xsl:message terminate="no"> |
---|
[56] | 139 | author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:surname=$author_id])"/> |
---|
| 140 | 2 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:author=$author_name])"/> |
---|
[2] | 141 | </xsl:message> |
---|
| 142 | --> |
---|
| 143 | <xsl:element name="sect1"> |
---|
[55] | 144 | <xsl:attribute name="xml:id"> |
---|
[2] | 145 | <xsl:value-of select="$author_id"/> |
---|
| 146 | </xsl:attribute> |
---|
| 147 | <xsl:element name="title"> |
---|
| 148 | <xsl:value-of select="$author_name"/> |
---|
| 149 | </xsl:element> |
---|
| 150 | <xsl:element name="para"> |
---|
| 151 | As you can imagine, this survey is not a new way to spy NEMO users and their work! The goal of this survey is simply collect and keep up-to-date information related to the use of NEMO: mainly the number of users and list of publications involving NEMO. These information and their temporal evolution are keys arguments when negotiating man-power or money to support our work. We tried to minimize as much as possible the time needed to fill this survey. Please, take a few minutes to fill it, this will greatly benefit to NEMO! |
---|
| 152 | </xsl:element> |
---|
| 153 | <xsl:element name="para"> |
---|
| 154 | The mail sent by filling this form will be used to update |
---|
[55] | 155 | <link xl:href="../../one/main.php">Nemo-Publications-Papers</link> |
---|
| 156 | and <link xl:href="../../one/user.html">Nemo Users</link>. |
---|
[2] | 157 | </xsl:element> |
---|
| 158 | |
---|
| 159 | <xsl:choose> |
---|
[31] | 160 | <xsl:when test="document('user.xml')/users/user[descendant::userid=$author_id]/userid = $author_id"> |
---|
[2] | 161 | <xsl:call-template name="form_db"> |
---|
| 162 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
[31] | 163 | <xsl:with-param name="user" select="document('user.xml')/users/user[descendant::userid=$author_id]"/> |
---|
[2] | 164 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
| 165 | <xsl:with-param name="bibmode" select="'yes'"/> |
---|
| 166 | </xsl:call-template> |
---|
| 167 | </xsl:when> |
---|
| 168 | <xsl:otherwise> |
---|
| 169 | <xsl:call-template name="form_db"> |
---|
| 170 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
[31] | 171 | <xsl:with-param name="user" select="document('user.xml')/users/user[descendant::userid='template']"/> |
---|
[2] | 172 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
| 173 | <xsl:with-param name="bibmode" select="'yes'"/> |
---|
| 174 | </xsl:call-template> |
---|
| 175 | </xsl:otherwise> |
---|
| 176 | </xsl:choose> |
---|
| 177 | </xsl:element> |
---|
| 178 | </xsl:template> |
---|
| 179 | |
---|
| 180 | </xsl:stylesheet> |
---|