Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27 jpm 1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
    <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
4
 
5
    <xsl:template match="/groupemacroelement">&lt;?
6
        class <xsl:value-of select="@classe"/> extends groupeMacroElement {
7
 
8
            function __construct($aConn)
9
            {
10
                parent::__construct($aConn);
11
            }
12
 
13
            function construire()
14
            {
15
                $this->dblock= new blockdedonnees('<xsl:value-of select="@nom"/>');
16
                <xsl:apply-templates select="parametres" />
17
 
18
                $this->buildContext();
19
                $this->addMacroElement();
20
            }
21
 
22
            function buildContext()
23
            {
24
 
25
            }
26
 
27
            function addMacroElement()
28
            {
29
                <xsl:apply-templates select="macroelement" />
30
            }
31
 
32
        }
33
?&gt;
34
    </xsl:template>
35
 
36
    <xsl:template match="parametres" >
37
       <xsl:apply-templates select="parametre" />
38
    </xsl:template>
39
 
40
    <xsl:template match="parametre" >
41
               if (array_key_exists('<xsl:value-of select="@nom"/>',$_REQUEST)) { $this->dblock->ajouterDonnee('<xsl:value-of select="@nom"/>',$_REQUEST['<xsl:value-of select="@nom"/>']); }
42
    </xsl:template>
43
 
44
    <xsl:template match="macroelement" >
45
           /*balise:<xsl:value-of select="@nom"/>*/
46
           $aMacroElement = $this->macroElementFactory('<xsl:value-of select="@nom"/>',$this->dblock);
47
           $aMacroElement->construire();
48
    </xsl:template>
49
 
50
 
51
</xsl:stylesheet>