--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY nbsp " ">
+<!ENTITY egrave "è">
+<!ENTITY euro "€">
+<!ENTITY agrave "à">
+<!ENTITY eacute "é">
+]>
+<xsl:transform 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">
+ <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: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="libPoste">0</xsl:param>
+
+ <!-- Paramètres d'erreur -->
+ <xsl:param name="error.message">nomessage</xsl:param>
+
+ <xsl:output method="xhtml" indent="yes" use-character-maps="accents" encoding="ISO-8859-1"/>
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"/>
+ <!-- Variables -->
+ <xsl:variable name="page-format" select="paysage"/>
+ <xsl:variable name="NumPage" select="/n:CompteGestion/n:CompteResultat/n:PageCompteResultat/n:Pied/@NumPage"/>
+ <xsl:variable name="isLastPage" select="/n:CompteGestion/n:CompteResultat/n:PageCompteResultat/@added:isLastPage"/>
+ <xsl:variable name="Entete">
+ <xsl:copy-of select="/n:CompteGestion/n:Entete"/>
+ </xsl:variable>
+
+ <xsl:template match="/n:CompteGestion">
+ <html>
+ <head>
+ <!--title>Compte de Résultat</title-->
+ <xsl:call-template name="title"><xsl:with-param name="Entete" select="//n:Entete"/><xsl:with-param name="etat">Compte de Résultat</xsl:with-param></xsl:call-template>
+ <xsl:call-template name="style"/>
+ </head>
+ <body>
+ <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">CompteResultat</xsl:with-param>
+ <xsl:with-param name="elementId">PageCompteResultat</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneCompteResultat</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.formulaire.compte" select="0"/>
+ <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:if test="$Entete//n:CompteGestion/@V = 'CG21'">
+ <xsl:choose>
+ <xsl:when test="//n:PageCompteResultat/@Modele = '12' or //n:PageCompteResultat/@Modele = '13' or //n:PageCompteResultat/@Modele = '14'">COMPTE FINANCIER <xsl:value-of select="//n:EnteteCompteResultat/@Annee"/></xsl:when>
+ <xsl:otherwise>Compte de résultat <xsl:value-of select="//n:EnteteCompteResultat/@Annee"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:if>
+ <xsl:if test="$Entete//n:CompteGestion/@V = 'CG31'">
+ <xsl:choose>
+ <xsl:when test="//n:PageCompteResultat/@Modele = '507' or //n:PageCompteResultat/@Modele = '508' or //n:PageCompteResultat/@Modele = '509'">COMPTE DE RESULTAT-CHARGES</xsl:when>
+ <xsl:when test="//n:PageCompteResultat/@Modele = '510' or //n:PageCompteResultat/@Modele = '511' or //n:PageCompteResultat/@Modele = '512'">COMPTE DE RESULTAT-PRODUITS</xsl:when>
+ </xsl:choose>
+ </xsl:if>
+ </xsl:with-param>
+ <xsl:with-param name="Titre.Plus">
+ <xsl:if test="$Entete//n:CompteGestion/@V = 'CG14'"><h1>Compte de résultat <xsl:value-of select="//n:EnteteCompteResultat/@Date3"/></h1></xsl:if>
+ <xsl:if test="$Entete//n:CompteGestion/@V = 'CG22'"><h1>Compte de résultat <xsl:value-of select="//n:EnteteCompteResultat/@Date3"/></h1><br/>
+ <h2><xsl:value-of select="/n:CompteGestion/n:CompteResultat/n:PageCompteResultat/n:EnteteCompteResultat/@SousTitre"></xsl:value-of></h2>
+ </xsl:if>
+ <xsl:if test="$Entete//n:CompteGestion/@V = 'CG21' and //n:PageCompteResultat/@Modele!=12"><h2>RESULTATS</h2></xsl:if>
+ </xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="mainTable">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:CompteResultat/n:PageCompteResultat"/>
+ </xsl:call-template>
+ <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">CompteResultat</xsl:with-param>
+ <xsl:with-param name="elementId">PageCompteResultat</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneCompteResultat</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.formulaire.compte" select="0"/>
+ <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"/>
+
+ <xsl:variable name="Modele" select="$el/@Modele"/>
+
+ <xsl:if test="$Entete//n:CompteGestion/@V = 'CG21'">
+ <xsl:choose>
+ <xsl:when test="//n:PageCompteResultat/@Modele = '12'"><h2 style="text-align: left;">Compte de résultat de l'établissement (toutes activités confondues)</h2></xsl:when>
+ <xsl:when test="//n:PageCompteResultat/@Modele = '13'"><h2 style="text-align: left;">Détermination de la capacité d'autofinancementde l'exercice</h2></xsl:when>
+ <xsl:when test="//n:PageCompteResultat/@Modele = '14'"><h2 style="text-align: left;">Tableau de financement</h2></xsl:when>
+ <xsl:otherwise><h2 style="text-align: left;">Compte de résultat par nature de l'activité <xsl:value-of select="//n:EnteteCompteResultat/@DesignationBudget"/></h2></xsl:otherwise>
+ </xsl:choose>
+ </xsl:if>
+ <table width="100%" class="bordered" id="main">
+ <colgroup>
+ <xsl:choose>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG31' and ($el/@Modele = '507' or $el/@Modele = '508' or $el/@Modele = '509')">
+ <col width="15%"/>
+ <col width="25%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ </xsl:when>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG31' and ($el/@Modele = '510' or $el/@Modele = '511' or $el/@Modele = '512')">
+ <col width="10%"/>
+ <col width="30%"/>
+ <col width="20%"/>
+ <col width="20%"/>
+ <col width="20%"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <col width="40%"/>
+ <col width="30%"/>
+ <col width="30%"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </colgroup>
+ <thead>
+ <xsl:choose>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG31' and ($el/@Modele = '507' or $el/@Modele = '508' or $el/@Modele = '509')">
+ <tr class="titre">
+ <td rowspan="2" class="bold titre bordureRight center">N° de compte</td>
+ <td rowspan="2" class="bold titre bordureRight center">CHARGES</td>
+ <td colspan="3" class="bold titre bordureRight bordureBottom center">Exercice <xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice"/></td>
+ <td rowspan="2" class="bold titre bordureRight bordureBottom center">Exercice <xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 1"/></td>
+ </tr>
+ <tr>
+ <td class="bold titre bordureRight center">Charges<br/>récupérables</td>
+ <td class="bold titre bordureRight center">Charges non<br/>récupérables</td>
+ <td class="bold titre bordureRight center">Totaux<br/>partiels</td>
+ </tr>
+ <tr>
+ <td class="titre bordureBottom bordureRight center">1</td>
+ <td class="titre bordureBottom bordureRight center">2</td>
+ <td class="titre bordureBottom bordureRight center">3</td>
+ <td class="titre bordureBottom bordureRight center">4</td>
+ <td class="titre bordureBottom bordureRight center">5</td>
+ <td class="titre bordureBottom bordureRight center">6</td>
+ </tr>
+ </xsl:when>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG31' and ($el/@Modele = '510' or $el/@Modele = '511' or $el/@Modele = '512')">
+ <tr class="titre">
+ <td rowspan="2" class="bold titre bordureRight center">N° de compte</td>
+ <td rowspan="2" class="bold titre bordureRight center">PRODUITS</td>
+ <td colspan="2" class="bold titre bordureRight bordureBottom center">Exercice <xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice"/></td>
+ <td rowspan="2" class="bold titre bordureRight bordureBottom center">Exercice <xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 1"/></td>
+ </tr>
+ <tr>
+ <td class="bold titre bordureRight center">Détails</td>
+ <td class="bold titre bordureRight center">Totaux<br/>partiels</td>
+ </tr>
+ <tr>
+ <td class="titre bordureBottom bordureRight center">1</td>
+ <td class="titre bordureBottom bordureRight center">2</td>
+ <td class="titre bordureBottom bordureRight center">3</td>
+ <td class="titre bordureBottom bordureRight center">4</td>
+ <td class="titre bordureBottom bordureRight center">5</td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr class="titre">
+ <td class="titre2 center bold bordered">POSTES</td>
+
+ <td class="titre2 center bold bordered">Exercice <xsl:choose><xsl:when test="$Entete//n:CompteGestion/@V = 'CG21'"><xsl:value-of select="max($el/n:EnteteCompteResultat/@Annee)"/></xsl:when><xsl:otherwise><xsl:value-of select="max($el/n:EnteteCompteResultat/@Date3)"/></xsl:otherwise></xsl:choose></td>
+ <td class="titre2 center bold bordered">Exercice <xsl:choose><xsl:when test="$Entete//n:CompteGestion/@V = 'CG21'"><xsl:value-of select="max($el/n:EnteteCompteResultat/@Annee) - 1"/></xsl:when><xsl:otherwise><xsl:value-of select="max($el/n:EnteteCompteResultat/@Date3 - 1)"/></xsl:otherwise></xsl:choose></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </thead>
+ <tbody>
+ <xsl:choose>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG21' and //n:PageCompteResultat/@Modele = '13'">
+ <xsl:for-each select="$el/n:LigneCompteResultat">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="position()=1">
+ <td class="bordureRight center bold">Résultats des comptes de résultat</td>
+ </xsl:when>
+ <xsl:when test="position()=2">
+ <td class="bordureRight center">+ Dotations aux amortissements, dépréciations et provisions (C68)</td>
+ </xsl:when>
+ <xsl:when test="position()=3">
+ <td class="bordureRight center">-Reprises sur dépréciations et provisions (C78)</td>
+ </xsl:when>
+ <xsl:when test="position()=4">
+ <td class="bordureRight center">+ Valeur comptable des éléments d'actifs cédés (C675)</td>
+ </xsl:when>
+ <xsl:when test="position()=5">
+ <td class="bordureRight center">-Produits des cessions d'éléments d'actifs(C775)</td>
+ </xsl:when>
+ <xsl:when test="position()=6">
+ <td class="bordureRight center">-Quote-part des subventions d'investissement virée au résultat de l'exercice (C777)</td>
+ </xsl:when>
+ <xsl:when test="position()=7">
+ <td class="bordureRight center bold">CAF / IAF de l'exercice</td>
+ </xsl:when>
+ </xsl:choose>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN_1"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG31'">
+
+ <xsl:variable name="comptes.libelles">
+ <ComptesLibelles>
+ <Type Modele="507">
+ <CompteLibelle Compte="" Libelle="CHARGES D'EXPLOITATION ( 1 )"/>
+ <CompteLibelle Compte="60-61-62" Libelle="Consommations de l'exerciceen provenance des tiers"/>
+ <CompteLibelle Compte="601 (net de 6091)" Libelle="-Terrains"/>
+ <CompteLibelle Compte="602 (net de 6092)" Libelle="-Approvisionnements"/>
+ <CompteLibelle Compte="607" Libelle="-Immeubles acquis par résolution de vente ou adjudication"/>
+ <CompteLibelle Compte="6031" Libelle="-Terrains"/>
+ <CompteLibelle Compte="6032" Libelle="-Approvisionnements"/>
+ <CompteLibelle Compte="6037" Libelle="-Immeubles acquis par résolution de vente ou adjudication"/>
+ <CompteLibelle Compte="604-608(net de 6094 et 6098)" Libelle="Achats liés à la production de stocks immobiliers"/>
+ <CompteLibelle Compte="606 (net de 6096)" Libelle="Achats non stockés de matières et fournitures"/>
+ <CompteLibelle Compte="61-62(net de 619 et 629)" Libelle="Services extérieurs :"/>
+ <CompteLibelle Compte="611" Libelle="Travaux relatifs à l'exploitation"/>
+ <CompteLibelle Compte="6151" Libelle="Entretien et réparations courants sur biens immobiliers locatifs"/>
+ <CompteLibelle Compte="6152" Libelle="Gros entretien sur biens immobiliers"/>
+ <CompteLibelle Compte="6156" Libelle="Maintenance"/>
+ <CompteLibelle Compte="6158" Libelle="Autres travaux d'entretien"/>
+ <CompteLibelle Compte="612" Libelle="Redevances de crédit bail et loyers des baux à long terme"/>
+ <CompteLibelle Compte="616" Libelle="Primes d'assurance"/>
+ <CompteLibelle Compte="621" Libelle="Personnel extérieur à l'organisme"/>
+ <CompteLibelle Compte="622" Libelle="Rémunérations d'intermédiaireset honoraires"/>
+ <CompteLibelle Compte="623" Libelle="Publicité, publications, relations publiques"/>
+ <CompteLibelle Compte="625" Libelle="Déplacements, missions et réceptions"/>
+ <CompteLibelle Compte="6285" Libelle="Redevances"/>
+ <CompteLibelle Compte="Autres 61 et 62 (net de 619 et 629)" Libelle="Autres"/>
+ <CompteLibelle Compte="63 (net de 6319, 6339 et 6359)" Libelle="Impôts, taxes et versements assimilés"/>
+ <CompteLibelle Compte="631-633 (net de 6319, 6339)" Libelle="Sur rémunérations"/>
+ <CompteLibelle Compte="63512" Libelle="Taxes foncières"/>
+ <CompteLibelle Compte="Autres 635-637 (net de 6359)" Libelle="Autres"/>
+ </Type>
+ <Type Modele="508">
+ <CompteLibelle Compte="64 (net de 6419, 6459, 6479 et 6489)" Libelle="Charges de personnel"/>
+ <CompteLibelle Compte="641-6481 (net du 6419 et 64891)" Libelle="Salaires et traitements"/>
+ <CompteLibelle Compte="645-647-6485(net du 6459, 6479, 64895)" Libelle="Charges sociales"/>
+ <CompteLibelle Compte="681" Libelle="Dotations aux amortissements, auxdépréciations et aux provisions"/>
+ <CompteLibelle Compte="" Libelle="Dotations aux amortissements :"/>
+ <CompteLibelle Compte="68111 (sauf 681118), 681122 à 681124 (sauf 68112315, 68112318, 6811235, 68112415, 68112418 et 6811245)" Libelle="Immobilisations locatives"/>
+ <CompteLibelle Compte="Autres 6811" Libelle="Autres immobilisations"/>
+ <CompteLibelle Compte="6812" Libelle="Charges d'exploitationà répartir"/>
+ <CompteLibelle Compte="6816" Libelle="Dotations aux dépréciations des immos. incorporelles et corporelles"/>
+ <CompteLibelle Compte="6817" Libelle="Dotations aux dépréciations desactifs circulants"/>
+ <CompteLibelle Compte="6815" Libelle="Dotations aux provisions d'exploitation :"/>
+ <CompteLibelle Compte="68157" Libelle="-Provisions pour gros entretien"/>
+ <CompteLibelle Compte="Autres 6815" Libelle="-Autres provisions"/>
+ <CompteLibelle Compte="65 (sauf 655)" Libelle="Autres charges de gestion courante :"/>
+ <CompteLibelle Compte="654" Libelle="Pertes sur créances irrécouvrables"/>
+ <CompteLibelle Compte="651-658" Libelle="Redevances et charges diverses de gestion courante"/>
+ <CompteLibelle Compte="655" Libelle="Quotes-partsde résultat sur opérations faites en commun"/>
+ <CompteLibelle Compte="66 (net du 669)" Libelle="CHARGES FINANCIERES"/>
+ <CompteLibelle Compte="6863" Libelle="Dotations aux amortissements desintérêts compensateurs à répartir"/>
+ <CompteLibelle Compte="Autres 686" Libelle="Autres dotations aux amortissements, aux dépréciations et aux provisions"/>
+ <!--CompteLibelle Compte="" Libelle="Charges d'intérêts :"/-->
+ <CompteLibelle Compte="661121" Libelle="-Intérêts sur opérations locatives -crédits relais et avances"/>
+ <CompteLibelle Compte="661122 (net de 6691)" Libelle="-Intérêts sur opérations locatives -financement définitif"/>
+ <CompteLibelle Compte="661123" Libelle="-Intérêts compensateurs"/>
+ <CompteLibelle Compte="661124" Libelle="-Intérêts de préfinancement consolidables"/>
+ <CompteLibelle Compte="66114" Libelle="-Accession à la propriété -crédits relais et avances"/>
+ <CompteLibelle Compte="66115" Libelle="-Gestion de prêts -Accession à la propriété"/>
+ <CompteLibelle Compte="Autres 661" Libelle="-Intérêts sur autres opérations"/>
+ <CompteLibelle Compte="667" Libelle="Charges nettes sur cessions devaleurs mobilières de placement"/>
+ <CompteLibelle Compte="666-668" Libelle="Autres charges financières"/>
+ </Type>
+ <Type Modele="509">
+ <CompteLibelle Compte="67" Libelle="CHARGES EXCEPTIONNELLES"/>
+ <CompteLibelle Compte="671" Libelle="Sur opérations de gestion"/>
+ <CompteLibelle Compte="673" Libelle="Titres annulés (sur exercices antérieurs) :"/>
+ <CompteLibelle Compte="6731" Libelle="-hors réduction de récupération des charges locatives"/>
+ <CompteLibelle Compte="6732" Libelle="-Réduction de récupération des charges locatives"/>
+ <CompteLibelle Compte="" Libelle="Sur opérations en capital :"/>
+ <CompteLibelle Compte="675" Libelle="Valeurs comptables des éléments d'actifs cédés (b) :"/>
+ <CompteLibelle Compte="6751" Libelle="-Immobilisations incorporelles"/>
+ <CompteLibelle Compte="6752" Libelle="-Immobilisations corporelles"/>
+ <CompteLibelle Compte="6756" Libelle="-immobilisations financières"/>
+ <CompteLibelle Compte="678" Libelle="Autres"/>
+ <CompteLibelle Compte="687" Libelle="Dotations aux amortissements, aux dépréciations et aux provisions :"/>
+ <CompteLibelle Compte="6871" Libelle="-Dotations aux amortissements des immobilisations"/>
+ <CompteLibelle Compte="68725" Libelle="-Dotations aux provisions réglementées (amortissements dérogatoires)"/>
+ <CompteLibelle Compte="Autres 687" Libelle="-Dotations aux autres provisions"/>
+ <CompteLibelle Compte="691" Libelle="Participations des salariés aux résultats"/>
+ <CompteLibelle Compte="695" Libelle="Impôts sur les bénéfices et assimilés"/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES CHARGES"/>
+ </Type>
+ <Type Modele="510">
+ <CompteLibelle Compte="" Libelle="PRODUITS D'EXPLOITATION (1)"/>
+ <CompteLibelle Compte="70" Libelle="Produits des activités"/>
+ <CompteLibelle Compte="701" Libelle="Produits des ventes :"/>
+ <CompteLibelle Compte="7011" Libelle="-Ventes d'immeublesconstruits"/>
+ <CompteLibelle Compte="7012" Libelle="-Ventes de terrains lotis"/>
+ <CompteLibelle Compte="703" Libelle="Récupération des charges locatives"/>
+ <CompteLibelle Compte="704" Libelle="Loyers :"/>
+ <CompteLibelle Compte="7041" Libelle="-Loyers des logements non conventionnés"/>
+ <CompteLibelle Compte="7042" Libelle="-Suppléments de loyers"/>
+ <CompteLibelle Compte="7043" Libelle="-Loyers des logements conventionnés"/>
+ <CompteLibelle Compte="7046" Libelle="-Résidences pour étudiants, foyers, résidences sociales"/>
+ <CompteLibelle Compte="7047" Libelle="-Logements en location -accession et invendus"/>
+ <CompteLibelle Compte="Autres 704" Libelle="-Autres"/>
+ <CompteLibelle Compte="706" Libelle="Prestations de services :"/>
+ <CompteLibelle Compte="7062-7063" Libelle="-Activité de gestion de prêts et d'accession"/>
+ <CompteLibelle Compte="Autres 706" Libelle="-Autres"/>
+ <CompteLibelle Compte="708" Libelle="Produits des activités annexes"/>
+ <CompteLibelle Compte="71" Libelle="Production stockée ( ou destockage ) (a)"/>
+ <CompteLibelle Compte="72" Libelle="Production immobilisée"/>
+ <CompteLibelle Compte="7222" Libelle="Immeubles de rapport (frais financiers externes)"/>
+ <CompteLibelle Compte="72232" Libelle="Transferts d'élémentsde stocks en immobilisation"/>
+ <CompteLibelle Compte="Autres 72" Libelle="Autres productions immobilisées"/>
+ </Type>
+ <Type Modele="511">
+ <CompteLibelle Compte="74" Libelle="Subventions d'exploitation"/>
+ <CompteLibelle Compte="742" Libelle="Primes à la construction"/>
+ <CompteLibelle Compte="743" Libelle="Subventions d'exploitationdiverses"/>
+ <CompteLibelle Compte="744" Libelle="Subventions pour travaux de gros entretien"/>
+ <CompteLibelle Compte="781" Libelle="Reprises sur amortissements,dépréciations et provisions"/>
+ <CompteLibelle Compte="78157" Libelle="Reprises sur provisions pour gros entretien"/>
+ <CompteLibelle Compte="78174" Libelle="Reprises sur dépréciations des créances"/>
+ <CompteLibelle Compte="Autres 781" Libelle="Autres reprises"/>
+ <CompteLibelle Compte="791" Libelle="Transferts de charges d'exploitation"/>
+ <CompteLibelle Compte="75 (sauf 755)" Libelle="Autres produits de gestion courante"/>
+ <CompteLibelle Compte="755" Libelle="Quotes-partsde résultat sur opérations faites en commun"/>
+ <CompteLibelle Compte="76" Libelle="PRODUITS FINANCIERS"/>
+ <CompteLibelle Compte="761" Libelle="De participations"/>
+ <CompteLibelle Compte="762" Libelle="D'autres immobilisations financières :"/>
+ <CompteLibelle Compte="76241-76242" Libelle="-Revenus des prêts accession"/>
+ <CompteLibelle Compte="Autres 762" Libelle="-Autres"/>
+ <CompteLibelle Compte="763-764" Libelle="Produits versés par les établissements financiers et revenus de VMP"/>
+ <CompteLibelle Compte="765-766-768" Libelle="Autres"/>
+ <CompteLibelle Compte="786" Libelle="Reprises sur dépréciations et provisions"/>
+ <CompteLibelle Compte="796" Libelle="Transfert de charges financières"/>
+ <CompteLibelle Compte="7963" Libelle="-Intérêts compensateurs"/>
+ <CompteLibelle Compte="7961" Libelle="-Pénalités de renégociation de la dette"/>
+ <CompteLibelle Compte="767" Libelle="Produits nets sur cessions de VMP"/>
+ </Type>
+ <Type Modele="512">
+ <CompteLibelle Compte="77" Libelle="PRODUITS EXCEPTIONNELS"/>
+ <CompteLibelle Compte="771" Libelle="Sur opérations de gestion"/>
+ <CompteLibelle Compte="773" Libelle="Mandats annulés (sur ex.antérieurs) : ou atteints par la déchéance quadriennale :"/>
+ <CompteLibelle Compte="7731" Libelle="-Mandats hors charges récupérables"/>
+ <CompteLibelle Compte="7732" Libelle="-Mandats relatifs aux charges récupéérables"/>
+ <CompteLibelle Compte="" Libelle="Sur opérations en capital :"/>
+ <CompteLibelle Compte="775" Libelle="-Produits des cessions d'élémentsd'actif (b) :"/>
+ <CompteLibelle Compte="7751" Libelle="-Immobilisations incorporelles"/>
+ <CompteLibelle Compte="7752" Libelle="-Immobilisations corporelles"/>
+ <CompteLibelle Compte="7756" Libelle="-Immobilisations financières"/>
+ <CompteLibelle Compte="777" Libelle="-Subventions d'investissementsvirées au résultat de l'exercice"/>
+ <CompteLibelle Compte="778" Libelle="Autres"/>
+ <CompteLibelle Compte="787" Libelle="Reprises sur dépréciations et provisions :"/>
+ <CompteLibelle Compte="78725" Libelle="-Reprises sur provisions réglementées (amortissements dérogatoires)"/>
+ <CompteLibelle Compte="Autres 787" Libelle="-Autres reprises"/>
+ <CompteLibelle Compte="797" Libelle="Transferts de charges exceptionnelles"/>
+ <CompteLibelle Compte="" Libelle="TOTAL DES PRODUITS"/>
+ </Type>
+ </ComptesLibelles>
+ </xsl:variable>
+
+ <xsl:for-each select="$el/n:LigneCompteResultat">
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="$Modele='507' and $pos=3">
+ <tr>
+ <td class="bordureRight bold">60 (net de 609)</td>
+ <td class="bordureRight bold">Achats stockés :</td>
+ <td class="bordureRight bold"> </td>
+ <td class="bordureRight bold"> </td>
+ <td class="bordureRight bold"> </td>
+ <td class="bordureRight bold"> </td>
+ </tr>
+ </xsl:when>
+ <xsl:when test="$Modele='507' and $pos=6">
+ <tr>
+ <td class="bordureRight bold">603</td>
+ <td class="bordureRight bold">Variation des stocks (a) :</td>
+ <td class="bordureRight bold"> </td>
+ <td class="bordureRight bold"> </td>
+ <td class="bordureRight bold"> </td>
+ <td class="bordureRight bold"> </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="$Modele='508' and $pos=21">
+ <tr>
+ <td class="bordered bold"> </td>
+ <td class="bordered bold">Charges d'intérêts :</td>
+ <td class="bordered bold"> </td>
+ <td class="bordered bold"> </td>
+ <td class="bordered bold"> </td>
+ <td class="bordered bold"> </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <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>
+ <xsl:choose>
+ <xsl:when test="$Modele='507' and (position()=1 or position()=2 or position()=11 or position()=25)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='508' and (position()=1 or position()=4 or position()=5 or position()=11 or position()=14 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='509' and (position()=1 or position()=3 or position()=6 or position()=7 or position()=12 or position()=16 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='510' and (position()=1 or position()=2 or position()=3 or position()=7 or position()=14 or position()=18 or position()=19)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='511' and (position()=1 or position()=5 or position()=9 or position()=10 or position()=11 or position()=12 or position()=14)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:value-of select="$comptes.libelles//n:Type[@Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Compte"/>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$Modele='507' and (position()=1 or position()=2 or position()=11 or position()=25)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='508' and (position()=1 or position()=4 or position()=5 or position()=11 or position()=14 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='509' and (position()=1 or position()=3 or position()=6 or position()=7 or position()=12 or position()=16 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='510' and (position()=1 or position()=2 or position()=3 or position()=7 or position()=14 or position()=18 or position()=19)">
+ <xsl:attribute name="class">bordered bold</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:value-of select="$comptes.libelles//n:Type[@Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Libelle"/>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$Modele='507' and (position()=1 or position()=2 or position()=11 or position()=25)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='508' and (position()=1 or position()=4 or position()=5 or position()=11 or position()=14 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='509' and (position()=1 or position()=3 or position()=6 or position()=7 or position()=12 or position()=16 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='510' and (position()=1 or position()=2 or position()=3 or position()=7 or position()=14 or position()=18 or position()=19)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">bordureRight montant</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="@MontantN"/></xsl:call-template>
+ </td>
+ <xsl:if test="not($Modele='510') and not($Modele='511') and not($Modele='512')">
+ <td>
+ <xsl:choose>
+ <xsl:when test="$Modele='507' and (position()=1 or position()=2 or position()=11 or position()=25)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='508' and (position()=1 or position()=4 or position()=5 or position()=11 or position()=14 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='509' and (position()=1 or position()=3 or position()=6 or position()=7 or position()=12 or position()=16 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='510' and (position()=1 or position()=2 or position()=3 or position()=7 or position()=14 or position()=18 or position()=19)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">bordureRight montant</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="@MontantNonRecup"/></xsl:call-template>
+ </td>
+ </xsl:if>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$Modele='507' and (position()=1 or position()=2 or position()=11 or position()=25)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='508' and (position()=1 or position()=4 or position()=5 or position()=11 or position()=14 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='509' and (position()=1 or position()=3 or position()=6 or position()=7 or position()=12 or position()=16 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='510' and (position()=1 or position()=2 or position()=3 or position()=7 or position()=14 or position()=18 or position()=19)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">bordureRight montant</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="@TotalPartiel"/></xsl:call-template>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$Modele='507' and (position()=1 or position()=2 or position()=11 or position()=25)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='508' and (position()=1 or position()=4 or position()=5 or position()=11 or position()=14 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='509' and (position()=1 or position()=3 or position()=6 or position()=7 or position()=12 or position()=16 or position()=17 or position()=18)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$Modele='510' and (position()=1 or position()=2 or position()=3 or position()=7 or position()=14 or position()=18 or position()=19)">
+ <xsl:attribute name="class">bordered bold montant</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">bordureRight montant</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number"><xsl:with-param name="num" select="@MontantN_1"/></xsl:call-template>
+ </td>
+ </tr>
+ </xsl:for-each>
+ <xsl:choose>
+ <xsl:when test="$Modele='509'">
+ <xsl:variable name="ligne.pied" select="$el/n:LignePiedCompteResultat"/>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 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:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordered bold grise" colspan="2">Solde créditeur = Excédent</td>
+ <td class="montant bordered bold grise"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@SoldeCredit"/></xsl:call-template></td>
+ <td class="montant bordered bold grise"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@SoldeCreditN_1"/></xsl:call-template></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 2) 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="bordered bold grise" colspan="2">TOTAL GENERAL</td>
+ <td class="montant bordered bold grise"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@TotGen"/></xsl:call-template></td>
+ <td class="montant bordered bold grise"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@TotGenN_1"/></xsl:call-template></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 3) 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" colspan="4">(a) Stock initial moins stock final = montant de la variation négative entre parenthèses</td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 4) 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" colspan="4">(b) A l'exceptiondes valeurs mobilières de placement</td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 5) 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 center" colspan="2">(1) dont charges afférentes à des exercices antérieurs :</td>
+ <td> </td>
+ <td class="bordureRight"> </td>
+ <td class="montant bordureTop bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieur"/></xsl:call-template></td>
+ <td class="montant bordureTop bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurN_1"/></xsl:call-template></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 6) 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="montant" colspan="2"><b>C/ 6721</b> (part non récupérable)</td>
+ <td> </td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurNonRecup"/></xsl:call-template></td>
+ <td class="bordureRight"> </td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurNonRecupN_1"/></xsl:call-template></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 7) 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="montant" colspan="2"><b>C/ 6722</b> (part récupérable)</td>
+ <td class="montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurRecup"/></xsl:call-template></td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurRecupN_1"/></xsl:call-template></td>
+ </tr>
+ </xsl:when>
+ <xsl:when test="$Modele='512'">
+ <xsl:variable name="ligne.pied" select="$el/n:LignePiedCompteResultat"/>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 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:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"> </td>
+ <td class="bordered bold grise montant">Solde débiteur = Déficit</td>
+ <td class="bordered grise"> </td>
+ <td class="montant bordered bold grise"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@SoldeDebitN"/></xsl:call-template></td>
+ <td class="montant bordered bold grise"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@SoldeDebitN_1"/></xsl:call-template></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 2) 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="bordered bold grise montant">TOTAL GENERAL</td>
+ <td class="bordered grise"> </td>
+ <td class="montant bordered bold grise"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@TotalGeneralN"/></xsl:call-template></td>
+ <td class="montant bordered bold grise"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@TotalGeneralN_1"/></xsl:call-template></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 3) 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" colspan="3">(a) Stock final moins stock initial = montant de la variation négative entre parenthèses dans le cas de dèstockage de production</td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 4) 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" colspan="3">(b) A l'exceptiondes valeurs mobilières de placement</td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 5) 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 center" colspan="2">(1) dont produits affèrents à des exercices antérieurs :</td>
+ <td class="bordureRight"> </td>
+ <td class="montant bordered bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurN"/></xsl:call-template></td>
+ <td class="montant bordered bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurN_1"/></xsl:call-template></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 6) 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> </td>
+ <td><b>C/ 7721</b> (hors récupération de charges locatives)</td>
+ <td class="bordureRight"> </td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurHorsRecupN"/></xsl:call-template></td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurHorsRecupN_1"/></xsl:call-template></td>
+ </tr>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((count($el/n:LigneCompteResultat) + 7) 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> </td>
+ <td><b>C/ 7723</b> (complément de récupération de charges locatives)</td>
+ <td class="bordureRight"> </td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurComplementRecupN"/></xsl:call-template></td>
+ <td class="montant bordureRight"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne.pied/@MontantAnterieurComplementRecupN_1"/></xsl:call-template></td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="$el/n:LigneCompteResultat">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$libPoste != '0' and @LibPosteRubriqueTotal=$libPoste">
+ <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(@LibPosteRubriqueTotal),'total')">
+ <xsl:choose>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG21' and //n:PageCompteResultat/@Modele = '14'">
+ <td class="bold bordered">
+ <xsl:value-of select="@LibPosteRubriqueTotal"/>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="libelleLigne bold bordered">
+ <xsl:value-of select="@LibPosteRubriqueTotal"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="montant bold bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ <td class="montant bold bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN_1"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </xsl:when>
+ <xsl:when test="contains(@LibPosteRubriqueTotal,'(') and contains(@LibPosteRubriqueTotal,')') and (contains(@LibPosteRubriqueTotal,'-') or contains(@LibPosteRubriqueTotal,'+'))">
+ <xsl:choose>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG21' and //n:PageCompteResultat/@Modele = '14'">
+ <td class="bold bordered">
+ <xsl:value-of select="@LibPosteRubriqueTotal"/>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="libelleLigne bold bordered">
+ <xsl:value-of select="@LibPosteRubriqueTotal"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="montant bold bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ <td class="montant bold bordered">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN_1"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </xsl:when>
+ <xsl:when test="matches(@LibPosteRubriqueTotal, '[A-Z]{4}')">
+ <xsl:choose>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG21' and //n:PageCompteResultat/@Modele = '14'">
+ <td class="bold bordureRight">
+ <xsl:value-of select="@LibPosteRubriqueTotal"/>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="bold center bordureRight">
+ <xsl:value-of select="@LibPosteRubriqueTotal"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN_1"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="$Entete//n:CompteGestion/@V = 'CG21' and //n:PageCompteResultat/@Modele = '14'">
+ <td class="bordureRight">
+ <xsl:value-of select="@LibPosteRubriqueTotal"/>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="libelleLigne bordureRight">
+ <xsl:value-of select="@LibPosteRubriqueTotal"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num">
+ <xsl:value-of select="@MontantN_1"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </xsl:otherwise></xsl:choose>
+ </tr>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tbody>
+ </table>
+ </xsl:template>
+</xsl:transform>