[2] | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
---|
[55] | 2 | <xsl:stylesheet |
---|
| 3 | version="1.0" |
---|
| 4 | xmlns:html="http://www.w3.org/1999/xhtml" |
---|
[58] | 5 | xmlns:d="http://docbook.org/ns/docbook" |
---|
[55] | 6 | xmlns:xl="http://www.w3.org/1999/xlink" |
---|
| 7 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
[2] | 8 | |
---|
| 9 | <!-- |
---|
| 10 | module : |
---|
[49] | 11 | création du prototype de formulaire utilisateur |
---|
[2] | 12 | |
---|
| 13 | update : |
---|
[31] | 14 | $Id$ |
---|
[58] | 15 | fplod 2008-04-30T13:30:47Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 16 | language inherited from biblio.xml |
---|
[55] | 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) |
---|
[2] | 20 | creation |
---|
| 21 | --> |
---|
| 22 | |
---|
| 23 | <xsl:output |
---|
| 24 | method="xml" |
---|
| 25 | indent="yes" |
---|
| 26 | encoding="ISO-8859-1" |
---|
[55] | 27 | omit-xml-declaration="no"/> |
---|
[2] | 28 | |
---|
| 29 | <xsl:include href="form_db.xsl"/> |
---|
| 30 | |
---|
[31] | 31 | <xsl:template match="users"> |
---|
[2] | 32 | |
---|
[31] | 33 | <xsl:apply-templates select="user[child::userid='template']"/> |
---|
[2] | 34 | </xsl:template> |
---|
| 35 | |
---|
[31] | 36 | <xsl:template match="user[child::userid='template']"> |
---|
[55] | 37 | <xsl:element name="article"> |
---|
| 38 | <xsl:attribute name="version">5.0</xsl:attribute> |
---|
| 39 | <xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute> |
---|
[64] | 40 | <xsl:attribute name="xml:lang"><xsl:value-of select="/d:bibliography/@xml:lang"/></xsl:attribute> |
---|
[55] | 41 | <xsl:attribute name="xml:id">template_form</xsl:attribute> |
---|
| 42 | |
---|
[2] | 43 | <title>Nemo Survey - Template</title> |
---|
[55] | 44 | <info> |
---|
[2] | 45 | <authorgroup> |
---|
| 46 | <author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author> |
---|
| 47 | <author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author> |
---|
| 48 | <!--++--> |
---|
| 49 | </authorgroup> |
---|
| 50 | <keywordset> |
---|
| 51 | <keyword>NEMO</keyword> |
---|
| 52 | </keywordset> |
---|
| 53 | <!-- ++ date --> |
---|
[55] | 54 | </info> |
---|
[58] | 55 | <xsl:text>
</xsl:text> |
---|
[2] | 56 | |
---|
| 57 | <xsl:comment> |
---|
[31] | 58 | template form from template userid in user.xml. |
---|
[58] | 59 | <xsl:call-template name="para_lastupdate_user"> |
---|
| 60 | <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/> |
---|
| 61 | |
---|
| 62 | <xsl:with-param name="date" select="ancestor::users/child::date"/> |
---|
| 63 | </xsl:call-template> |
---|
[2] | 64 | </xsl:comment> |
---|
[58] | 65 | |
---|
[2] | 66 | <xsl:text>
</xsl:text> |
---|
| 67 | <xsl:element name="sect1"> |
---|
[55] | 68 | <xsl:attribute name="xml:id">intro</xsl:attribute> |
---|
[2] | 69 | <title>Context</title> |
---|
| 70 | <xsl:element name="para"> |
---|
| 71 | The mail sent by filling this form will be used to update |
---|
[55] | 72 | <link xl:href="main.php">Nemo-Publications-Papers</link> |
---|
| 73 | and <link xl:href="user.html">Nemo Users</link>. |
---|
[2] | 74 | </xsl:element> |
---|
| 75 | </xsl:element> |
---|
| 76 | <xsl:text>
</xsl:text> |
---|
| 77 | <xsl:element name="sect1"> |
---|
[55] | 78 | <xsl:attribute name="xml:id"><xsl:value-of select="userid"/></xsl:attribute> |
---|
[2] | 79 | <xsl:text>
</xsl:text> |
---|
| 80 | <xsl:choose> |
---|
| 81 | <xsl:when test="userid != 'template'"> |
---|
| 82 | <xsl:element name="title"> |
---|
| 83 | <xsl:value-of select="personname/firstname"/> <xsl:text> </xsl:text> <xsl:value-of select="personname/surname"/> |
---|
| 84 | </xsl:element> |
---|
| 85 | </xsl:when> |
---|
| 86 | <xsl:otherwise> |
---|
| 87 | <xsl:element name="title">Template</xsl:element> |
---|
| 88 | </xsl:otherwise> |
---|
| 89 | </xsl:choose> |
---|
| 90 | <xsl:text>
</xsl:text> |
---|
| 91 | <xsl:element name="para"> |
---|
| 92 | <xsl:value-of select="email"/> |
---|
| 93 | </xsl:element> |
---|
| 94 | <xsl:text>
</xsl:text> |
---|
| 95 | <xsl:call-template name="form_db"> |
---|
| 96 | <xsl:with-param name="author_id" select="userid"/> |
---|
[31] | 97 | <xsl:with-param name="user" select="."/> |
---|
[2] | 98 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
| 99 | <xsl:with-param name="bibmode" select="'no'"/> |
---|
| 100 | </xsl:call-template> |
---|
| 101 | <xsl:text>
</xsl:text> |
---|
| 102 | </xsl:element> |
---|
[55] | 103 | </xsl:element> |
---|
[2] | 104 | </xsl:template> |
---|
| 105 | |
---|
| 106 | </xsl:stylesheet> |
---|