--- /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:SoldeIntermediaireGestion/n:PageSoldeIntermediaireGestion/n:Pied/@NumPage"/>
+ <xsl:variable name="isLastPage" select="/n:CompteGestion/n:SoldeIntermediaireGestion/n:PageSoldeIntermediaireGestion/@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:SoldeIntermediaireGestion/n:PageSoldeIntermediaireGestion/@Modele"/>
+
+ <xsl:variable name="Titre">SOLDES INTERMEDIAIRES DE GESTION</xsl:variable>
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"/>
+
+ <xsl:variable name="comptes.libelles">
+ <ComptesLibelles>
+ <Type Modele="411">
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="1" Compte1="7011" Libelle1="Ventes d'immeublesconstruits" Compte2="601" Libelle2="Achats de terrains (net de 6091)"/>
+ <CompteLibelle pos="2" Compte1="7012" Libelle1="Ventes de terrains lotis" Compte2="6031" Libelle2="Variation des stocks : terrains"/>
+ <CompteLibelle pos="3" Compte1="70471" Libelle1="Loyers des logements en<br/>location-accession" Compte2="604-608" Libelle2="Achats liés à la product. de stocks<br/>immob. (net de 6094, 6098)"/>
+ <CompteLibelle pos="4" Compte1="7063" Libelle1="Autres produits des activités<br/>d'accession" Compte2="607" Libelle2="Imm. acquis par résolution de vente<br/>ou par adjudication"/>
+ <CompteLibelle pos="5" Compte1="72232" Libelle1="Transfert d'élémentsde stock<br/>en immobilisation" Compte2="6037" Libelle2="Variation des stocks -Immeubles acquis<br/>par résolution de vente ou par<br/>adjudication"/>
+ <CompteLibelle pos="6" Compte2="66114" Libelle2="Accession à la propriété<br/>(crédits relais et préfinancement)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="0" Compte2="Variation des stocks :" Type="sous.titre"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="7" Compte2="7133" Libelle2="Immeubles en cours (inverser le signe)"/>
+ <CompteLibelle pos="8" Compte2="7135" Libelle2="Immeubles achevés (inverser le signe)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="9" Compte1="" Libelle1="Total ....." Compte2="" Libelle2="Total ....." Libelle3="Marge sur accession" Type="total"/>
+ <CompteLibelle pos="10" Compte1="7062" Libelle1="Rémunération sur gestion de prêts" Compte2="66115" Libelle2="Intérêts gestion de prêts accession"/>
+ <CompteLibelle pos="11" Compte1="76241 -76242" Libelle1="Revenu des prêts accession"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="12" Compte1="" Libelle1="Total ....." Compte2="" Libelle2="Total ....." Libelle3="Marge sur prêts" Type="total"/>
+ <CompteLibelle pos="13" Compte1="7041" Libelle1="Loyers des logements non<br/>conventionnés" Compte2="Dotations aux amortissements:" Type="sous.titre.2"/>
+ <CompteLibelle pos="14" Compte1="7043" Libelle1="Loyers des logements<br/>conventionnés" Compte2="681112 -681113 et 681114 :" Libelle2="Baux emphytéotiques, à construction, à réhabilitation"/>
+ <CompteLibelle pos="15" Compte1="Autres 704" Libelle1="Autres loyers" Compte2="681122" Libelle2="Agencements et aménagements de terrains"/>
+ <CompteLibelle pos="16" Compte2="681123 et 681124 (sauf 68112315, 6811235, 68112415 et 6811245) :" Libelle2="Constructions locatives"/>
+ <CompteLibelle pos="17" Compte1="742" Libelle1="Primes à la construction" Compte2="68725" Libelle2="Amortissements dérogatoires"/>
+ <CompteLibelle pos="18" Compte1="743" Libelle1="Subventions d'exploitation" Compte2="6863" Libelle2="Intérêts compensateurs à répartir"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle Type="vide"/>
+ </Type>
+ <Type Modele="412">
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="0" Compte2="Charges d'intérêts nettes de bonifications (C.669) :"/>
+ <CompteLibelle pos="1" Compte1="777" Libelle1="Subventions d'investissement virées au résultat de l'exercice" Compte2="661121" Libelle2="Opérations locatives - Crédits relais et avances"/>
+ <CompteLibelle pos="2" Compte2="6611221" Libelle2="Opérations locatives - Financements définitifs (net de 6691)"/>
+ <CompteLibelle pos="3" Compte1="7963" Libelle1="Intérêts compensateurs" Compte2="661123" Libelle2="Intérêts compensateurs"/>
+ <CompteLibelle pos="4" Compte1="7222" Libelle1="Production immobilisée - immeubles de rapport (frais financiers externes)" Compte2="661124" Libelle2="Intérêts de préfinancement consolidables"/>
+ <CompteLibelle pos="5" Compte1="78725" Libelle1="Reprises d'amortissements dérogatoires"/>
+ <CompteLibelle pos="6" Compte1="703 - 7732" Libelle1="Récupération et réduction de charges locatives" Compte2="6...2 et 6732" Libelle2="Charges locatives récupérables et réduction de récupération de charges locatives"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="7" Compte1="" Libelle1="Total ....." Compte2="" Libelle2="Total ....." Libelle3="Marge sur locatifs" Type="total"/>
+ <CompteLibelle pos="8" Compte1="72 sauf 7222 et 72232" Libelle1="Production immobilisée"/>
+ <CompteLibelle pos="9" Compte1="7064 -7065 -7066 -7067 -7068 :" Libelle1="Autres prestations de service"/>
+ <CompteLibelle pos="10" Compte1="708" Libelle1="Produits des activités annexes"/>
+ <CompteLibelle pos="11" Compte1="" Libelle1="Total ....." Libelle3="Productions diverses" Type="total"/>
+ <CompteLibelle pos="12" Libelle3="MARGE BRUTE TOTALE" Type="total.plus"/>
+ </Type>
+ <Type Modele="413">
+ <CompteLibelle pos="0" Compte2="Consommations de l'exercice en provenance de tiers (1):" Type="sous.titre"/>
+ <CompteLibelle pos="1" Compte1="744" Libelle1="Subventions pour travaux de gros entretien"/>
+ <CompteLibelle pos="2" Compte2="602" Libelle2="Achats d'approvisionnement(net de 60921)"/>
+ <CompteLibelle pos="3" Compte2="6032" Libelle2="Variation des stocks des approvisionnements"/>
+ <CompteLibelle pos="4" Compte2="606" Libelle2="Achats non stockés de matières et fournitures (net de 60961)"/>
+ <CompteLibelle pos="5" Compte2="611" Libelle2="Sous-traitance générale"/>
+ <CompteLibelle pos="6" Compte2="612" Libelle2="Redevances de crédit-bailet loyers des baux"/>
+ <CompteLibelle pos="7" Compte2="6151" Libelle2="Entretien et réparations courants sur biens immobiliers"/>
+ <CompteLibelle pos="8" Compte2="6152" Libelle2="Gros entretien sur biens immobiliers"/>
+ <CompteLibelle pos="9" Compte2="6156" Libelle2="Maintenance"/>
+ <CompteLibelle pos="10" Compte2="6158" Libelle2="Autres travaux d'entretien"/>
+ <CompteLibelle pos="11" Compte2="628" Libelle2="Divers"/>
+ <CompteLibelle pos="12" Compte2="Autres 61 et 62" Libelle2="Autres, part non récupérable (net de 6191, 6291)"/>
+ <CompteLibelle pos="13" Compte2="635-637" Libelle2="Autres impôts taxes et versements assimilés (net de 63591)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="14" Compte1="" Libelle1="Total ....." Compte2="" Libelle2="Total ....." Libelle3="" Type="total"/>
+ <CompteLibelle pos="15" Libelle3="VALEUR AJOUTEE" Type="total.plus"/>
+ <CompteLibelle pos="0" Compte2="Charges de personnel (1) :" Type="sous.titre"/>
+ <CompteLibelle pos="16" Compte2="631-633" Libelle2="Impôts, taxes et versements assimilés sur rémunérations (net de 63191 et 63391)"/>
+ <CompteLibelle pos="17" Compte2="641-6481" Libelle2="Rémunérations (net de 64191, 64891)"/>
+ <CompteLibelle pos="18" Compte2="645-647 et 6485" Libelle2="Charges sociales (net de 64591, 64791, 64895)"/>
+ <CompteLibelle pos="19" Libelle2="Total ....." Libelle3="" Type="total"/>
+ <CompteLibelle pos="20" Libelle3="EXCEDENT (ou INSUFFISANCE) BRUT(E) D'EXPLOITATION" Type="total.plus"/>
+ </Type>
+ <Type Modele="414">
+ <CompteLibelle pos="0" Compte1="Reprises :" Compte2="Dotations :" Type="sous.titre"/>
+ <CompteLibelle pos="1" Compte1="7811" Libelle1="Sur amortissements"/>
+ <CompteLibelle pos="2" Compte1="78157" Libelle1="Sur provisions pour gros entretien" Compte2="681118" Libelle2="Amortissements des autres immobilisations incorporelles"/>
+ <CompteLibelle pos="3" Compte1="Autres 7815" Libelle1="Sur autres provisions d'exploitation" Compte2="68112315-6811235 et 68112415 -6811245 :" Libelle2="Amortissements des autres constructions"/>
+ <CompteLibelle pos="4" Compte1="7816" Libelle1="Sur dépréciations des immobilisations" Compte2="681125 -681128" Libelle2="Amortissements des autres immobilisations"/>
+ <CompteLibelle pos="5" Compte1="78173" Libelle1="Sur dépréciations des stocks / en-cours" Compte2="6812" Libelle2="Amortissements des charges d'exploitation à répartir"/>
+ <CompteLibelle pos="6" Compte1="78174" Libelle1="Sur dépréciations des créances" Compte2="68157" Libelle2="Provisions pour gros entretien"/>
+ <CompteLibelle pos="7" Compte2="Autres 6815" Libelle2="Autres provisions d'exploitation"/>
+ <CompteLibelle pos="8" Compte1="791" Libelle1="Transferts de charges d'exploitation" Compte2="6816" Libelle2="Dotations pour dépréciations des immobilisations"/>
+ <CompteLibelle pos="9" Compte1="75 sauf 755" Libelle1="Autres produits de gestion courante" Compte2="68173" Libelle2="Dotations pour dépréciations des stocks et en-cours"/>
+ <CompteLibelle pos="10" Compte2="68174" Libelle2="Dotations pour dépréciations des créances"/>
+ <CompteLibelle pos="11" Compte2="654" Libelle2="Pertes sur créances irrécouvrables"/>
+ <CompteLibelle pos="12" Compte2="651-658" Libelle2="Redevances et charges diverses de gestion courante (1)"/>
+ <CompteLibelle Type="vide"/>
+ <CompteLibelle pos="13" Compte1="" Libelle1="Total ....." Compte2="" Libelle2="Total ....." Libelle3="" Type="total"/>
+ <CompteLibelle pos="14" Libelle3="RESULTAT D'EXPLOITATION" Type="total.plus"/>
+ </Type>
+ <Type Modele="415">
+ <CompteLibelle pos="1" Compte1="755" Libelle1="Quotes-parts de résultat sur op. faites en commun" Compte2="655" Libelle2="Quotes-parts de résultat sur op. faites en commun"/>
+ <CompteLibelle pos="2" Libelle1="Total ....." Libelle2="Total ....." Libelle3="Quote-part de résultat /op. en commun" Type="total"/>
+ <CompteLibelle pos="3" Compte1="761" Libelle1="Produits des participations" Compte2="Autres 661" Libelle2="Autres charges d'intérêts"/>
+ <CompteLibelle pos="4" Compte1="762 sauf 76241 et 76242" Libelle1="Produits autres immob. financières" Compte2="667" Libelle2="Charges nettes sur cessions de VMP"/>
+ <CompteLibelle pos="5" Compte1="763 -764" Libelle1="Produits versés par les établis. financiers et revenus des valeurs mobilières de placement" Compte2="666-668" Libelle2="Autres charges financières"/>
+ <CompteLibelle pos="6" Compte1="765 -766 -768" Libelle1="Autres produits financiers" Compte2="686 sauf 6863" Libelle2="Autres dotations aux amortissements, aux dépréciations et aux provisions financières"/>
+ <CompteLibelle pos="7" Compte1="767" Libelle1="Produits nets sur cessions de VMP"/>
+ <CompteLibelle pos="8" Compte1="786" Libelle1="Reprises sur provisions et dépréc. financières"/>
+ <CompteLibelle pos="9" Compte1="7961 sauf 7963" Libelle1="Autres transferts de charges financières"/>
+ <CompteLibelle pos="10" Compte1="" Libelle1="Total ....." Compte2="" Libelle2="Total ....." Libelle3="RESULTAT FINANCIER" Type="total"/>
+ <CompteLibelle pos="11" Libelle3="RESULTAT COURANT" Type="total.plus"/>
+ </Type>
+ <Type Modele="416">
+ <CompteLibelle pos="1" Compte1="771 -7731" Libelle1="Produits exceptionnels sur opérations de gestion" Compte2="671 -6731" Libelle2="Charges exceptionnelles sur opérations de gestion"/>
+ <CompteLibelle pos="2" Compte1="775" Libelle1="Produits des cessions d'éléments d'actif" Compte2="675" Libelle2="Valeurs comptables des éléments d'actif cédés, démolis, remplacés"/>
+ <CompteLibelle pos="3" Compte1="778" Libelle1="Autres produits exceptionnels" Compte2="678" Libelle2="Autres charges exceptionnelles"/>
+ <CompteLibelle pos="4" Compte1="787 sauf 78725" Libelle1="Autres reprises sur prov. et dépréc. exception." Compte2="687 sauf 68725" Libelle2="Autres dotations aux amortissements, aux dépréciations et aux provisions exceptionnelles"/>
+ <CompteLibelle pos="5" Compte1="797" Libelle1="Transferts de charges exceptionnelles"/>
+ <CompteLibelle pos="6" Libelle1="Total ....." Libelle2="Total ....." Libelle3="RESULTAT EXCEPTIONNEL" Type="total"/>
+ <CompteLibelle pos="7" Compte2="69" Libelle2="Participation des salariés - Impôts sur les bénéfices et assimilés"/>
+ <CompteLibelle pos="8" Libelle2="Total ....." Libelle3="" Type="total"/>
+ <CompteLibelle pos="9" Libelle3="RESULTAT DE L'EXERCICE" Type="total.plus"/>
+ </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%" class="fontsize11">
+ <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">SoldeIntermediaireGestion</xsl:with-param>
+ <xsl:with-param name="elementId">PageSoldeIntermediaireGestion</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneSoldeIntermediaireGestion</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:call-template>
+
+ <!-- **************** DEBUG **************** -->
+ <!--h1 style="color: red; background-color: yellow;">Type=<xsl:value-of select="/n:CompteGestion/n:SoldeIntermediaireGestion/n:PageSoldeIntermediaireGestion/@Type"/><br/>Modele=<xsl:value-of select="/n:CompteGestion/n:SoldeIntermediaireGestion/n:PageSoldeIntermediaireGestion/@Modele"/></h1-->
+
+ <table width="100%" class="bordered" id="main">
+ <colgroup>
+ <col width="11%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="11%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td colspan="3" rowspan="2" class="bold titre grise bordureRight center">PRODUITS</td>
+ <td colspan="3" rowspan="2" class="bold titre grise bordureRight center">CHARGES</td>
+ <td colspan="3" class="bold titre grise bordureRight center">SOLDES INTERMEDIAIRES</td>
+ </tr>
+ <tr class="titre">
+ <td rowspan="2" class="bold titre grise bordureRight bordureBottom center bottom">3</td>
+ <td class="bold titre grise bordureTop bordureRight center"><xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice"/></td>
+ <td class="bold titre grise bordureTop bordureRight center"><xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 1"/></td>
+ </tr>
+ <tr class="titre">
+ <td colspan="3" class="bold titre grise bordureRight bordureBottom center">1</td>
+ <td colspan="3" class="bold titre grise bordureRight bordureBottom center">2</td>
+ <td class="bold titre bordureRight grise bordureBottom center">4<xsl:if test="not($Modele eq '413')"> (1-2)</xsl:if></td>
+ <td class="bold titre bordureRight grise bordureBottom center">5</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:call-template name="donnees">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SoldeIntermediaireGestion/n:PageSoldeIntermediaireGestion"/>
+ </xsl:call-template>
+ </tbody>
+ </table>
+ <xsl:if test="$Modele eq '416'"><p class="tiny">(1) part non récupérable</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">SoldeIntermediaireGestion</xsl:with-param>
+ <xsl:with-param name="elementId">PageSoldeIntermediaireGestion</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneSoldeIntermediaireGestion</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"/>
+ <!-- $comptes.libelles//n:Type[@Modele=$Modele]/n:CompteLibelle[position()=$pos]/@Compte -->
+
+ <!-- $el//n:LigneSoldeIntermediaireGestion -->
+ <xsl:for-each select="$comptes.libelles//n:Type[@Modele=$Modele]/n:CompteLibelle">
+ <xsl:variable name="pos" select="@pos"/>
+ <xsl:variable name="type" select="@Type"/>
+
+ <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="$type eq 'vide'">
+ <td> </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>
+ <td class="bordureRight"> </td>
+ </xsl:when>
+ <xsl:when test="number($pos) > 0 and not($type='total') and not(starts-with($type,'sous.titre')) and not($type='total.plus')">
+ <xsl:variable name="ligne"><xsl:copy-of select="$el//n:LigneSoldeIntermediaireGestion[position()=$pos]"/></xsl:variable>
+ <td class="bold"><xsl:value-of select="@Compte1" disable-output-escaping="yes"/></td>
+ <td class="bordureRight"><xsl:value-of select="@Libelle1" disable-output-escaping="yes"/></td>
+ <td class="bordureRight montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantProduits"/></xsl:call-template></td>
+ <td class="bold"><xsl:value-of select="@Compte2" disable-output-escaping="yes"/></td>
+ <td class="bordureRight"><xsl:value-of select="@Libelle2" disable-output-escaping="yes"/></td>
+ <td class="bordureRight montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantCharges"/></xsl:call-template></td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </xsl:when>
+ <xsl:when test="number($pos) > 0 and not($type='total') and $type='sous.titre.2' and not($type='total.plus')">
+ <xsl:variable name="ligne"><xsl:copy-of select="$el//n:LigneSoldeIntermediaireGestion[position()=$pos]"/></xsl:variable>
+ <td class="bold"><xsl:value-of select="@Compte1" disable-output-escaping="yes"/></td>
+ <td class="bordureRight"><xsl:value-of select="@Libelle1" disable-output-escaping="yes"/></td>
+ <td class="bordureRight montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantProduits"/></xsl:call-template></td>
+ <td colspan="2" class="bordureRight italic"><xsl:value-of select="@Compte2" disable-output-escaping="yes"/></td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </xsl:when>
+ <xsl:when test="$type='sous.titre'">
+ <td colspan="2" class="bordureRight italic"><xsl:value-of select="@Compte1" disable-output-escaping="yes"/></td>
+ <td class="bordureRight montant"> </td>
+ <td colspan="2" class="bordureRight italic"><xsl:value-of select="@Compte2" disable-output-escaping="yes"/></td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </xsl:when>
+ <xsl:when test="$pos='0' and not($type='sous.titre')">
+ <xsl:variable name="ligne"><xsl:copy-of select="$el//n:LigneSoldeIntermediaireGestion[position()=$pos]"/></xsl:variable>
+ <td class="bold"><xsl:value-of select="@Compte1" disable-output-escaping="yes"/></td>
+ <td class="bordureRight"><xsl:value-of select="@Libelle1" disable-output-escaping="yes"/></td>
+ <td class="bordureRight montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantProduits"/></xsl:call-template></td>
+ <td colspan="2">
+ <xsl:choose><xsl:when test="$type='sous.titre'"><xsl:attribute name="class">bordureRight italic</xsl:attribute></xsl:when><xsl:otherwise><xsl:attribute name="class">bordureRight</xsl:attribute></xsl:otherwise></xsl:choose>
+ <xsl:value-of select="@Compte2" disable-output-escaping="yes"/></td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </xsl:when>
+ <xsl:when test="number($pos) > 0 and $type='total'">
+ <xsl:variable name="ligne"><xsl:copy-of select="$el//n:LigneSoldeIntermediaireGestion[position()=$pos]"/></xsl:variable>
+ <td colspan="2" class="bold right bordureRight bordureBottom"><xsl:value-of select="@Libelle1" disable-output-escaping="yes"/></td>
+ <xsl:choose>
+ <xsl:when test="@Libelle1">
+ <td class="bordureRight bordureTop bordureBottom montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantProduits"/></xsl:call-template></td>
+ </xsl:when>
+ <xsl:otherwise><td class="bordureRight"> </td></xsl:otherwise>
+ </xsl:choose>
+ <td colspan="2" class="bold right bordureRight bordureBottom"><xsl:value-of select="@Libelle2" disable-output-escaping="yes"/></td>
+ <xsl:choose>
+ <xsl:when test="@Libelle2">
+ <td class="bordureRight bordureTop bordureBottom montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantCharges"/></xsl:call-template></td>
+ </xsl:when>
+ <xsl:otherwise><td class="bordureRight"> </td></xsl:otherwise>
+ </xsl:choose>
+ <td class="bold center bordureRight bordureBottom"><xsl:value-of select="@Libelle3" disable-output-escaping="yes"/></td>
+ <td class="bordureRight bordureTop bordureBottom montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantSIGN"/></xsl:call-template></td>
+ <td class="bordureRight bordureTop bordureBottom montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantSIGN-1"/></xsl:call-template></td>
+ </xsl:when>
+ <xsl:when test="number($pos) > 0 and $type='total.plus'">
+ <xsl:variable name="ligne"><xsl:copy-of select="$el//n:LigneSoldeIntermediaireGestion[position()=$pos]"/></xsl:variable>
+ <td colspan="7" class="bold right bordureRight bordureBottom"><xsl:value-of select="@Libelle3" disable-output-escaping="yes"/></td>
+ <td class="bordureRight bordureTop bordureBottom montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantSIGN"/></xsl:call-template></td>
+ <td class="bordureRight bordureTop bordureBottom montant"><xsl:call-template name="number"><xsl:with-param name="num" select="$ligne//@MontantSIGN-1"/></xsl:call-template></td>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file