[31] | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
---|
[55] | 2 | <xsl:stylesheet |
---|
| 3 | version="1.0" |
---|
[58] | 4 | xmlns:d="http://docbook.org/ns/docbook" |
---|
[55] | 5 | xmlns:xl="http://www.w3.org/1999/xlink" |
---|
| 6 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
[31] | 7 | |
---|
[76] | 8 | <!--rst |
---|
| 9 | |
---|
[108] | 10 | .. _user_db.xsl: |
---|
| 11 | |
---|
[95] | 12 | =========== |
---|
| 13 | user_db.xsl |
---|
| 14 | =========== |
---|
[76] | 15 | |
---|
[31] | 16 | creation des élements de formulaire (sans saisie) d'après les info user |
---|
| 17 | |
---|
[114] | 18 | TODO |
---|
| 19 | ==== |
---|
| 20 | |
---|
| 21 | ++ recup authors dans main pas bon |
---|
| 22 | |
---|
[76] | 23 | EVOLUTIONS |
---|
| 24 | ========== |
---|
| 25 | |
---|
[31] | 26 | $Id$ |
---|
[76] | 27 | |
---|
[114] | 28 | - fplod 20110629T135204Z cratos.locean-ipsl.upmc.fr (Linux) |
---|
| 29 | |
---|
| 30 | * authorgroup is found in main.xml |
---|
| 31 | |
---|
[112] | 32 | - fplod 20110624T144535Z cratos.locean-ipsl.upmc.fr (Linux) |
---|
| 33 | |
---|
| 34 | * add parameters, regions, periods |
---|
| 35 | * only show template user characteristics : for example processors for NEMO |
---|
| 36 | but not for TROPFLUX |
---|
| 37 | |
---|
[76] | 38 | - fplod 2008-09-17T09:49:51Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 39 | |
---|
| 40 | * project name from main.xml file instead of a fixed one |
---|
| 41 | |
---|
| 42 | - fplod 2008-04-30T13:55:17Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 43 | |
---|
| 44 | * language inherited from biblio.xml |
---|
| 45 | |
---|
| 46 | - fplod 2008-04-29T10:23:26Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 47 | |
---|
| 48 | * chgt for dbk5 |
---|
| 49 | |
---|
| 50 | - fplod 2007-06-06T10:20:22Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 51 | |
---|
| 52 | * add middle name |
---|
| 53 | |
---|
| 54 | - fplod 2007-05-04T10:26:02Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 55 | |
---|
| 56 | * homogéneisation sur bibnemo pr auteur et par année |
---|
| 57 | |
---|
| 58 | - fplod 2007-04-20T15:31:20Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 59 | |
---|
| 60 | * creation |
---|
| 61 | |
---|
[31] | 62 | --> |
---|
| 63 | |
---|
[58] | 64 | <xsl:include href="message_lang.xsl"/> |
---|
[31] | 65 | <xsl:include href="components_db.xsl"/> |
---|
| 66 | <xsl:include href="compilers_db.xsl"/> |
---|
| 67 | <xsl:include href="platforms_db.xsl"/> |
---|
| 68 | <xsl:include href="processors_db.xsl"/> |
---|
[112] | 69 | <xsl:include href="regions_db.xsl"/> |
---|
| 70 | <xsl:include href="parameters_db.xsl"/> |
---|
| 71 | <xsl:include href="periods_db.xsl"/> |
---|
[31] | 72 | |
---|
| 73 | <xsl:output |
---|
| 74 | method="xml" |
---|
| 75 | indent="yes" |
---|
| 76 | encoding="ISO-8859-1" |
---|
[55] | 77 | omit-xml-declaration="no"/> |
---|
[31] | 78 | |
---|
| 79 | <xsl:template match="users"> |
---|
| 80 | |
---|
[76] | 81 | <xsl:variable name="project"> |
---|
| 82 | <xsl:value-of select="document('main.xml')//d:keyword[@xml:id='project']"/> |
---|
| 83 | </xsl:variable> |
---|
| 84 | |
---|
[55] | 85 | <xsl:element name="article"> |
---|
| 86 | <xsl:attribute name="version">5.0</xsl:attribute> |
---|
| 87 | <xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute> |
---|
[64] | 88 | <xsl:attribute name="xml:lang"><xsl:value-of select="/d:bibliography/@xml:lang"/></xsl:attribute> |
---|
[55] | 89 | <xsl:attribute name="xml:id">users</xsl:attribute> |
---|
| 90 | |
---|
| 91 | |
---|
[76] | 92 | <title><xsl:value-of select="$project"/> Users</title> |
---|
[55] | 93 | <info> |
---|
[31] | 94 | <authorgroup> |
---|
[114] | 95 | <xsl:copy-of select="document('main.xml')//d:info/d:authorgroup"/> |
---|
[31] | 96 | </authorgroup> |
---|
| 97 | <keywordset> |
---|
[76] | 98 | <keyword><xsl:value-of select="$project"/></keyword> |
---|
[31] | 99 | </keywordset> |
---|
[55] | 100 | </info> |
---|
| 101 | <para xml:id="top"> |
---|
[76] | 102 | |
---|
| 103 | This page intents to provide an exhaustive list of authors or users of <xsl:value-of select="$project"/>. |
---|
| 104 | </para> |
---|
| 105 | <para> |
---|
[31] | 106 | If you find omissions or mistakes please ask some modification via |
---|
[55] | 107 | <xsl:element name="link"> |
---|
| 108 | <xsl:attribute name="xl:href"> |
---|
[39] | 109 | <xsl:value-of select="'./main.php'"/> |
---|
[31] | 110 | </xsl:attribute> |
---|
[76] | 111 | <xsl:value-of select="document('main.xml')/d:article/d:title"/> |
---|
| 112 | <xsl:text> main page</xsl:text> |
---|
[31] | 113 | </xsl:element>. |
---|
| 114 | </para> |
---|
| 115 | <para> |
---|
[76] | 116 | Yoy can also see <quote><xsl:value-of select="$project"/> - Publications - Papers</quote> sorted by |
---|
[31] | 117 | authors in |
---|
[55] | 118 | <xsl:element name="link"> |
---|
| 119 | <xsl:attribute name="xl:href"> |
---|
[40] | 120 | <xsl:value-of select="'./superbib02.html'"/> |
---|
[31] | 121 | </xsl:attribute> |
---|
| 122 | <xsl:text>one big document </xsl:text> |
---|
| 123 | </xsl:element> |
---|
| 124 | <xsl:text> or in </xsl:text> |
---|
[55] | 125 | <xsl:element name="link"> |
---|
| 126 | <xsl:attribute name="xl:href"> |
---|
[40] | 127 | <xsl:value-of select="'../many/superbib01/index.html'"/> |
---|
[31] | 128 | </xsl:attribute> |
---|
| 129 | <xsl:text>several </xsl:text> |
---|
| 130 | </xsl:element> <xsl:text> (one by author)</xsl:text>. |
---|
| 131 | </para> |
---|
| 132 | |
---|
[58] | 133 | <xsl:call-template name="para_lastupdate_user"> |
---|
| 134 | <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/> |
---|
| 135 | <xsl:with-param name="date" select="./date"/> |
---|
| 136 | </xsl:call-template> |
---|
[31] | 137 | |
---|
[55] | 138 | <sect1 xml:id="intro"> |
---|
[31] | 139 | <title>Introduction</title> |
---|
| 140 | <para> |
---|
| 141 | This document provide user's information sorted by user's id (<emphasis>SURNAME_f</emphasis>). |
---|
| 142 | </para> |
---|
| 143 | </sect1> |
---|
| 144 | |
---|
| 145 | <xsl:for-each select="user"> |
---|
| 146 | <xsl:sort order="ascending" data-type="text" select="userid"/> |
---|
| 147 | <xsl:if test="userid != 'template'"> |
---|
| 148 | <xsl:apply-templates select="."/> |
---|
| 149 | </xsl:if> |
---|
| 150 | </xsl:for-each> |
---|
[55] | 151 | </xsl:element> |
---|
[31] | 152 | </xsl:template> |
---|
| 153 | |
---|
| 154 | <xsl:template match="user"> |
---|
| 155 | <xsl:text>
</xsl:text> |
---|
| 156 | <xsl:element name="sect1"> |
---|
[55] | 157 | <xsl:attribute name="xml:id"><xsl:value-of select="userid"/></xsl:attribute> |
---|
[31] | 158 | <xsl:text>
</xsl:text> |
---|
| 159 | <xsl:element name="title"> |
---|
| 160 | <xsl:value-of select="personname/firstname"/> <xsl:text> </xsl:text> <xsl:value-of select="personname/othername[@role='mi']"/> <xsl:text> </xsl:text> <xsl:value-of select="personname/surname"/> |
---|
[55] | 161 | <xsl:element name="link"> |
---|
| 162 | <xsl:attribute name="xl:href"><xsl:text>#top</xsl:text></xsl:attribute> |
---|
[31] | 163 | <xsl:element name="inlinemediaobject"> |
---|
| 164 | <xsl:element name="imageobject"> |
---|
| 165 | <xsl:element name="imagedata"> |
---|
| 166 | <xsl:attribute name="fileref">../../images/globalicondl11x10_up.gif</xsl:attribute> |
---|
| 167 | </xsl:element> |
---|
| 168 | </xsl:element> |
---|
| 169 | <xsl:element name="textobject"> |
---|
| 170 | <xsl:element name="phrase"> |
---|
| 171 | <xsl:text>top</xsl:text> |
---|
| 172 | </xsl:element> |
---|
| 173 | </xsl:element> |
---|
| 174 | </xsl:element> |
---|
| 175 | </xsl:element> |
---|
| 176 | </xsl:element> |
---|
| 177 | <xsl:text>
</xsl:text> |
---|
| 178 | <xsl:element name="para"> |
---|
| 179 | <xsl:value-of select="email"/> |
---|
| 180 | </xsl:element> |
---|
| 181 | <xsl:text>
</xsl:text> |
---|
| 182 | <xsl:element name="para"> <!-- ++ para ou form --> |
---|
[112] | 183 | <xsl:if test="document('user.xml')/users/user[descendant::userid='template']/components"> |
---|
| 184 | <xsl:call-template name="components"> |
---|
| 185 | <xsl:with-param name="user" select="."/> |
---|
| 186 | <xsl:with-param name="author_id" select="./userid"/> |
---|
| 187 | <xsl:with-param name="visu_modif" select="'visu'"/> |
---|
| 188 | </xsl:call-template> |
---|
| 189 | </xsl:if> |
---|
| 190 | <xsl:if test="document('user.xml')/users/user[descendant::userid='template']/platforms"> |
---|
| 191 | <xsl:call-template name="platforms"> |
---|
| 192 | <xsl:with-param name="user" select="."/> |
---|
| 193 | <xsl:with-param name="author_id" select="./userid"/> |
---|
| 194 | <xsl:with-param name="visu_modif" select="'visu'"/> |
---|
| 195 | </xsl:call-template> |
---|
| 196 | </xsl:if> |
---|
| 197 | <xsl:if test="document('user.xml')/users/user[descendant::userid='template']/processors"> |
---|
| 198 | <xsl:call-template name="processors"> |
---|
| 199 | <xsl:with-param name="user" select="."/> |
---|
| 200 | <xsl:with-param name="author_id" select="./userid"/> |
---|
| 201 | <xsl:with-param name="visu_modif" select="'visu'"/> |
---|
| 202 | </xsl:call-template> |
---|
| 203 | </xsl:if> |
---|
| 204 | <xsl:if test="document('user.xml')/users/user[descendant::userid='template']/compilers"> |
---|
| 205 | <xsl:call-template name="compilers"> |
---|
| 206 | <xsl:with-param name="user" select="."/> |
---|
| 207 | <xsl:with-param name="author_id" select="./userid"/> |
---|
| 208 | <xsl:with-param name="visu_modif" select="'visu'"/> |
---|
| 209 | </xsl:call-template> |
---|
| 210 | </xsl:if> |
---|
| 211 | <xsl:if test="document('user.xml')/users/user[descendant::userid='template']/parameters"> |
---|
| 212 | <xsl:call-template name="parameters"> |
---|
| 213 | <xsl:with-param name="user" select="."/> |
---|
| 214 | <xsl:with-param name="author_id" select="./userid"/> |
---|
| 215 | <xsl:with-param name="visu_modif" select="'visu'"/> |
---|
| 216 | </xsl:call-template> |
---|
| 217 | </xsl:if> |
---|
| 218 | <xsl:if test="document('user.xml')/users/user[descendant::userid='template']/regions"> |
---|
| 219 | <xsl:call-template name="regions"> |
---|
| 220 | <xsl:with-param name="user" select="."/> |
---|
| 221 | <xsl:with-param name="author_id" select="./userid"/> |
---|
| 222 | <xsl:with-param name="visu_modif" select="'visu'"/> |
---|
| 223 | </xsl:call-template> |
---|
| 224 | </xsl:if> |
---|
| 225 | <xsl:if test="document('user.xml')/users/user[descendant::userid='template']/periods"> |
---|
| 226 | <xsl:call-template name="periods"> |
---|
| 227 | <xsl:with-param name="user" select="."/> |
---|
| 228 | <xsl:with-param name="author_id" select="./userid"/> |
---|
| 229 | <xsl:with-param name="visu_modif" select="'visu'"/> |
---|
| 230 | </xsl:call-template> |
---|
| 231 | </xsl:if> |
---|
[31] | 232 | <xsl:text>
</xsl:text> |
---|
| 233 | </xsl:element> |
---|
| 234 | <xsl:text>
</xsl:text> |
---|
| 235 | </xsl:element> |
---|
| 236 | </xsl:template> |
---|
| 237 | |
---|
| 238 | </xsl:stylesheet> |
---|