Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 27 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8"?>
<!-- Note : enregistrer ce fichier avec l'encodage UTF-8 cookie. -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
  
  <xsl:template match="/groupemacroelement">&lt;?
        class <xsl:value-of select="@classe"/> extends groupeMacroElement {
        
            function __construct($aConn)
            {
                parent::__construct($aConn);
            }
            
            function construire()
            {
                $this->dblock= new blockdedonnees('<xsl:value-of select="@nom"/>');
                <xsl:apply-templates select="parametres" />
                
                $this->buildContext();
                $this->addMacroElement();
            } 
            
            function buildContext()
            {
            
            }
            
            function addMacroElement()
            {
                <xsl:apply-templates select="macroelement" />
            }
        
        }
?&gt;
  </xsl:template>
  
  <xsl:template match="parametres" >
    <xsl:apply-templates select="parametre" />
  </xsl:template>
  
  <xsl:template match="parametre" >
    if (array_key_exists('<xsl:value-of select="@nom"/>',$_REQUEST)) { $this->dblock->ajouterDonnee('<xsl:value-of select="@nom"/>',$_REQUEST['<xsl:value-of select="@nom"/>']); }
  </xsl:template>
  
  <xsl:template match="macroelement" >
    /*balise:<xsl:value-of select="@nom"/>*/
    $aMacroElement = $this->macroElementFactory('<xsl:value-of select="@nom"/>',$this->dblock);
    $aMacroElement->construire();
  </xsl:template>
  
</xsl:stylesheet>