[2] | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
---|
| 2 | |
---|
| 3 | <!-- |
---|
| 4 | module : |
---|
| 5 | creation du prototype de formulaire utilisateur |
---|
| 6 | |
---|
| 7 | source : |
---|
| 8 | /usr/home/fplod/incas/bibnemo/src/bibnemomaf/template_db.xsl sur aedon.locean-ipsl.upmc.fr |
---|
| 9 | |
---|
| 10 | update : |
---|
| 11 | creation |
---|
| 12 | fplod 2007-04-26T09:31:32Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 13 | --> |
---|
| 14 | |
---|
| 15 | <xsl:stylesheet |
---|
| 16 | id="id" version="1.0" |
---|
| 17 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
| 18 | |
---|
| 19 | <xsl:output |
---|
| 20 | method="xml" |
---|
| 21 | indent="yes" |
---|
| 22 | encoding="ISO-8859-1" |
---|
| 23 | omit-xml-declaration="no" |
---|
| 24 | doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" |
---|
| 25 | doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/> |
---|
| 26 | |
---|
| 27 | <xsl:include href="form_db.xsl"/> |
---|
| 28 | |
---|
| 29 | <xsl:template match="usersnemo"> |
---|
| 30 | |
---|
| 31 | <xsl:apply-templates select="usernemo[child::userid='template']"/> |
---|
| 32 | </xsl:template> |
---|
| 33 | |
---|
| 34 | <xsl:template match="usernemo[child::userid='template']"> |
---|
| 35 | <article id="template_form" lang="en"> |
---|
| 36 | <title>Nemo Survey - Template</title> |
---|
| 37 | <articleinfo> |
---|
| 38 | <authorgroup> |
---|
| 39 | <author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author> |
---|
| 40 | <author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author> |
---|
| 41 | <!--++--> |
---|
| 42 | </authorgroup> |
---|
| 43 | <keywordset> |
---|
| 44 | <keyword>NEMO</keyword> |
---|
| 45 | </keywordset> |
---|
| 46 | <!-- ++ date --> |
---|
| 47 | </articleinfo> |
---|
| 48 | |
---|
| 49 | <xsl:comment> |
---|
| 50 | template form from template userid in usernemo.xml. |
---|
| 51 | Last update of the usernemo databank : <xsl:value-of select="ancestor::usersnemo/child::date"/> |
---|
| 52 | </xsl:comment> |
---|
| 53 | <xsl:text>
</xsl:text> |
---|
| 54 | <xsl:element name="sect1"> |
---|
| 55 | <xsl:attribute name="id">intro</xsl:attribute> |
---|
| 56 | <title>Context</title> |
---|
| 57 | <xsl:element name="para"> |
---|
| 58 | The mail sent by filling this form will be used to update |
---|
| 59 | <ulink url="bibnemomain.php">Nemo-Puplications-Papers</ulink> |
---|
| 60 | and <ulink url="usernemo.html">Nemo Users</ulink>. |
---|
| 61 | </xsl:element> |
---|
| 62 | </xsl:element> |
---|
| 63 | <xsl:text>
</xsl:text> |
---|
| 64 | <xsl:element name="sect1"> |
---|
| 65 | <xsl:attribute name="id"><xsl:value-of select="userid"/></xsl:attribute> |
---|
| 66 | <xsl:text>
</xsl:text> |
---|
| 67 | <xsl:choose> |
---|
| 68 | <xsl:when test="userid != 'template'"> |
---|
| 69 | <xsl:element name="title"> |
---|
| 70 | <xsl:value-of select="personname/firstname"/> <xsl:text> </xsl:text> <xsl:value-of select="personname/surname"/> |
---|
| 71 | </xsl:element> |
---|
| 72 | </xsl:when> |
---|
| 73 | <xsl:otherwise> |
---|
| 74 | <xsl:element name="title">Template</xsl:element> |
---|
| 75 | </xsl:otherwise> |
---|
| 76 | </xsl:choose> |
---|
| 77 | <xsl:text>
</xsl:text> |
---|
| 78 | <xsl:element name="para"> |
---|
| 79 | <xsl:value-of select="email"/> |
---|
| 80 | </xsl:element> |
---|
| 81 | <xsl:text>
</xsl:text> |
---|
| 82 | <xsl:call-template name="form_db"> |
---|
| 83 | <xsl:with-param name="author_id" select="userid"/> |
---|
| 84 | <xsl:with-param name="usernemo" select="."/> |
---|
| 85 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
| 86 | <xsl:with-param name="bibmode" select="'no'"/> |
---|
| 87 | </xsl:call-template> |
---|
| 88 | <xsl:text>
</xsl:text> |
---|
| 89 | </xsl:element> |
---|
| 90 | </article> |
---|
| 91 | </xsl:template> |
---|
| 92 | |
---|
| 93 | </xsl:stylesheet> |
---|