1,16 → 1,11 |
<?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="/macroelement"><? |
|
<xsl:apply-templates select="//balise2" mode="require_once"/> |
|
|
|
class <xsl:value-of select="@nom"/> extends macroElement { |
|
|
function getSQL() |
{ |
$contexte = array(); |
26,8 → 21,6 |
--> |
|
} |
|
|
?> |
</xsl:template> |
|
56,7 → 49,6 |
|
<xsl:template match="parametre" mode="renseigne">!empty($contexte['<xsl:value-of select="@nom"/>']) and </xsl:template> |
|
|
<xsl:template match="*" mode="level1root"> |
$element= new domElement('<xsl:value-of select="name()"/>'); |
$this->baseDOM->appendChild($element); |
100,7 → 92,6 |
$this->baseDOM->appendChild($element); |
<xsl:apply-templates select="@*"/> |
<xsl:apply-templates select="text()"/> |
|
</xsl:template> |
|
<xsl:template match="@*"> |
111,5 → 102,4 |
/*text(<xsl:value-of select="."/>)*/ |
</xsl:template> |
|
|
</xsl:stylesheet> |
</xsl:stylesheet> |