--- /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:SituationDeveloppee/n:PageSituationDeveloppee/n:Pied/@NumPage"/>
+ <xsl:variable name="isLastPage" select="/n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee/@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:SituationDeveloppee/n:PageSituationDeveloppee/@Modele"/>
+
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"/>
+
+ <xsl:variable name="comptes.libelles">
+ <ComptesLibelles>
+ <Type V="CR" Modele="701">
+ <CompteLibelle Compte="60 (sauf 603)" Libelle="Achats (hors 609)"/>
+ <CompteLibelle Compte="603" Libelle="Variation des stocks (annulation de stock initial)"/>
+ <CompteLibelle Compte="61 (sauf 61521)" Libelle="Services extérieurs (hors 619)"/>
+ <CompteLibelle Compte="61521" Libelle="Dépenses de gros entretien sur biens immobiliers"/>
+ <CompteLibelle Compte="62" Libelle="Autres services extérieurs (hors 629)"/>
+ <CompteLibelle Compte="63 (sauf 63512)" Libelle="Impôts, taxes, verst assim. (hors 6319, 6339, 6359)"/>
+ <CompteLibelle Compte="63512" Libelle="Taxes foncières"/>
+ <CompteLibelle Compte="641" Libelle="Rémunérations du personnel (hors 6419)"/>
+ <CompteLibelle Compte="6481" Libelle="Autres charges de personnel - rémunérations, indem"/>
+ <CompteLibelle Compte="Autres 64" Libelle="Charges de personnel (hors 6419, 6459, 6479, 6489)"/>
+ <CompteLibelle Compte="65 (sauf 654)" Libelle="Autres charges de gestion courante"/>
+ <CompteLibelle Compte="654" Libelle="Pertes sur créances irrécouvrables"/>
+ <CompteLibelle Compte="66" Libelle="Charges financières (hors 6691)"/>
+ <CompteLibelle Compte="67 (sauf 6732, 675)" Libelle="Charges exceptionnelles"/>
+ <CompteLibelle Compte="675" Libelle="VNC des éléments sortis de l'actifimmobilisé"/>
+ <CompteLibelle Compte="68 (sauf 68157)" Libelle="Dotations aux amortis., dépréciations. et provisions"/>
+ <CompteLibelle Compte="68157" Libelle="Provisions pour gros entretien"/>
+ <CompteLibelle Compte="69" Libelle="Participation des salariés - Impôts sur les bénéfices"/>
+ <CompteLibelle Compte="71" Libelle="Production stockée (annulation de stock initial)"/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES CHARGES NON RECUPERABLES (hors 6732)"/>
+ <CompteLibelle Compte="' 063 '" Libelle="Total des charges récupérables"/>
+ <CompteLibelle Compte="6732" Libelle="Réduction de récupération de charges locatives sur exercices antérieurs"/>
+ <CompteLibelle Compte="" Libelle=""/>
+ <CompteLibelle Compte="" Libelle=""/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES CHARGES"/>
+ <CompteLibelle Compte="" Libelle="EXCEDENT"/>
+ </Type>
+ <Type V="CR" Modele="702">
+ <CompteLibelle Compte="70 (sauf 703, 704)" Libelle="Produits des activités"/>
+ <CompteLibelle Compte="704" Libelle="Loyers"/>
+ <CompteLibelle Compte="71" Libelle="Production stockée (constatation de stock final)"/>
+ <CompteLibelle Compte="72" Libelle="Production immobilisée"/>
+ <CompteLibelle Compte="74" Libelle="Subventions d'exploitation"/>
+ <CompteLibelle Compte="75" Libelle="Autres produits de gestion courante"/>
+ <CompteLibelle Compte="76" Libelle="Produits financiers"/>
+ <CompteLibelle Compte="77 (sauf 7723, 775)" Libelle="Produits exceptionnels (hors 7732)"/>
+ <CompteLibelle Compte="775" Libelle="Produits des cessions d'éléments d'actif"/>
+ <CompteLibelle Compte="78 (sauf 78157)" Libelle="Reprises sur amortis., dépréciations et provisions"/>
+ <CompteLibelle Compte="78157" Libelle="Provisions pour gros entretien"/>
+ <CompteLibelle Compte="79" Libelle="Transferts de charges"/>
+ <CompteLibelle Compte="603" Libelle="Variation de stocks (constatation de stock final)"/>
+ <CompteLibelle Compte="' 061 '" Libelle="Rabais, remises, ristournes et bonifications d'intérêts(sur charges non récupérables)"/>
+ <CompteLibelle Compte="' 062 '" Libelle="Remboursement sur salaires, charges sociales et taxes (sur charges non récupérables)"/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES PRODUITS HORS RECUPERATION DE CHARGES"/>
+ <CompteLibelle Compte="703" Libelle="Récupération de charges locatives"/>
+ <CompteLibelle Compte="7723" Libelle="Complément de récupération de charges locatives sur exercices antérieurs"/>
+ <CompteLibelle Compte="' 064 '" Libelle="Atténuation de charges récupérables"/>
+ <CompteLibelle Compte="" Libelle=""/>
+ <CompteLibelle Compte="" Libelle=""/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES PRODUITS"/>
+ <CompteLibelle Compte="" Libelle="DEFICIT"/>
+ </Type>
+ <Type V="CAF" Modele="071">
+ <CompteLibelle Compte="" Libelle="TOTAL DES CHARGES"/>
+ <CompteLibelle Compte="675" Libelle="-Valeur comptable des éléments d'actifs cédés, démolis, remplacés"/>
+ <CompteLibelle Compte="68 (sauf 68157)" Libelle="-Dotations aux amortissements, aux dépréciations et aux provisions"/>
+ <CompteLibelle Compte="68157" Libelle="-Provisions pour gros entretien"/>
+ <CompteLibelle Compte="" Libelle="TOTAL I"/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES PRODUITS"/>
+ <CompteLibelle Compte="775" Libelle="-Produits des cessions d'élémentsd'actifs"/>
+ <CompteLibelle Compte="777" Libelle="-Quote part des subventions virée au résultat"/>
+ <CompteLibelle Compte="78 (sauf 78157)" Libelle="-Reprises sur amortissements, aux dépréciations et provisions"/>
+ <CompteLibelle Compte="78157" Libelle="-Provisions pour gros entretien"/>
+ <CompteLibelle Compte="7963" Libelle="-Transfert de charges financières -Intérêts compensateurs"/>
+ <CompteLibelle Compte="" Libelle="TOTAL II"/>
+ <CompteLibelle Compte="" Libelle="CAPACITE D'AUTOFINANCEMENT OU INSUFFISANCE D'AUTOFINANCEMENT"/>
+ </Type>
+ <Type V="TF" Modele="721">
+ <CompteLibelle Compte="" Libelle="IAF"/>
+ <CompteLibelle Compte="20" Libelle="Immobilisations incorporelles (sauf 232, 237)"/>
+ <CompteLibelle Compte="232" Libelle="Immobilisations incorporelles en cours"/>
+ <CompteLibelle Compte="237" Libelle="Avances et acomptes versés sur immobilisations incorporelles"/>
+ <CompteLibelle Compte="" Libelle="Sous-Total1 - Immobilisations incorporelles"/>
+ <CompteLibelle Compte="211" Libelle="Terrains"/>
+ <CompteLibelle Compte="212" Libelle="Agencements et aménagements de terrains"/>
+ <CompteLibelle Compte="213 (hors 21311)" Libelle="Constructions"/>
+ <CompteLibelle Compte="21311" Libelle="Immeubles de rapport"/>
+ <CompteLibelle Compte="214 (hors 21411)" Libelle="Constructions sur sol d'autrui"/>
+ <CompteLibelle Compte="21411" Libelle="Immeubles de rapport"/>
+ <CompteLibelle Compte="215" Libelle="Installations techniques, matériel et outillage"/>
+ <CompteLibelle Compte="218" Libelle="Autres immobilisations corporelles"/>
+ <CompteLibelle Compte="221" Libelle="Immeubles en location-vente"/>
+ <CompteLibelle Compte="2312" Libelle="Terrains en cours"/>
+ <CompteLibelle Compte="2313 (hors 231311)" Libelle="Constructions en cours"/>
+ <CompteLibelle Compte="231311" Libelle="Immeubles de rapport en cours"/>
+ <CompteLibelle Compte="2314 (hors 231411)" Libelle="Construction sur sol d'autrui en cours"/>
+ <CompteLibelle Compte="231411" Libelle="Immeubles de rapport en cours"/>
+ <CompteLibelle Compte="2318" Libelle="Autres immobilisations corporelles en cours"/>
+ <CompteLibelle Compte="235" Libelle="Part investissement PPP"/>
+ <CompteLibelle Compte="238" Libelle="Avances et acomptes versés sur immobilisations corporelles"/>
+ <CompteLibelle Compte="" Libelle="Sous-Total2 - Immobilisations corporelles"/>
+ </Type>
+ <Type V="TF" Modele="722">
+ <CompteLibelle Compte="26" Libelle="Participations et créances rattachées à des participations"/>
+ <CompteLibelle Compte="27 (hors 278)" Libelle="Autres immobilisations financières"/>
+ <CompteLibelle Compte="278" Libelle="Prêts accession"/>
+ <CompteLibelle Compte="" Libelle="Sous-Total3 - Immobilisations financières"/>
+ <CompteLibelle Compte="" Libelle="ACQUISITIONS D'ELEMENTS DE L'ACTIF IMMOBILISE (ST 1 + ST 2 + ST 3)"/>
+ <CompteLibelle Compte="481" Libelle="Charges à répartir sur plusieurs exercices"/>
+ <CompteLibelle Compte="169" Libelle="Primes de remboursement des obligations"/>
+ <CompteLibelle Compte="13" Libelle="Subventions remboursées"/>
+ <CompteLibelle Compte="162" Libelle="Participation des employeurs à l'effort de construction"/>
+ <CompteLibelle Compte="163" Libelle="Emprunts obligataires"/>
+ <CompteLibelle Compte="164 (hors 1649)" Libelle="Emprunts auprès des établissements de crédits"/>
+ <CompteLibelle Compte="1649" Libelle="Refinancement de dette"/>
+ <CompteLibelle Compte="1651" Libelle="Dépôts de garantie des locataires"/>
+ <CompteLibelle Compte="1654" Libelle="Redevances (location -accession)"/>
+ <CompteLibelle Compte="1658" Libelle="Autres dépôts"/>
+ <CompteLibelle Compte="166" Libelle="Participation des salariés aux résultats"/>
+ <CompteLibelle Compte="167" Libelle="Emprunts et dettes assorties de conditions particulières"/>
+ <CompteLibelle Compte="168 (hors 16883)" Libelle="Autres emprunts et dettes assimilées"/>
+ <CompteLibelle Compte="16883" Libelle="Intérêts compensateurs courus (diminution)"/>
+ <CompteLibelle Compte="" Libelle="REMBOURSEMENT DES DETTES FINANCIERES"/>
+ <CompteLibelle Compte="'071'" Libelle="Annulation de titres sur exercices clos"/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES EMPLOIS"/>
+ <CompteLibelle Compte="" Libelle="APPORT AU FONDS DE ROULEMENT"/>
+ </Type>
+ <Type V="TF" Modele="723">
+ <CompteLibelle Compte="" Libelle="CAF"/>
+ <CompteLibelle Compte="775" Libelle="Produits des cessions d'élémentsd'actif"/>
+ <CompteLibelle Compte="278" Libelle="Prêts accession"/>
+ <CompteLibelle Compte="27 (hors 278)" Libelle=" Autres immobilisations financières (sauf 271, 272 et 2768"/>
+ <CompteLibelle Compte="" Libelle="CESSION OU REDUCTION D'ELEMENTS DE L'ACTIF IMMOBILISE"/>
+ <CompteLibelle Compte="102" Libelle="Dotations"/>
+ <CompteLibelle Compte="103" Libelle="Autres compléments de dotation -Dons et legs en capital"/>
+ <CompteLibelle Compte="13" Libelle="Subventions d'investissement"/>
+ <CompteLibelle Compte="" Libelle="AUGMENTATION DES CAPITAUX PROPRES"/>
+ <CompteLibelle Compte="162" Libelle="Participation des employeurs à l'effortde construction"/>
+ <CompteLibelle Compte="163" Libelle="Emprunts obligataires"/>
+ <CompteLibelle Compte="164 (hors 1649)" Libelle="Emprunts auprès des établissements de crédits"/>
+ <CompteLibelle Compte="1649" Libelle="Refinancement de dette"/>
+ <CompteLibelle Compte="1651" Libelle="Dépôts de garantie des locataires"/>
+ <CompteLibelle Compte="1654" Libelle="Redevances (location -accession)"/>
+ <CompteLibelle Compte="1658" Libelle="Autres dépôts"/>
+ <CompteLibelle Compte="167" Libelle="Emprunts et dettes assorties de conditions particulières"/>
+ <CompteLibelle Compte="168 (hors 16883)" Libelle="Autres emprunts et dettes assimilées"/>
+ <CompteLibelle Compte="16883" Libelle="Intérêts compensateurs courus (augmentation)"/>
+ <CompteLibelle Compte="" Libelle="AUGMENTATION DES DETTES FINANCIERES"/>
+ <CompteLibelle Compte="070" Libelle=" Annulation de mandats sur exercices clos"/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES RESSOURCES"/>
+ <CompteLibelle Compte="" Libelle="PRELEVEMENT SUR FONDS DE ROULEMENT"/>
+ </Type>
+ <Type V="TSSP" Modele="073">
+ <CompteLibelle Compte="31" Libelle="Terrains à aménager"/>
+ <CompteLibelle Compte="33" Libelle="Immeubles en cours"/>
+ <CompteLibelle Compte="35" Libelle="Immeubles achevés"/>
+ <CompteLibelle Compte="" Libelle="TOTAL I"/>
+ <CompteLibelle Compte="31" Libelle="Terrains à aménager"/>
+ <CompteLibelle Compte="33" Libelle="Immeubles en cours"/>
+ <CompteLibelle Compte="35" Libelle="Immeubles achevés"/>
+ <CompteLibelle Compte="" Libelle="TOTAL II"/>
+ <CompteLibelle Compte="" Libelle="BFR (EMPLOIS-RESSOURCES)"/>
+ </Type>
+ </ComptesLibelles>
+ </xsl:variable>
+
+
+ <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">SituationDeveloppee</xsl:with-param>
+ <xsl:with-param name="elementId">PageSituationDeveloppee</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneSituationDeveloppee</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='M31'">
+ <xsl:call-template name="header">
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="Titre.Plus">
+ <xsl:choose>
+ <xsl:when test="$Modele='701' or $Modele='702' or $Modele='071' or $Modele='721' or $Modele='722' or $Modele='723' or $Modele='073'">
+ <h2>SITUATION DEVELOPPEE DES PREVISIONS ET REALISATIONS</h2>
+ </xsl:when>
+ <xsl:otherwise>
+ <h2>SITUATION DETAILLEE DES PREVISIONS ET REALISATIONS</h2>
+ </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:SituationDeveloppee/n:PageSituationDeveloppee/n:EnteteSituationDeveloppee/@Sens)"/> - <xsl:value-of select="n:SituationDeveloppee/n:PageSituationDeveloppee/n:EnteteSituationDeveloppee/@Section"/> <xsl:value-of select="n:SituationDeveloppee/n:PageSituationDeveloppee/n:EnteteSituationDeveloppee/@Annee"/></h2>
+ <h3>
+ <xsl:value-of select="n:SituationDeveloppee/n:PageSituationDeveloppee/n:EnteteSituationDeveloppee/@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:SituationDeveloppee/n:PageSituationDeveloppee/@Type"/><br/>Modele=<xsl:value-of select="/n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee/@Modele"/></h1-->
+
+ <xsl:choose>
+ <xsl:when test="$Nomenclature='M31' and /n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee/@Type='CR'">
+ <xsl:call-template name="mainTable.CR">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$Nomenclature='M31' and /n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee/@Type='CAF'">
+ <xsl:call-template name="mainTable.CAF">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$Nomenclature='M31' and /n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee/@Type='TF'">
+ <xsl:call-template name="mainTable.TF">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$Nomenclature='M31' and /n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee/@Type='TSSP'">
+ <xsl:call-template name="mainTable.TSSP">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SituationDeveloppee/n:PageSituationDeveloppee"/>
+ </xsl:call-template>
+ </xsl:when>
+ </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">SituationDeveloppee</xsl:with-param>
+ <xsl:with-param name="elementId">PageSituationDeveloppee</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneSituationDeveloppee</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.CR">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="excedent.deficit"><xsl:copy-of select="$el/n:LigneSituationDeveloppee[@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:EnteteSituationDeveloppee/@DesignationBudget"/></td>
+ <td class="bold right noborder"><xsl:choose><xsl:when test="$el/@Modele eq '702'">PRODUITS</xsl:when><xsl:when test="$el/@Modele != '08'">CHARGES</xsl:when><xsl:otherwise><xsl:value-of select="//n:EnteteSituationDeveloppee/@ChargesProduits"/></xsl:otherwise></xsl:choose></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">Chapitres</td>
+ <td class="titre bold center borderedBold">Intitulés</td>
+ <td class="titre bold center borderedBold">CRP   <xsl:value-of select="//n:EnteteSituationDeveloppee/@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éal. -<br/>prév. en%</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:variable name="nb.lignes" select="count($el/n:LigneSituationDeveloppee)"/>
+ <xsl:for-each select="$el/n:LigneSituationDeveloppee">
+ <xsl:choose>
+ <xsl:when test="string-length(@MontantInitial) eq 0 and string-length(@DecisionsModificatives) eq 0 and string-length(@VirementsCredits) eq 0 and string-length(@PrevisionsTotales) eq 0 and string-length(@NetConstate) eq 0 and string-length(@EcartRealise) eq 0">
+ <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"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="pos" select="position()"/>
+ <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="$pos eq $nb.lignes or contains($comptes.libelles//n:Type[@V='CR' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle,'hors 6732') or
+ contains($comptes.libelles//n:Type[@V='CR' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle,'TOTAL DES PRODUITS HORS RECUPERATION DE CHARGES')">
+ <td class="bordureRight bordureBottom bordureTop bold center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='CR' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ </xsl:when>
+ <xsl:when test="$pos eq number($nb.lignes)-1">
+ <td class="bordureRight bordureTop bold center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='CR' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='CR' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Compte"/></td>
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='CR' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight"><xsl:value-of select="@EcartRealise"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ <xsl:if test="$el/@Modele = '702'">
+ <tr>
+ <td class="bordureRight bordureBottom bordureTop center" colspan="2">DEFICIT</td>
+ <td class="bordureRight bordureBottom bordureTop"> </td>
+ <td class="bordureRight bordureBottom bordureTop"> </td>
+ <td class="bordureRight bordureBottom bordureTop"> </td>
+ <td class="bordureRight bordureBottom bordureTop"> </td>
+ <td class="bordureRight bordureBottom bordureTop"> </td>
+ <td class="bordureRight bordureBottom bordureTop"> </td>
+ </tr>
+ </xsl:if>
+ <!--xsl:choose>
+ <xsl:when test="$el/@Modele='08'">
+ <xsl:for-each select="$el/n:LigneSituationDeveloppee">
+ <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:LigneSituationDeveloppee[@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:LigneSituationDeveloppee[@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:LigneSituationDeveloppee/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneSituationDeveloppee/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneSituationDeveloppee/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneSituationDeveloppee/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneSituationDeveloppee/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$total1/n:LigneSituationDeveloppee/@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:LigneSituationDeveloppee[1]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneSituationDeveloppee[1]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneSituationDeveloppee[1]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneSituationDeveloppee[1]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneSituationDeveloppee[1]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$excedent.deficit/n:LigneSituationDeveloppee[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:EnteteSituationDeveloppee/@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:LigneSituationDeveloppee[@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:LigneSituationDeveloppee[@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:LigneSituationDeveloppee/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneSituationDeveloppee/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneSituationDeveloppee/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneSituationDeveloppee/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$total1/n:LigneSituationDeveloppee/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$total1/n:LigneSituationDeveloppee/@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:LigneSituationDeveloppee[2]/@MntBudPrim"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneSituationDeveloppee[2]/@MntDecMod"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneSituationDeveloppee[2]/@MntVirCredit"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneSituationDeveloppee[2]/@MntPrevBud"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$excedent.deficit/n:LigneSituationDeveloppee[2]/@MntReal"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold"><xsl:value-of select="$excedent.deficit/n:LigneSituationDeveloppee[2]/@MntEcartRealPrev"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </xsl:if-->
+ </xsl:template>
+
+ <xsl:template name="mainTable.CAF">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="excedent.deficit"><xsl:copy-of select="$el/n:LigneSituationDeveloppee[@Type='ExcedentDeficit']"/></xsl:variable>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder">Tableau de passage des résultat à la CAF</td>
+ <td class="bold right noborder"> </td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="8%"/>
+ <col width="20%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">N°</td>
+ <td class="titre bold center borderedBold">Intitulé</td>
+ <td class="titre bold center borderedBold">CRP 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éal. -<br/>prév. en %</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:variable name="nb.lignes" select="count($el/n:LigneSituationDeveloppee)"/>
+ <xsl:for-each select="$el/n:LigneSituationDeveloppee">
+ <xsl:choose>
+ <xsl:when test="string-length(@MontantInitial) eq 0 and string-length(@DecisionsModificatives) eq 0 and string-length(@VirementsCredits) eq 0 and string-length(@PrevisionsTotales) eq 0 and string-length(@NetConstate) eq 0 and string-length(@EcartRealise) eq 0">
+ <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"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="pos" select="position()"/>
+ <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="$pos eq $nb.lignes or $pos eq 1 or $pos eq 5 or $pos eq 6">
+ <td class="bordureRight bordureTop bordureBottom bold center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='CAF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ </xsl:when>
+ <xsl:when test="$pos eq number($nb.lignes)-1">
+ <td class="bordureRight bordureTop bold center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='CAF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='CAF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Compte"/></td>
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='CAF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="montant bordureRight"><xsl:if test="contains($comptes.libelles//n:Type[@V='CAF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle,'AUTOFINANCEMENT')">+</xsl:if>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:if test="contains($comptes.libelles//n:Type[@V='CAF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle,'AUTOFINANCEMENT')">+</xsl:if>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:if test="contains($comptes.libelles//n:Type[@V='CAF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle,'AUTOFINANCEMENT')">+</xsl:if>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight"><xsl:if test="contains($comptes.libelles//n:Type[@V='CAF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle,'AUTOFINANCEMENT')">+</xsl:if>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight"><xsl:value-of select="@EcartRealise"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="mainTable.TF">
+ <xsl:param name="el"/>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder">Tableau de financement<xsl:if test="$Modele='722'"> (suite)</xsl:if></td>
+ <td class="bold right noborder">
+ <xsl:choose>
+ <xsl:when test="$Modele='721' or $Modele='722'"><b>EMPLOIS</b></xsl:when>
+ <xsl:when test="$Modele='723'"><b>RESSOURCES</b></xsl:when>
+ </xsl:choose>
+ </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">Chapitres</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éal. -<br/>prév. en %</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:variable name="nb.lignes" select="count($el/n:LigneSituationDeveloppee)"/>
+ <xsl:for-each select="$el/n:LigneSituationDeveloppee">
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="count($comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]) eq 0 and string-length(@MontantInitial) eq 0 and string-length(@DecisionsModificatives) eq 0 and string-length(@VirementsCredits) eq 0 and string-length(@PrevisionsTotales) eq 0 and string-length(@NetConstate) eq 0 and string-length(@EcartRealise) eq 0">
+ <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"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ </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: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="$Modele='721' and ($pos eq 1 or $pos eq 5 or $pos eq $nb.lignes)">
+ <td class="bordureRight bordureTop bordureBottom bold center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight bordureTop bordureBottom bold"><xsl:value-of select="@EcartRealise"/></td>
+ </xsl:when>
+ <xsl:when test="$Modele='722' and ($pos eq 4 or $pos eq 5 or $pos eq $nb.lignes or $pos eq (number($nb.lignes)-2))">
+ <td class="bordureRight bordureTop bordureBottom bold center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight bordureTop bordureBottom bold"><xsl:value-of select="@EcartRealise"/></td>
+ </xsl:when>
+ <xsl:when test="$Modele='722' and ($pos eq 6 or $pos eq 7 or $pos eq 8)">
+ <xsl:choose>
+ <xsl:when test="$pos eq 6 or $pos eq 7">
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Compte"/></td>
+ <td class="bordureRight bold"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight"><xsl:value-of select="@EcartRealise"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="bordureRight bordureBottom"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Compte"/></td>
+ <td class="bordureRight bordureBottom bold"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ <td class="montant bordureRight bordureBottom">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureBottom">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureBottom">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureBottom">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureBottom">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight bordureBottom"><xsl:value-of select="@EcartRealise"/></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="$Modele='723' and ($pos eq 1 or $pos eq 5 or $pos eq 9 or $pos eq $nb.lignes or $pos eq (number($nb.lignes)-1) or $pos eq (number($nb.lignes)-3))">
+ <td class="bordureRight bordureTop bordureBottom bold center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"><xsl:if test="$pos eq 1">+</xsl:if>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"><xsl:if test="$pos eq 1">+</xsl:if>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"><xsl:if test="$pos eq 1">+</xsl:if>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"><xsl:if test="$pos eq 1">+</xsl:if>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight bordureTop bordureBottom bold"><xsl:value-of select="@EcartRealise"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Compte"/></td>
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight"><xsl:value-of select="@EcartRealise"/></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <xsl:if test="$Modele='722' and number($nb.lignes)=$pos">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$Modele='722' and number($nb.lignes)=$pos">
+
+ <xsl:choose>
+ <xsl:when test="(($pos + 1) 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:when>
+ </xsl:choose>
+ <td class="bordureRight bordureTop bordureBottom center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='TF' and @Modele=$Modele]/n:CompteLibelle[position()=($pos+1)]/@Libelle"/></td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"> </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"> </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"> </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"> </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"> </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold"> </td>
+ </tr>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
+
+
+ <xsl:template name="mainTable.TSSP">
+ <xsl:param name="el"/>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder">Tableau de suivi des stocks de production</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">Chapitres</td>
+ <td class="titre bold center borderedBold">Intitulés</td>
+ <td class="titre bold center borderedBold">TS 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éal. -<br/>prév. en %</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:variable name="nb.lignes" select="count($el/n:LigneSituationDeveloppee)"/>
+ <xsl:for-each select="$el/n:LigneSituationDeveloppee">
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="count($comptes.libelles//n:Type[@V='TSSP' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]) eq 0 and string-length(@MontantInitial) eq 0 and string-length(@DecisionsModificatives) eq 0 and string-length(@VirementsCredits) eq 0 and string-length(@PrevisionsTotales) eq 0 and string-length(@NetConstate) eq 0 and string-length(@EcartRealise) eq 0">
+ <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"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="$pos eq 1">
+ <tr><td class="bordureRight bordureTop bordureBottom bold center" colspan="8">EMPLOIS</td></tr>
+ </xsl:when>
+ <xsl:when test="$pos eq 5">
+ <tr><td class="bordureRight bordureTop bordureBottom bold center" colspan="8">RESSOURCES</td></tr>
+ </xsl:when>
+ </xsl:choose>
+ <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="$pos eq 1 or $pos eq 6">
+ <td class="bordureRight bordureTop bordureBottom bold center" colspan="8"><xsl:value-of select="$comptes.libelles//n:Type[@V='TSSP' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ </xsl:when-->
+ <xsl:when test="$pos eq 4 or $pos eq $nb.lignes or $pos eq (number($nb.lignes)-1)">
+ <td class="bordureRight bordureTop bordureBottom bold center" colspan="2"><xsl:value-of select="$comptes.libelles//n:Type[@V='TSSP' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bordureTop bordureBottom bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight bordureTop bordureBottom bold"><xsl:value-of select="@EcartRealise"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='TSSP' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Compte"/></td>
+ <td class="bordureRight"><xsl:value-of select="$comptes.libelles//n:Type[@V='TSSP' and @Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetConstate"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight"><xsl:value-of select="@EcartRealise"/></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file