--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY nbsp " ">
+<!ENTITY egrave "è">
+<!ENTITY euro "€">
+<!ENTITY agrave "à">
+<!ENTITY eacute "é">
+]>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.xemelios.org/namespaces#cg-1.0" xmlns:n="http://www.xemelios.org/namespaces#cg-1.0" xmlns:added="http://projets.admisource.gouv.fr/xemelios/namespaces#added" version="2.0">
+ <!-- Paramètres de sortie -->
+ <xsl:character-map name="accents">
+ <xsl:output-character character="à" string="&#224;"/>
+ <xsl:output-character character="é" string="&#233;"/>
+ <xsl:output-character character="è" string="&#232;"/>
+ <xsl:output-character character="ê" string="&#234;"/>
+ <xsl:output-character character="ë" string="&#235;"/>
+ <xsl:output-character character="î" string="&#238;"/>
+ <xsl:output-character character="ï" string="&#239;"/>
+ <xsl:output-character character="ô" string="&#244;"/>
+ <xsl:output-character character="ù" string="&#249;"/>
+ <xsl:output-character character="°" string="&#176;"/>
+ </xsl:character-map>
+ <xsl:output method="xhtml" indent="yes" use-character-maps="accents" encoding="ISO-8859-1"/>
+ <xsl:decimal-format name="decformat" decimal-separator="," grouping-separator=" " digit="#" pattern-separator=";" NaN="NaN" minus-sign="-"/>
+
+ <!-- Inclusion des XSL externes -->
+ <xsl:include href="../../common-xsl/Title.xsl"/>
+ <xsl:include href="../../common-xsl/Style.xsl"/>
+ <xsl:include href="../../common-xsl/Error.xsl"/>
+ <xsl:include href="../../common-xsl/Navigate.xsl"/>
+ <xsl:include href="./common-xsl/Header.xsl"/>
+ <xsl:include href="../../common-xsl/Number.xsl"/><xsl:include href="../../common-xsl/Footer.xsl"/>
+
+ <!-- Paramètres Web -->
+ <xsl:param name="is.web">-1</xsl:param>
+ <xsl:param name="context.path"/>
+
+ <!-- Paramètres d'entrée -->
+ <xsl:param name="show.formulaire"/>
+ <xsl:param name="browser-destination"/>
+
+ <!-- Paramètres d'entrée de la liste de résultat -->
+ <xsl:param name="numCompte">0</xsl:param>
+
+ <!-- Paramètres d'erreur -->
+ <xsl:param name="error.message">nomessage</xsl:param>
+
+ <!-- Variables -->
+ <xsl:variable name="page-format" select="paysage"/>
+ <xsl:variable name="NumPage" select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/n:Pied/@NumPage"/>
+ <xsl:variable name="isLastPage" select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/@added:isLastPage"/>
+ <xsl:variable name="Entete">
+ <xsl:copy-of select="/n:CompteGestion/n:Entete"/>
+ </xsl:variable>
+ <xsl:variable name="Nomenclature" select="$Entete//n:Nomenclature/@V"/>
+ <xsl:variable name="Modele" select="//n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/@Modele"/>
+
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"/>
+
+ <xsl:template match="/n:CompteGestion">
+ <html>
+ <head>
+ <!--title>Opérations budgétaires</title-->
+ <xsl:call-template name="title"><xsl:with-param name="Entete" select="//n:Entete"/><xsl:with-param name="etat">Opérations budgétaires</xsl:with-param></xsl:call-template>
+ <xsl:call-template name="style"/>
+ </head>
+ <body width="100%">
+ <xsl:if test="$error.message!='nomessage'">
+ <xsl:attribute name="onload">javascript:showDialog('<xsl:value-of select="$error.message"/>');</xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="Error"><!--xsl:with-param name="error.message" select="$error.message"/--></xsl:call-template>
+ <xsl:call-template name="navigate">
+ <xsl:with-param name="docId">cg-colloc</xsl:with-param>
+ <xsl:with-param name="etatId">GB_PrevisionRealisationBudgetaire</xsl:with-param>
+ <xsl:with-param name="elementId">PageGB_PrevisionRealisationBudgetaire</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneGB_PrevisionRealisationBudgetaire</xsl:with-param>
+ <xsl:with-param name="NumPage" select="$NumPage"/>
+ <xsl:with-param name="isLastPage" select="$isLastPage"/>
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="show.formulaire" select="$show.formulaire"/>
+ <xsl:with-param name="show.depense.recette" select="0"/>
+ <xsl:with-param name="is.web" select="$is.web"/>
+ <xsl:with-param name="context.path" select="$context.path"/>
+ </xsl:call-template>
+ <xsl:choose>
+ <xsl:when test="$Nomenclature='M21'">
+ <xsl:call-template name="header">
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="Titre.Plus">
+ <h2>COMPTE FINANCIER  <xsl:value-of select="n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/n:EnteteGB_PrevisionRealisationBudgetaire/@Annee"/></h2>
+ <h3>EXECUTION DE L'EPRD</h3>
+ <xsl:choose>
+ <xsl:when test="$Modele='08' or $Modele='09' or $Modele='10'">
+ <h3>SITUATION DETAILLEE DES PREVISIONS ET REALISATIONS</h3>
+ </xsl:when>
+ <xsl:otherwise>
+ <h3>SITUATION SYNTHETIQUE DES PREVISIONS ET REALISATIONS</h3>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="header">
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="Titre.Plus">
+ <h2>Opérations budgétaires de <xsl:value-of select="lower-case(n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/n:EnteteGB_PrevisionRealisationBudgetaire/@Sens)"/> - <xsl:value-of select="n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/n:EnteteGB_PrevisionRealisationBudgetaire/@Section"/> <xsl:value-of select="n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/n:EnteteGB_PrevisionRealisationBudgetaire/@Annee"/></h2>
+ <h3>
+ <xsl:value-of select="n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/n:EnteteGB_PrevisionRealisationBudgetaire/@SousTitre"/>
+ </h3>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <!-- **************** DEBUG **************** -->
+ <!--h1 style="color: red; background-color: yellow;">Type=<xsl:value-of select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/@Type"/><br/>Modele=<xsl:value-of select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/@Modele"/></h1-->
+
+ <xsl:choose>
+ <xsl:when test="$Nomenclature='M21' and /n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/@Type='CR'">
+ <xsl:call-template name="mainTable.21.CR">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$Nomenclature='M21' and /n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/@Type='CR2'">
+ <xsl:call-template name="mainTable.21.CR2">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$Nomenclature='M21' and /n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/@Type='TP'">
+ <xsl:call-template name="mainTable.21.TP">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$Nomenclature='M21' and /n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire/@Type='TF'">
+ <xsl:call-template name="mainTable.21.TF">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="mainTable">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:GB_PrevisionRealisationBudgetaire/n:PageGB_PrevisionRealisationBudgetaire"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ <p>
+ <xsl:call-template name="footer"><xsl:with-param name="num.page" select="$NumPage"/><xsl:with-param name="tracabilite"><xsl:copy-of select="//n:Tracabilite"/></xsl:with-param></xsl:call-template>
+ </p>
+
+ <xsl:call-template name="navigate">
+ <xsl:with-param name="docId">cg-colloc</xsl:with-param>
+ <xsl:with-param name="etatId">GB_PrevisionRealisationBudgetaire</xsl:with-param>
+ <xsl:with-param name="elementId">PageGB_PrevisionRealisationBudgetaire</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneGB_PrevisionRealisationBudgetaire</xsl:with-param>
+ <xsl:with-param name="NumPage" select="$NumPage"/>
+ <xsl:with-param name="isLastPage" select="$isLastPage"/>
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="show.formulaire" select="$show.formulaire"/>
+ <xsl:with-param name="show.depense.recette" select="0"/>
+ <xsl:with-param name="is.web" select="$is.web"/>
+ <xsl:with-param name="context.path" select="$context.path"/>
+ </xsl:call-template>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="mainTable">
+ <xsl:param name="el"/>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="10%"/>
+ <col width="26%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td rowspan="2" class="titre bold center bordered">N° compte</td>
+ <td rowspan="2" class="titre bold center bordered">Libellé des comptes constituant les groupes fonctionnels</td>
+ <td class="titre bold center borderedNotBottom">Budget primitif</td>
+ <td class="titre bold center borderedNotBottom">Décisions modificatives</td>
+ <td class="titre bold center borderedNotBottom">Virements de crédits<br/>(non repris dans une DM)</td>
+ <td class="titre bold center borderedNotBottom">Prévisions budgétaires totales</td>
+ <td class="titre bold center borderedNotBottom">Emissions</td>
+ <td class="titre bold center borderedNotBottom">Annulations</td>
+ <td class="titre bold center borderedNotBottom">Total des réalisations</td>
+ <td class="titre bold center borderedNotBottom">Ecart Prévisions / Réalisations</td>
+ </tr>
+ <tr>
+ <td class="bold center borderedNotTop">1</td>
+ <td class="bold center borderedNotTop">2</td>
+ <td class="bold center borderedNotTop">3</td>
+ <td class="bold center borderedNotTop">4 = 1 + 2 + 3</td>
+ <td class="bold center borderedNotTop">5</td>
+ <td class="bold center borderedNotTop">6</td>
+ <td class="bold center borderedNotTop">7 = 5 - 6</td>
+ <td class="bold center borderedNotTop">8 = 4 - 7</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="contains(lower-case(@LibelleCompteRubrique),'total')">
+ <td class="right bordered bold">
+ <xsl:value-of select="upper-case(@NumCompte)"/>
+ </td>
+ <td class="bordered bold">
+ <xsl:value-of select="@LibelleCompteRubrique"/>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntEcartRealPrev"/>
+ </xsl:call-template>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="center bordureRight">
+ <xsl:value-of select="@NumCompte"/>
+ </td>
+ <td class="bordureRight">
+ <xsl:value-of select="@LibelleCompteRubrique"/>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntEcartRealPrev"/>
+ </xsl:call-template>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </tr>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="mainTable.21.CR">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="excedent.deficit"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ExcedentDeficit']"/></xsl:variable>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder">Compte de résultat <xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@DesignationBudget"/></td>
+ <td class="bold right noborder"><xsl:choose><xsl:when test="$el/@Modele != '08'">CHARGES</xsl:when><xsl:otherwise><xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@ChargesProduits"/></xsl:otherwise></xsl:choose></td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='08'">
+ <col width="20%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <col width="10%"/>
+ <col width="30%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </colgroup>
+ <thead>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='08'">
+ <tr class="titre">
+ <td class="titre bold center borderedBold">Libellés des chapitres</td>
+ <td class="titre bold center borderedBold">CRP   <xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@TypeBudget"/><br/>initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@Piece0"/> Emis</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@Piece1"/> Annulés</td>
+ <td class="titre bold center borderedBold">Total des réalisations</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">N° des<br/>titres</td>
+ <td class="titre bold center borderedBold">Intitulé des comptes constituant les groupes fonctionnels</td>
+ <td class="titre bold center borderedBold">CRP   <xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@TypeBudget"/><br/>initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold">Net constaté</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </thead>
+ <tbody>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='08'">
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"><xsl:value-of select="concat(@LibTitre1,'',@LibTitre2)"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:value-of select="@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='Charges']">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordureRight">
+ <xsl:value-of select="@NumCompte"/>
+ </td>
+ <td class="bordureRight"><xsl:value-of select="concat(@LibTitre1,'',@LibTitre2)"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:value-of select="@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:for-each>
+
+ <xsl:variable name="total1"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ChargesTotal' and @MntBudPrim][1]"/></xsl:variable>
+
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">TOTAL DES CHARGES</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">EXCEDENT</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tbody>
+ </table>
+ <xsl:if test="$el/@Modele != '08'">
+ <br/>
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder"> </td>
+ <td class="bold right noborder">PRODUITS</td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="10%"/>
+ <col width="30%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">N° des<br/>titres</td>
+ <td class="titre bold center borderedBold">Intitulés</td>
+ <td class="titre bold center borderedBold">CRP   <xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@TypeBudget"/><br/>initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold">Net constaté</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='Produits']">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordureRight">
+ <xsl:value-of select="@NumCompte"/>
+ </td>
+ <td class="bordureRight">
+ <xsl:value-of select="concat(@LibTitre1,'',@LibTitre2)"/>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:value-of select="@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:for-each>
+ <xsl:variable name="total1"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ProduitsTotal' and @MntBudPrim][1]"/></xsl:variable>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">TOTAL DES PRODUITS</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">DEFICIT</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntEcartRealPrev"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="mainTable.21.CR2">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="excedent.deficit"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ExcedentDeficit']"/></xsl:variable>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder">Compte de résultat <xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@DesignationBudget"/></td>
+ <td class="bold right noborder">CHARGES</td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="10%"/>
+ <col width="30%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">N° des<br/>titres</td>
+ <td class="titre bold center borderedBold">Intitulés</td>
+ <td class="titre bold center borderedBold">CRP   <xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@TypeBudget"/><br/>initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold">Net constaté</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='Charges']">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordureRight">
+ <xsl:value-of select="@NumCompte"/>
+ </td>
+ <td class="bordureRight"><xsl:value-of select="@LibTitre"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:value-of select="@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:for-each>
+
+ <xsl:variable name="hors.report"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ChargesHorsReport']"/></xsl:variable>
+ <xsl:variable name="report"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ChargesReport']"/></xsl:variable>
+ <xsl:variable name="total1"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ChargesTotal' and @MntBudPrim][1]"/></xsl:variable>
+
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">TOTAL DES CHARGES HORS REPORT A NOUVEAU</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2"><xsl:value-of select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@RanDef"/></td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">TOTAL DES CHARGES</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">EXCEDENT</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntEcartRealPrev"/></td>
+ </tr>
+ </tbody>
+ </table>
+ <br/>
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder"> </td>
+ <td class="bold right noborder">PRODUITS</td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="10%"/>
+ <col width="30%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">N° des<br/>titres</td>
+ <td class="titre bold center borderedBold">Intitulés</td>
+ <td class="titre bold center borderedBold">CRP   <xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@TypeBudget"/><br/>initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold">Net constaté</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='Produits']">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordureRight">
+ <xsl:value-of select="@NumCompte"/>
+ </td>
+ <td class="bordureRight"><xsl:value-of select="@LibTitre"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:value-of select="@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:for-each>
+
+ <xsl:variable name="hors.report"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ProduitsHorsReport']"/></xsl:variable>
+ <xsl:variable name="report"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ProduitsReport']"/></xsl:variable>
+ <xsl:variable name="total1"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ProduitsTotal' and @MntBudPrim][1]"/></xsl:variable>
+
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">TOTAL DES CHARGES HORS REPORT A NOUVEAU</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$hors.report/n:LigneGB_PrevisionRealisationBudgetaire/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2"><xsl:value-of select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@RanDef"/></td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$report/n:LigneGB_PrevisionRealisationBudgetaire/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">TOTAL DES PRODUITS</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$total1/n:LigneGB_PrevisionRealisationBudgetaire/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bold borderedBold" colspan="2">DEFICIT</td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$excedent.deficit/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntEcartRealPrev"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="mainTable.21.TP">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="excedent.deficit"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='ExcedentDeficit']"/></xsl:variable>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder"><xsl:choose><xsl:when test="$el/@Modele='10'">Tableau de financement</xsl:when><xsl:otherwise>Tableau de passage des résultat à la CAF</xsl:otherwise></xsl:choose></td>
+ <td class="bold right noborder"><xsl:choose><xsl:when test="$el/@Modele='10'"><xsl:value-of select="$el/n:EnteteGB_PrevisionRealisationBudgetaire/@RessourcesEmplois"></xsl:value-of></xsl:when><xsl:otherwise> </xsl:otherwise></xsl:choose></td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='10'">
+ <col width="20%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </xsl:when>
+ <xsl:when test="$el/@Modele='09'">
+ <col width="10%"/>
+ <col/>
+ <col width="9%"/>
+ <col width="9%"/>
+ <col width="9%"/>
+ <col width="9%"/>
+ <col width="9%"/>
+ <col width="9%"/>
+ <col width="9%"/>
+ <col width="9%"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <col width="10%"/>
+ <col width="20%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </colgroup>
+ <thead>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='10'">
+ <tr class="titre">
+ <td class="titre bold center borderedBold">Libellés des chapitres</td>
+ <td class="titre bold center borderedBold">CRP   <xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@TypeBudget"/><br/>initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@Piece0"/> Emis</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="//n:EnteteGB_PrevisionRealisationBudgetaire/@Piece1"/> Annulés</td>
+ <td class="titre bold center borderedBold">Total des réalisations</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </xsl:when>
+ <xsl:when test="$el/@Modele='09'">
+ <tr class="titre">
+ <td class="titre bold center borderedBold">N° des<br/>titres</td>
+ <td class="titre bold center borderedBold">Libellés des chapitres</td>
+ <td class="titre bold center borderedBold">CRP initiaux</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold">Mandats/Titres Emis</td>
+ <td class="titre bold center borderedBold">Mandats/Titres Annulés</td>
+ <td class="titre bold center borderedBold">Total des réalisations</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">N° des<br/>titres</td>
+ <td class="titre bold center borderedBold">Intitulé</td>
+ <td class="titre bold center borderedBold">CRP initiaux</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold">Net constaté</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </thead>
+ <tbody>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='10'">
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"><xsl:value-of select="concat(@LibTitre1,'',@LibTitre2)"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:value-of select="@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised1</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="bold center borderedBold" colspan="2">TOTAL DES CHARGES</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised2</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordered">675</td>
+ <td class="bordered">- Valeurs comptable des éléments d'actifs cédés</td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised1</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordered">68</td>
+ <td class="bordered">- Dotations aux amortissements, dépréciations et provisions</td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntEcartRealPrev"/></td>
+ </tr>
+
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised2</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="bold center borderedBold" colspan="2">SOUS-TOTAL 1</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[4]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[4]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[4]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[4]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[4]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[4]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[4]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[4]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised1</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="bold center borderedBold" colspan="2">TOTAL DES PRODUITS</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[5]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[5]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[5]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[5]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[5]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[5]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[5]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[5]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised2</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordered">775</td>
+ <td class="bordered">- Produits des cessions d'éléments d'actifs</td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[6]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[6]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[6]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[6]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[6]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[6]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[6]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[6]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised1</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordered">777</td>
+ <td class="bordered">- quote-part des subventions virée au résultat</td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[7]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[7]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[7]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[7]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[7]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[7]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[7]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[7]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised2</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordered">78</td>
+ <td class="bordered">- Reprises sur dépréciations et provisions</td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[8]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[8]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[8]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[8]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[8]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[8]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[8]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[8]/@MntEcartRealPrev"/></td>
+ </tr>
+
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised1</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="bold center borderedBold" colspan="2">SOUS-TOTAL 2</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[9]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[9]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[9]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[9]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[9]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[9]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[9]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[9]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised2</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="bold center borderedBold" colspan="2">CAPACITE D'AUTOFINANCEMENT OU INSUFFISANCE D'AUTOFINANCEMENT</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[10]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[10]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[10]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[10]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <xsl:if test="$el/@Modele='09'">
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[10]/@MntEmission"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[10]/@MntAnnulation"/>
+ </xsl:call-template>
+ </td>
+ </xsl:if>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$el/n:LigneGB_PrevisionRealisationBudgetaire[10]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[10]/@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tbody>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="mainTable.21.TF">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="total.3.4.5"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='Total3.4.5']"/></xsl:variable>
+ <xsl:variable name="total.1.2"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='Total1.2']"/></xsl:variable>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder">Tableau de financement</td>
+ <td class="bold right noborder"> </td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="10%"/>
+ <col width="30%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">N° des<br/>titres</td>
+ <td class="titre bold center borderedBold">Intitulés</td>
+ <td class="titre bold center borderedBold">TF initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold">Net constaté</td>
+ <td class="titre bold center borderedBold">Ecart réalisations -<br/>prévisions</td>
+ </tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised2</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bold borderedBold" colspan="2">CAF</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntEcartRealPrev"/></td>
+ </tr>
+
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='Ressources']">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordered">
+ <xsl:value-of select="@NumCompte"/>
+ </td>
+ <td class="bordered">
+ <xsl:value-of select="concat(@LibTitre1,'',@LibTitre2)"/>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:value-of select="@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:for-each>
+
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised2</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bold borderedBold" colspan="2">TOTAL DES RESSOURCES (A)</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised1</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bold borderedBold" colspan="2">IAF</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[1]/@MntEcartRealPrev"/></td>
+ </tr>
+
+ <xsl:for-each select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='Emplois']">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="center bordureRight">
+ <xsl:value-of select="@NumCompte"/>
+ </td>
+ <td class="bordureRight">
+ <xsl:value-of select="concat(@LibTitre1,'',@LibTitre2)"/>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:value-of select="@MntEcartRealPrev"/></td>
+ </tr>
+ </xsl:for-each>
+
+ <xsl:variable name="total1"><xsl:copy-of select="$el/n:LigneGB_PrevisionRealisationBudgetaire[@Type='EmploisTotal' and @MntBudPrim][1]"/></xsl:variable>
+
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised2</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bold borderedBold" colspan="2">TOTAL DES EMPLOIS (B)</td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[2]/@MntEcartRealPrev"/></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="id">colorised1</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <td class="center bold borderedBold" colspan="2">APPORT AU FOND DE <xsl:choose><xsl:when test="number(number($total.1.2/n:LigneGB_PrevisionRealisationBudgetaire[2]) - number($total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[4])) < 0">PRELEVEMENT</xsl:when><xsl:otherwise>ROULEMENT</xsl:otherwise></xsl:choose></td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="bold montant borderedBold"><xsl:value-of select="$total.3.4.5/n:LigneGB_PrevisionRealisationBudgetaire[3]/@MntEcartRealPrev"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file