--- /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" xmlns:fn="http://projets.admisource.gouv.fr/xemelios/namespaces#functions" 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:VariationFondRoulement/n:PageVariationFondRoulement/n:Pied/@NumPage"/>
+ <xsl:variable name="isLastPage" select="/n:CompteGestion/n:VariationFondRoulement/n:PageVariationFondRoulement/@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:VariationFondRoulement/n:PageVariationFondRoulement/@Modele"/>
+
+ <xsl:variable name="Titre">TABLEAU DE FINANCEMENT - EMPLOIS ET RESSOURCES DE L'EXERCICE</xsl:variable>
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"/>
+
+ <xsl:variable name="comptes.libelles">
+ <ComptesLibelles>
+ <Type Modele="013">
+ <CompteLibelle pos="1" style="(lib2;bold)(mt1;bordureBottomBold)(mt2;bordureBottomBold)(mt3;bordered)(mt4;bordered)(lib4;bold)" Libelle1="TABLEAU 4 (sauf virements de compte à compte)" Libelle2="ACQUISITIONS D'ELEMENTS DE L'ACTIF IMMOBILISE" Libelle3="" Libelle4="CAPACITE D'AUTOFINANCEMENT DE L'EXERCICE"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="2" Libelle1="" Compte1="20 -232 -237" Libelle2="-IMMOBILISATIONS INCORPORELLES (1)" Libelle3="CAF PCG -Annexe 13" Compte2="" Libelle4="CAPACITE D'AUTOFINANCEMENT PCG"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="3" Libelle1="" Compte1="" Libelle2="" Libelle3="" Compte2="6863 *" Libelle4="- DOTATIONS AUX AMORTISSEMENTS DES INTERÊTS COMPENSATEURS A REPARTIR"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="4" style="(mt1;bordered)(mt2;bordered)" Libelle1="" Compte1="" Libelle2="-IMMOBILISATIONS CORPORELLES (1)" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="5" Libelle1="" Compte1="211 - 212 - 2312" Libelle2="Terrains, agencements et aménagements de terrain" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle pos="6" Libelle1="" Compte1="213 - 214 - 2313 -2314 (sauf 21315 - 2135 - 21415 - 2145 - 231315 - 231415) -235" Libelle2="Constructions locatives" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle pos="7" style="(mt3;bordered)(mt4;bordered)(lib4;bold)" Libelle1="" Compte1="" Libelle2="" Libelle3="TABLEAU 4 et COMPTE 775" Compte2="" Libelle4="CESSION OU REDUCTION D'ELEMENTS DE L'ACTIF IMMOBILISE (2)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="8" Libelle1="" Compte1="21315 - 2135 - 21415 - 2145 - 231315 - 231415" Libelle2="Bâtiments et installations administratifs" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle pos="9" Libelle1="" Compte1="215 -218 - 2318" Libelle2="Installations techniques, matériel, outillage, autres immo.corporelles" Libelle3="" Compte2="20 -232 * -237 *" Libelle4="-IMMOBILISATIONS INCORPORELLES"/>
+ <CompteLibelle pos="10" Libelle1="" Compte1="22" Libelle2="Immeubles en location-vente et immeubles reçus en affectation" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle pos="11" Libelle1="" Compte1="238" Libelle2="Avances et acomptes versés sur immobilisations corporelles" Libelle3="" Compte2="21 -23 * (sauf 232 -237)" Libelle4="-IMMOBILISATIONS CORPORELLES"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="12" style="(mt3;bordered)(mt4;bordered)" Libelle1="" Compte1="" Libelle2="-IMMOBILISATIONS FINANCIERES (1)" Libelle3="" Compte2="22" Libelle4="-IMMEUBLES EN LOCATION-VENTE et IMMEUBLES RECUS EN AFFECTATION"/>
+ <CompteLibelle pos="13" Libelle1="" Compte1="2781" Libelle2="Prêts principaux accession" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle pos="14" Libelle1="" Compte1="2782" Libelle2="Prêts complémentaires accession" Libelle3="" Compte2="" Libelle4="-IMMOBILISATIONS FINANCIERES (1)"/>
+ <CompteLibelle pos="15" Libelle1="" Compte1="26 et autres 27" Libelle2="Autres (sauf intérêts courus)" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="16" Libelle1="" Compte1="" Libelle2="" Libelle3="" Compte2="2781" Libelle4="Prêts principaux accession"/>
+ <CompteLibelle pos="17" style="(lib2;bold)(mt1;bordered)(mt2;bordered)" Libelle1="" Compte1="" Libelle2="CHARGES A REPARTIR SUR PLUSIEURS EXERCICES" Libelle3="" Compte2="2782" Libelle4="Prêts complémentaires accession"/>
+ <CompteLibelle pos="18" Libelle1="" Compte1="4813" Libelle2="-CHARGES DIFFEREES - INTERÊTS COMPENSATEURS" Libelle3="" Compte2="26 et autres 27" Libelle4="Autres (sauf intérêts courus)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="19" Libelle1="TABLEAU 18" Compte1="4817" Libelle2="-GROSSES REPARATIONS A ETALER (transferts de l'exercice)" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle pos="" Libelle1="" Compte1="" Libelle2="" Libelle3="" Compte2="" Libelle4=""/>
+ </Type>
+ <Type Modele="014">
+ <CompteLibelle pos="1" style="(mt3;bordered)(mt4;bordered)(lib4;bold)" Libelle1="" Compte1="Autres 481" Libelle2="-AUTRES CHARGES A REPARTIR (transferts de l'exercice)" Libelle3="" Libelle4="AUGMENTATION DES CAPITAUX PROPRES (3)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="2" Libelle1="" Compte1="169" Libelle2="-PRIMES DE REMBOURSEMENT DES OBLIGATIONS" Libelle3="" Compte2="102 -103" Libelle4="-AUGMENTATION DES DOTATIONS"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="3" style="(lib2;bold)(mt1;bordered)(mt2;bordered)" Libelle1="" Compte1="" Libelle2="REDUCTION DES CAPITAUX PROPRES (3)" Libelle3="" Compte2="13 sauf 139" Libelle4="-COMPTABILISATION DES SUBVENTIONS D'INVESTISSEMENT"/>
+ <CompteLibelle pos="4" Libelle1="" Compte1="13 sauf 139" Libelle2="-SUBVENTIONS" Libelle3="" Compte2="229" Libelle4="-DROITS DES LOCATAIRES ACQUEREURS, ET DROITS DES AFFECTANTS"/>
+ <CompteLibelle pos="5" Libelle1="" Compte1="229" Libelle2="-DROITS DES LOCATAIRES ACQUEREURS, ET DROITS DES AFFECTANTS" Libelle3="" Compte2="" Libelle4=""/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="6" style="(lib2;bold)(mt1;bordered)(mt2;bordered)(mt3;bordered)(mt4;bordered)(lib4;bold)" Libelle1="ETAT DU PASSIF (Annexe VIII)" Compte1="16" Libelle2="REMBOURSEMENT DES DETTES FINANCIERES (4)" Libelle3="ETAT DU PASSIF (Annexe VIII)" Compte2="16" Libelle4="AUGMENTATION DES DETTES FINANCIERES (4)"/>
+ <CompteLibelle pos="7" Libelle1="(CODES 2 et 3)" Compte1="" Libelle2="-LOCATION, AMELIORATION ET GROSSES REPARATIONS" Libelle3="(CODES 2 ET 3)" Compte2="" Libelle4="-LOCATION, AMELIORATION ET GROSSES REPARATIONS"/>
+ <CompteLibelle pos="8" Libelle1="" Compte1="16883" Libelle2="-INTERÊTS COMPENSATEURS COURUS (diminution)" Libelle3="" Compte2="16883" Libelle4="-INTERÊTS COMPENSATEURS COURUS (augmentation)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="9" Libelle1="(CODE 5)" Compte1="" Libelle2="-ACCESSION, EMPRUNTS CONSOLIDES" Libelle3="(CODE 5)" Compte2="" Libelle4="-ACCESSION, EMPRUNTS CONSOLIDES"/>
+ <CompteLibelle pos="10" Libelle1="(CODES 1, 6 et 8)" Compte1="" Libelle2="-AUTRES (sauf relais)" Libelle3="(CODES 1, 6 et 8)" Compte2="" Libelle4="-AUTRES (sauf relais)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="11" Libelle1="" Compte1="165" Libelle2="-DEPÔTS ET CAUTIONNEMENTS" Libelle3="" Compte2="165" Libelle4="-DEPÔTS ET CAUTIONNEMENTS"/>
+ <CompteLibelle pos="12" Libelle1="" Compte1="166" Libelle2="-PARTICIPATIONS DES SALARIES AUX RESULTATS" Libelle3="" Compte2="166" Libelle4="-PARTICIPATIONS DES SALARIES AUX RESULTATS"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="13" style="(lib2;bold;center)(mt1;bordered)(mt2;bordered)(mt3;bordered)(mt4;bordered)(lib4;bold;center)" Libelle1="" Compte1="" Libelle2="TOTAL DES EMPLOIS" Libelle3="" Compte2="" Libelle4="TOTAL DES RESSOURCES"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="14" style="(lib2;bold)(lib4;bold)" Libelle1="" Compte1="" Libelle2="VARIATION DU FONDS DE ROULEMENT NET GLOBAL (RESSOURCE NETTE)" Libelle3="" Compte2="" Libelle4="VARIATION DU FONDS DE ROULEMENT NET GLOBAL (EMPLOI NET)"/>
+ </Type>
+ </ComptesLibelles>
+ </xsl:variable>
+
+ <xsl:template match="/n:CompteGestion">
+ <html>
+ <head>
+ <xsl:call-template name="title"><xsl:with-param name="Entete" select="//n:Entete"/><xsl:with-param name="etat"><xsl:value-of select="$Titre"/></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">VariationFondRoulement</xsl:with-param>
+ <xsl:with-param name="elementId">PageVariationFondRoulement</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneVariationFondRoulement</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:call-template name="header">
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="Titre"><xsl:value-of select="$Titre"/></xsl:with-param>
+ <xsl:with-param name="Titre.Plus"><h2>VARIATION DU FONDS DE ROULEMENT</h2></xsl:with-param>
+ </xsl:call-template>
+
+ <!-- **************** DEBUG **************** -->
+ <!--h1 style="color: red; background-color: yellow;">Type=<xsl:value-of select="/n:CompteGestion/n:VariationFondRoulement/n:PageVariationFondRoulement/@Type"/><br/>Modele=<xsl:value-of select="/n:CompteGestion/n:VariationFondRoulement/n:PageVariationFondRoulement/@Modele"/></h1-->
+
+ <table width="100%" class="bordered" id="mainNoBorder">
+ <colgroup>
+ <col width="10%"/><!-- Libelle1 -->
+ <col width="10%"/><!-- Compte1 -->
+ <col width="20%"/><!-- Libelle2 -->
+ <col width="5%"/><!-- Montant1 -->
+ <col width="5%"/><!-- Montant2 -->
+ <col width="10%"/><!-- Libelle3 -->
+ <col width="10%"/><!-- Compte2 -->
+ <col width="20%"/><!-- Libelle4 -->
+ <col width="5%"/><!-- Montant3 -->
+ <col width="5%"/><!-- Montant4 -->
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="bold titre">SOURCES<br/>INFORMATION</td>
+ <td class="bold right titre bordureRight">N° DE<br/>COMPTE</td>
+ <td class="bold center titre bordureRight">EMPLOIS</td>
+ <td class="bold center titre bordureRight">VARIATION<br/><xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice"/>/<xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 1"/></td>
+ <td class="bold center titre bordureRight">VARIATION<br/><xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 1"/>/<xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 2"/></td>
+ <td class="bold titre">SOURCES<br/>INFORMATION</td>
+ <td class="bold right titre bordureRight">N° DE<br/>COMPTE</td>
+ <td class="bold center titre bordureRight">RESSOURCES</td>
+ <td class="bold center titre bordureRight">VARIATION<br/><xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice"/>/<xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 1"/></td>
+ <td class="bold center titre bordureRight">VARIATION<br/><xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 1"/>/<xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 2"/></td>
+ </tr>
+ <tr class="titre">
+ <td colspan="2" class="bold center titre bordureRight bordureBottom">1</td>
+ <td class="bold center titre bordureRight bordureBottom">2</td>
+ <td class="bold center titre bordureRight bordureBottom">3</td>
+ <td class="bold center titre bordureRight bordureBottom">4</td>
+ <td colspan="2" class="bold center titre bordureRight bordureBottom">5</td>
+ <td class="bold center titre bordureRight bordureBottom">6</td>
+ <td class="bold center titre bordureRight bordureBottom">7</td>
+ <td class="bold center titre bordureRight bordureBottom">8</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:call-template name="donnees">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:VariationFondRoulement/n:PageVariationFondRoulement"/>
+ </xsl:call-template>
+ </tbody>
+ </table>
+ <xsl:if test="$Modele='014'">
+ <p class="tiny">(1) Y compris avances et acomptes versés.
+ <br/>(2) Pour les éléments cédés, indiquer le prix de cession (ventilation du compte 775). Pour les abandons de projet, et les sorties d'immobilisations du compte 22 et remboursement des prêts pour les immobilisations financières, indiquer la valeur nette comptable.
+ <br/>(3) Hors reprises sur réserves et affectations de résultat (tableau n°2 de l'annexe V du compte financier).
+ <br/>(4) Sauf intérêts courus.
+ <br/>* = moins</p>
+ </xsl:if>
+ <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">VariationFondRoulement</xsl:with-param>
+ <xsl:with-param name="elementId">PageVariationFondRoulement</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneVariationFondRoulement</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="donnees">
+ <xsl:param name="el"/>
+
+ <!-- $el//n:LigneVariationFondRoulement -->
+ <xsl:for-each select="$comptes.libelles//n:Type[@Modele=$Modele]/n:CompteLibelle">
+ <xsl:variable name="pos" select="@pos"/>
+ <xsl:variable name="type" select="@Type"/>
+ <xsl:choose>
+ <xsl:when test="$type eq 'vide'">
+ <tr>
+ <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>
+ <td> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ </xsl:when>
+ <xsl:when test="$pos and number($pos) gt 0">
+ <xsl:variable name="ligne"><xsl:copy-of select="$el//n:LigneVariationFondRoulement[position()=$pos]"/></xsl:variable>
+ <tr>
+ <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:choose>
+ <xsl:when test="string-length(@Libelle1) gt 0 and string-length(@Compte1) eq 0 ">
+ <td colspan="2" class="bordureRight"><xsl:value-of select="@Libelle1" disable-output-escaping="yes"/></td>
+ </xsl:when>
+ <xsl:when test="string-length(@Compte1) gt 0 and string-length(@Libelle1) eq 0 ">
+ <td colspan="2" class="right bordureRight"><xsl:value-of select="@Compte1" disable-output-escaping="yes"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><xsl:value-of select="@Libelle1" disable-output-escaping="yes"/></td>
+ <td class="right bordureRight"><xsl:value-of select="@Compte1" disable-output-escaping="yes"/></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="contains(@style,'lib2')"><xsl:value-of select="fn:getStyles(@style,'lib2')"/> bordureRight</xsl:when>
+ <xsl:otherwise>bordureRight</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:value-of select="@Libelle2" disable-output-escaping="yes"/>
+ </td>
+ <td>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="contains(@style,'mt1')">montant bordureRight <xsl:value-of select="fn:getStyles(@style,'mt1')"/></xsl:when>
+ <xsl:otherwise>montant bordureRight</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantEmploisN_N-1"/></xsl:call-template></td>
+ <td>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="contains(@style,'mt2')">montant bordureRight <xsl:value-of select="fn:getStyles(@style,'mt2')"/></xsl:when>
+ <xsl:otherwise>montant bordureRight</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantEmploisN-1_N-2"/></xsl:call-template></td>
+ <td><xsl:value-of select="@Libelle3" disable-output-escaping="yes"/></td>
+ <td class="right bordureRight"><xsl:value-of select="@Compte2" disable-output-escaping="yes"/></td>
+ <td>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="contains(@style,'lib4')">bordureRight <xsl:value-of select="fn:getStyles(@style,'lib4')"/></xsl:when>
+ <xsl:otherwise>bordureRight</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:value-of select="@Libelle4" disable-output-escaping="yes"/></td>
+ <td>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="contains(@style,'mt3')">montant bordureRight <xsl:value-of select="fn:getStyles(@style,'mt3')"/></xsl:when>
+ <xsl:otherwise>montant bordureRight</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantRessourcesN_N-1"/></xsl:call-template></td>
+ <td>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="contains(@style,'mt4')">montant bordureRight <xsl:value-of select="fn:getStyles(@style,'mt4')"/></xsl:when>
+ <xsl:otherwise>montant bordureRight</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantRessourcesN-1_N-2"/></xsl:call-template></td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:function name="fn:getStyles">
+ <xsl:param name="el"/>
+ <xsl:param name="id"/>
+ <xsl:variable name="separator.deb">\(</xsl:variable>
+ <xsl:variable name="separator.fin">\)</xsl:variable>
+ <xsl:variable name="separator.data">;</xsl:variable>
+ <xsl:variable name="styles">
+ <styles>
+ <xsl:for-each select="tokenize($el,$separator.fin)">
+ <xsl:variable name="this"><xsl:value-of select="replace(.,$separator.deb,'')"/></xsl:variable>
+ <xsl:variable name="sts"><sts><xsl:for-each select="tokenize($this,$separator.data)"><st><xsl:value-of select="."/></st></xsl:for-each></sts></xsl:variable>
+ <style>
+ <xsl:attribute name="id"><xsl:value-of select="$sts//n:st[1]/text()"/></xsl:attribute>
+ <xsl:attribute name="style"><xsl:for-each select="$sts//n:st"><xsl:if test="position() gt 1"><xsl:value-of select="text()"/><xsl:if test="position() lt count($sts//n:st) and count($sts//n:st) gt 2"> </xsl:if></xsl:if></xsl:for-each></xsl:attribute>
+ </style>
+ </xsl:for-each>
+ </styles>
+ </xsl:variable>
+ <xsl:sequence select="$styles//n:style[@id=$id]/@style"/>
+ </xsl:function>
+</xsl:stylesheet>
\ No newline at end of file