Subversion Repositories eFlore/Archives.eflore-consultation-v2

Compare Revisions

Ignore whitespace Rev 104 → Rev 105

/trunk/serveur/generateur/xslt/groupemacroelement.xslt
1,8 → 1,9
<?xml version="1.0" encoding="UTF-8"?>
<?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;?
<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)
31,21 → 32,20
}
?&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>
</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>