--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY nbsp " ">
+]>
+<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: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="intitule">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:SP_BilanActif/n:PageSP_BilanActif/n:Pied/@NumPage"/>
+ <xsl:variable name="isLastPage" select="/n:CompteGestion/n:SP_BilanActif/n:PageSP_BilanActif/@added:isLastPage"/>
+
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"/>
+
+ <xsl:variable name="Entete">
+ <xsl:copy-of select="/n:CompteGestion/n:Entete"/>
+ </xsl:variable>
+
+ <xsl:template match="/n:CompteGestion">
+ <html>
+ <head>
+ <!--title>
+ <xsl:choose>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M21'">Gestion Patrimoniale et Financière</xsl:when>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M31'">BILAN-ACTIF</xsl:when>
+ <xsl:otherwise>Situation Patrimoniale - Bilan Actif</xsl:otherwise>
+ </xsl:choose>
+ </title-->
+ <xsl:call-template name="title">
+ <xsl:with-param name="Entete" select="//n:Entete"/>
+ <xsl:with-param name="etat">
+ <xsl:choose>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M21'">Gestion Patrimoniale et Financière</xsl:when>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M31'">BILAN-ACTIF</xsl:when>
+ <xsl:otherwise>Situation Patrimoniale - Bilan Actif</xsl:otherwise>
+ </xsl:choose>
+ </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">SP_BilanActif</xsl:with-param>
+ <xsl:with-param name="elementId">PageSP_BilanActif</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneSP_BilanActif</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:choose>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M21'">COMPTE FINANCIER <xsl:value-of select="$Entete//n:Exercice/@V"/></xsl:when>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M31'">BILAN-ACTIF</xsl:when>
+ <xsl:otherwise>Situation Patrimoniale - Bilan Actif</xsl:otherwise>
+ </xsl:choose>
+ </xsl:with-param>
+ <xsl:with-param name="Titre.Plus">
+ <xsl:choose>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M21'"><h2>GESTION PATRIMONIALE ET FINANCIERE</h2></xsl:when>
+ </xsl:choose>
+ </xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="mainTable">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SP_BilanActif/n:PageSP_BilanActif"/>
+ </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">SP_BilanActif</xsl:with-param>
+ <xsl:with-param name="elementId">PageSP_BilanActif</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneSP_BilanActif</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:if test="$Entete//n:Nomenclature/@V='M21'"><h3 style="text-align: left;">BILAN</h3></xsl:if>
+ <table width="100%" class="bordered" id="main">
+ <colgroup>
+ <xsl:choose>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M31'">
+ <col width="20%"/>
+ <col width="30%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <col width="5%"/>
+ <col width="35%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ <col width="15%"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </colgroup>
+ <thead>
+ <xsl:choose>
+ <xsl:when test="$Entete//n:Nomenclature/@V='M31'">
+ <tr class="titre">
+ <td rowspan="2" class="bold titre bordureRight center">N° de compte</td>
+ <td rowspan="2" class="bold titre bordureRight center">ACTIF</td>
+ <td colspan="4" class="bold titre bordureRight bordureBottom center">Exercice <xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice"/></td>
+ <td 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">Brut</td>
+ <td class="bold titre bordureRight center">Amortissements<br/>et dépréciations</td>
+ <td class="bold titre bordureRight center">Net</td>
+ <td class="bold titre bordureRight center">Totaux<br/>partiels</td>
+ <td class="bold titre bordureRight center">Net</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 = (3)-(4)</td>
+ <td class="titre bordureBottom bordureRight center">6</td>
+ <td class="titre bordureBottom bordureRight center">7</td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr class="titre">
+ <td colspan="2" rowspan="2" class="bold titre bordered center">ACTIF</td>
+ <td colspan="3" class="bold titre bordered center">Exercice <xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice"/></td>
+ <td class="bold titre bordered center">Exercice <xsl:value-of select="/n:CompteGestion/n:Entete/n:Infos/n:Collectivite/@Exercice - 1"/></td>
+ </tr>
+ <tr>
+ <td class="bold titre bordered center">BRUT</td>
+ <td class="bold titre bordered center">AMORTISSEMENTS<br/>ET PROVISIONS</td>
+ <td class="bold titre bordered center">NET</td>
+ <td class="bold titre bordered center">NET</td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </thead>
+ <xsl:choose>
+ <xsl:when test="//n:Nomenclature/@V='M21'">
+ <xsl:call-template name="donnees.M21">
+ <xsl:with-param name="el" select="$el"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="//n:Nomenclature/@V='M31'">
+ <xsl:call-template name="donnees.M31">
+ <xsl:with-param name="el" select="$el"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="$el/n:LigneEnteteSP_BilanActif">
+ <tbody>
+ <tr>
+ <xsl:element name="td">
+ <xsl:attribute name="rowspan">
+ <xsl:value-of select="count(../n:LigneSP_BilanActif[not(contains(lower-case(@IntituleRubriqueA),'total'))])+1"/>
+ </xsl:attribute>
+ <xsl:attribute name="class">bold titre2 bordered</xsl:attribute>
+ <xsl:value-of select="@Titre1"/> <xsl:value-of select="@Titre2"/> <xsl:value-of select="@Titre3"/>
+ </xsl:element>
+ <!--td class="bordureTopRight" colspan="5"/-->
+ </tr>
+ <xsl:call-template name="donnees">
+ <xsl:with-param name="el" select="$el"/>
+ </xsl:call-template>
+ </tbody>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="donnees">
+ <xsl:param name="el"/>
+
+ <xsl:for-each select="$el/n:LigneSP_BilanActif">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$intitule != '0' and @IntituleRubriqueA=$intitule">
+ <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(@IntituleRubriqueA),'total') and position()!=count(../n:LigneSP_BilanActif)">
+ <td class="libelleLigne bordered bold" colspan="2">
+ <xsl:value-of select="@IntituleRubriqueA"/>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@Brut"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@AmortProv"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN_1"/>
+ </xsl:call-template>
+ </td>
+ </xsl:when>
+ <xsl:when test="contains(lower-case(@IntituleRubriqueA),'total') and position()=count(../n:LigneSP_BilanActif)">
+ <td class="libelleLigne borderedBold bold" colspan="2">
+ <xsl:value-of select="@IntituleRubriqueA"/>
+ </td>
+ <td class="montant borderedBold bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@Brut"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@AmortProv"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN_1"/>
+ </xsl:call-template>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="libelleLigne bordureRight">
+ <xsl:value-of select="@IntituleRubriqueA"/>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@Brut"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@AmortProv"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN_1"/>
+ </xsl:call-template>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="donnees.M21">
+ <xsl:param name="el"/>
+
+ <xsl:for-each select="$el/n:LigneSP_BilanActif">
+ <xsl:choose>
+ <xsl:when test="position()=1 or position()=6 or position()=13 or position()=18 or position()=24">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$intitule != '0' and @IntituleRubriqueA=$intitule">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((position()-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>
+ <xsl:choose>
+ <xsl:when test="position()=1">
+ <td class="bordureRight" style="background-color: white;"> </td>
+ <td class="bordureRight bordureTop bold bold">IMMOBILISATIONS INCORPORELLES:</td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ </xsl:when>
+ <xsl:when test="position()=6">
+ <td class="bordureRight bordureTop bold bold">IMMOBILISATIONS CORPORELLES:</td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ </xsl:when>
+ <xsl:when test="position()=13">
+ <td class="bordureRight bordureTop bold bold">IMMOBILISATIONS FINANCIERES:</td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ </xsl:when>
+ <xsl:when test="position()=18">
+ <td class="bordureRight"> </td>
+ <td class="bordureRight bold">STOCKS ET EN-COURS:</td>
+ <td class="montant bordureRight bold"> </td>
+ <td class="montant bordureRight bold"> </td>
+ <td class="montant bordureRight bold"> </td>
+ <td class="montant bordureRight bold"> </td>
+ </xsl:when>
+ <xsl:when test="position()=24">
+ <td class="bordureRight bordureTop bold bold">CREANCES D'EXPLOITATION :</td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ <td class="montant bordureRight bordureTop bold"> </td>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$intitule != '0' and @IntituleRubriqueA=$intitule">
+ <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(@IntituleRubriqueA),'total') and position()!=count(../n:LigneSP_BilanActif)">
+ <td class="libelleLigne bordered bold" colspan="2">
+ <xsl:value-of select="@IntituleRubriqueA"/>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@Brut"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@AmortProv"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordered bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN_1"/>
+ </xsl:call-template>
+ </td>
+ </xsl:when>
+ <xsl:when test="contains(lower-case(@IntituleRubriqueA),'total') and position()=count(../n:LigneSP_BilanActif)">
+ <td class="libelleLigne borderedBold bold" colspan="2">
+ <xsl:value-of select="@IntituleRubriqueA"/>
+ </td>
+ <td class="montant borderedBold bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@Brut"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@AmortProv"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant borderedBold bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN_1"/>
+ </xsl:call-template>
+ </td>
+ </xsl:when>
+ <xsl:otherwise-->
+ <xsl:choose>
+ <xsl:when test="position()=1">
+ <td rowspan="19" class="center bold bordureRight bordureBottom">
+ <xsl:choose>
+ <xsl:when test="//n:*/@Modele='23'">ACTIF<br/><br/><br/>IMMOBILISE</xsl:when>
+ <xsl:otherwise> </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ <xsl:when test="position()=18">
+ <td rowspan="16" class="center bold bordureRight bordureBottom">
+ <xsl:choose>
+ <xsl:when test="//n:*/@Modele='23'">ACTIF<br/><br/><br/>CIRCULANT</xsl:when>
+ <xsl:otherwise> </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ <xsl:when test="position()=33">
+ <td rowspan="7" class="center bold bordureRight bordureBottom">
+ <xsl:choose>
+ <xsl:when test="//n:*/@Modele='23'">COMPTES DE<br/><br/><br/>REGULARISATION</xsl:when>
+ <xsl:otherwise> </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ <td>
+ <xsl:choose>
+ <xsl:when test="position()=17"><xsl:attribute name="class">borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=29 or position()=30 or position()=31 or position()=32"><xsl:attribute name="class">bordureRight bold</xsl:attribute></xsl:when>
+ <xsl:when test="position()=33"><xsl:attribute name="class">borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=39"><xsl:attribute name="class">borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="position()=1">. Frais d'établissement</xsl:when>
+ <xsl:when test="position()=2">. Frais d'études,de recherche et développement</xsl:when>
+ <xsl:when test="position()=3">. Concessions et droit similaires, brevets, licences, marques et procédés, droits et valeurs similaires</xsl:when>
+ <xsl:when test="position()=4">. Autres immobilisations incorporelles</xsl:when>
+ <xsl:when test="position()=5">. Immobilisations incorporelles en cours</xsl:when>
+ <xsl:when test="position()=6">. Terrains</xsl:when>
+ <xsl:when test="position()=7">. Constructions</xsl:when>
+ <xsl:when test="position()=8">. Installations techniques, matériel et outillage industriel</xsl:when>
+ <xsl:when test="position()=9">. Autres immobilisations corporelles</xsl:when>
+ <xsl:when test="position()=10">. Immobilisations corporelles en cours</xsl:when>
+ <xsl:when test="position()=11">. Immobilisations reçues en affectation</xsl:when>
+ <xsl:when test="position()=12">. Immobilisations affectées ou mises à disposition</xsl:when>
+ <xsl:when test="position()=13">. Participations et créances rattachées à des participations</xsl:when>
+ <xsl:when test="position()=14">. Autres titres immobilisés</xsl:when>
+ <xsl:when test="position()=15">. Prêts</xsl:when>
+ <xsl:when test="position()=16">. Autres</xsl:when>
+ <xsl:when test="position()=17">TOTAL I</xsl:when>
+ <xsl:when test="position()=18">. Matières premières</xsl:when>
+ <xsl:when test="position()=19">. Autres approvisionnements</xsl:when>
+ <xsl:when test="position()=20">. En-coursde productions de biens</xsl:when>
+ <xsl:when test="position()=21">. Produits</xsl:when>
+ <xsl:when test="position()=22">. Marchandises</xsl:when>
+ <xsl:when test="position()=23">. Autres stocks</xsl:when>
+ <xsl:when test="position()=24">. Hospitalisés et consultants</xsl:when>
+ <xsl:when test="position()=25">. Caisse pivot</xsl:when>
+ <xsl:when test="position()=26">. Autres tiers payants</xsl:when>
+ <xsl:when test="position()=27">. Créances irrecouvrables admises en non-valeur</xsl:when>
+ <xsl:when test="position()=28">. Autres</xsl:when>
+ <xsl:when test="position()=29">CREANCES DIVERSES :</xsl:when>
+ <xsl:when test="position()=30">VALEURS MOBILIERES DE PLACEMENT</xsl:when>
+ <xsl:when test="position()=31">DISPONIBILITES</xsl:when>
+ <xsl:when test="position()=32">CHARGES CONSTATEES D'AVANCE</xsl:when>
+ <xsl:when test="position()=33">TOTAL II</xsl:when>
+ <xsl:when test="position()=34">CHARGES A REPARTIR SUR PLUSIEURS EXERCICES</xsl:when>
+ <xsl:when test="position()=35">PRIMES DE REMBOURSEMENT DES OBLIGATIONS</xsl:when>
+ <xsl:when test="position()=36">DEPENSES A CLASSER OU REGULARISER</xsl:when>
+ <xsl:when test="position()=37">DOTATIONS ATTENDUES</xsl:when>
+ <xsl:when test="position()=38">ECARTS DE CONVERSION D'ACTIF</xsl:when>
+ <xsl:when test="position()=39">TOTAL GENERAL</xsl:when>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="position()=17"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=33"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=39"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@Brut"/>
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="position()=17"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=33"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=39"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@AmortProv"/>
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="position()=17"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=33"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=39"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN"/>
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="position()=17"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=33"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:when test="position()=39"><xsl:attribute name="class">montant borderedBold bold center</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN_1"/>
+ </xsl:call-template>
+ </td>
+ <!--/xsl:otherwise>
+ </xsl:choose-->
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="donnees.M31">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="comptes.libelles">
+ <ComptesLibelles>
+ <Type Modele="501">
+ <CompteLibelle Compte="20" Libelle="IMMOBILISATIONS INCORPORELLES"/>
+ <CompteLibelle Compte="201" Libelle="Frais d'établissement"/>
+ <CompteLibelle Compte="2082 -2083 -2084" Libelle="Baux emphytéotiques, à construction et à réhabilitation"/>
+ <CompteLibelle Compte="203 -205 -2088" Libelle="Autres (1)"/>
+ <CompteLibelle Compte="21" Libelle="Immobilisations incorporelles en cours/ avances et acomptes"/>
+ <CompteLibelle Compte="232-237" Libelle="IMMOBILISATIONS CORPORELLES"/>
+ <CompteLibelle Compte="2111" Libelle="Terrains nus"/>
+ <CompteLibelle Compte="2112 -2113 -2115" Libelle="Terrains aménagés, loués, bâtis"/>
+ <CompteLibelle Compte="212" Libelle="Agencements et aménagements de terrains"/>
+ <CompteLibelle Compte="213 (sauf 21315, 2135 et 21318)" Libelle="Constructions locatives (sur sol propre)"/>
+ <CompteLibelle Compte="214 (sauf 21415, 2145 et 21418)" Libelle="Constructions locatives (sur sol d'autrui)"/>
+ <CompteLibelle Compte="21315 -2135 -21415 -2145" Libelle="Bâtiments administratifs"/>
+ <CompteLibelle Compte="21318 -21418" Libelle="Autres ensembles immobiliers"/>
+ <CompteLibelle Compte="215 -218" Libelle="Instal.techniques, matériel, outillage et autres immo.corporelle"/>
+ <CompteLibelle Compte="22" Libelle="Immeubles en location-vente,reçus en affectation"/>
+ <CompteLibelle Compte="23" Libelle="IMMOBILISATIONS CORPORELLES EN COURS"/>
+ <CompteLibelle Compte="2312" Libelle="Terrains"/>
+ <CompteLibelle Compte="2313 -2314 -2318" Libelle="Constructions et autres immobilisations corporelles en cours"/>
+ <CompteLibelle Compte="238" Libelle="Avances et acomptes versés sur immobilisations corporelles"/>
+ <CompteLibelle Compte="26-27" Libelle="IMMOBILISATIONS FINANCIERES (2)"/>
+ <CompteLibelle Compte="261 -266" Libelle="Participations"/>
+ <CompteLibelle Compte="271 -272" Libelle="Titres immobilisés"/>
+ <CompteLibelle Compte="2781 -2782" Libelle="Prêts pour accession"/>
+ <CompteLibelle Compte="274 -275 -2761" Libelle="Autres"/>
+ <CompteLibelle Compte="2768" Libelle="Intérêts courus"/>
+ <CompteLibelle Compte="" Libelle="( I )..."/>
+ </Type>
+ <Type Modele="502">
+ <CompteLibelle Compte="" Libelle="STOCKS ET EN-COURS"/>
+ <CompteLibelle Compte="31 (net 319)" Libelle="Terrains à aménager"/>
+ <CompteLibelle Compte="33" Libelle="Imeubles en cours"/>
+ <!--CompteLibelle Compte="" Libelle="Immeubles achevés :"/-->
+ <CompteLibelle Compte="35 sauf 358 (net 359)" Libelle="Disponibles à la vente"/>
+ <CompteLibelle Compte="358" Libelle="Temporairement loués"/>
+ <CompteLibelle Compte="37" Libelle="Immeubles acquis par résolutions de vente ou adjudication"/>
+ <CompteLibelle Compte="32" Libelle="Approvisionnements"/>
+ <CompteLibelle Compte="409" Libelle="FOURNISSEURS DEBITEURS"/>
+ <CompteLibelle Compte="" Libelle="CREANCES D'EXPLOITATION"/>
+ <CompteLibelle Compte="411 (sauf 4113)" Libelle="Locataires et organismes payeurs d'APL"/>
+ <CompteLibelle Compte="412 -4113" Libelle="Créances sur acquéreurs"/>
+ <CompteLibelle Compte="414 -417" Libelle="Clients -autres activités"/>
+ <CompteLibelle Compte="415" Libelle="Emprunteurs et locataires -acquéreurs"/>
+ <CompteLibelle Compte="416" Libelle="Clients douteux ou litigieux"/>
+ <CompteLibelle Compte="418" Libelle="Produits non encore facturés"/>
+ <CompteLibelle Compte="42 -43 -44 (sauf 441)" Libelle="Autres"/>
+ <CompteLibelle Compte="441" Libelle="Subventions à recevoir"/>
+ <CompteLibelle Compte="" Libelle="CREANCES DIVERSES (3)"/>
+ <CompteLibelle Compte="46 (sauf 461)" Libelle="Débiteurs divers"/>
+ <CompteLibelle Compte="461 (sauf 4615)" Libelle="Opérations pour le compte de tiers"/>
+ <CompteLibelle Compte="4615" Libelle="Opérations d'aménagement"/>
+ <CompteLibelle Compte="47 (sauf 476-47821)" Libelle="Comptes transitoires ou d'attente"/>
+ <CompteLibelle Compte="50" Libelle="VALEURS IMMOBILIERS DE PLACEMENT"/>
+ <CompteLibelle Compte="" Libelle="DISPONIBILITES"/>
+ <CompteLibelle Compte="511" Libelle="Valeur à l'encaissement"/>
+ <CompteLibelle Compte="515" Libelle="Compte au Trésor"/>
+ <CompteLibelle Compte="516" Libelle="Compte à terme"/>
+ <CompteLibelle Compte="518" Libelle="Intérêts courus"/>
+ <CompteLibelle Compte="Autres 51" Libelle="Autres établissements financiers et assimilés"/>
+ <CompteLibelle Compte="53 -54" Libelle="Caisse, régies d'avanceset accréditifs"/>
+ </Type>
+ <Type Modele="503">
+ <CompteLibelle Compte="486" Libelle="Charges constatées d'avance"/>
+ <CompteLibelle Compte="" Libelle="( II )..."/>
+ <CompteLibelle Compte="481" Libelle="Charges à répartir sur plusieurs exercices ( III )"/>
+ <CompteLibelle Compte="169" Libelle="Primes de remboursement des obligations ( IV )"/>
+ <CompteLibelle Compte="476-4781" Libelle="Différences de conversion ou d'indexation -Actif ( V )"/>
+ <CompteLibelle Compte="" Libelle="TOTAL GENERAL (I + II + III + IV + V )"/>
+ </Type>
+ </ComptesLibelles>
+ </xsl:variable>
+
+ <xsl:variable name="Modele" select="$el/@Modele"/>
+
+ <xsl:for-each select="$el/n:LigneSP_BilanActif">
+ <xsl:variable name="pos" select="position()"/>
+
+ <xsl:choose>
+ <xsl:when test="position()=1 or position()=6 or position()=13 or position()=18 or position()=24">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$intitule != '0' and @IntituleRubriqueA=$intitule">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="((position()-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>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="$Modele eq '502' and $pos eq 4">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$intitule != '0' and @IntituleRubriqueA=$intitule">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight bold">Immeubles achevés :</td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ </xsl:when>
+ <xsl:when test="$Modele eq '503' and ($pos eq 2 or $pos eq 3 or $pos eq 4 or $pos eq 5 or $pos eq 6)">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$intitule != '0' and @IntituleRubriqueA=$intitule">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ <td class="bordureRight"> </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$intitule != '0' and @IntituleRubriqueA=$intitule">
+ <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="not($el/@Modele='503' and position()=6)">
+ <td>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='501' and (position()=1 or position()=6 or position()=15 or position()=16 or position()=20 or position()=26)"><xsl:attribute name="class">bordureRight bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='502' and (position()=1 or position()=8 or position()=9 or position()=18 or position()=23 or position()=24)"><xsl:attribute name="class">bordureRight bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and (position()=1 or position()=3 or position()=4 or position()=5)"><xsl:attribute name="class">bordureRight 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>
+ </xsl:when>
+ </xsl:choose>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='501' and (position()=1 or position()=6 or position()=15 or position()=16 or position()=20 or position()=26)"><xsl:attribute name="class">bordureRight bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='502' and (position()=1 or position()=8 or position()=9 or position()=18 or position()=23 or position()=24)"><xsl:attribute name="class">bordureRight bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and (position()=1 or position()=3 or position()=4 or position()=5)"><xsl:attribute name="class">bordureRight bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and position()=6"><xsl:attribute name="class">bordureRight bordureTop center bold</xsl:attribute><xsl:attribute name="colspan">2</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="$el/@Modele='501' and (position()=1 or position()=6 or position()=15 or position()=16 or position()=20 or position()=26)"><xsl:attribute name="class">bordureRight bold montant borderedTopBottomDotted</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='502' and (position()=1 or position()=8 or position()=9 or position()=18 or position()=23 or position()=24)"><xsl:attribute name="class">bordureRight bold montant borderedTopBottomDotted</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and (position()=1 or position()=3 or position()=4 or position()=5)"><xsl:attribute name="class">bordureRight borderedTopBottomDotted montant bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and position()=6"><xsl:attribute name="class">bordureRight bordureTop center bold</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@Brut"/>
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='501' and (position()=1 or position()=6 or position()=15 or position()=16 or position()=20 or position()=26)"><xsl:attribute name="class">bordureRight bold montant borderedTopBottomDotted</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='502' and (position()=1 or position()=8 or position()=9 or position()=18 or position()=23 or position()=24)"><xsl:attribute name="class">bordureRight bold montant borderedTopBottomDotted</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and (position()=1 or position()=3 or position()=4 or position()=5)"><xsl:attribute name="class">bordureRight borderedTopBottomDotted montant bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and position()=6"><xsl:attribute name="class">bordureRight bordureTop center bold</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@AmortProv"/>
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='501' and (position()=1 or position()=6 or position()=15 or position()=16 or position()=20 or position()=26)"><xsl:attribute name="class">bordureRight bold montant borderedTopBottomDotted</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='502' and (position()=1 or position()=8 or position()=9 or position()=18 or position()=23 or position()=24)"><xsl:attribute name="class">bordureRight bold montant borderedTopBottomDotted</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and (position()=1 or position()=3 or position()=4 or position()=5)"><xsl:attribute name="class">bordureRight borderedTopBottomDotted montant bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and position()=6"><xsl:attribute name="class">bordureRight bordureTop center bold</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN"/>
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="$el/@Modele='501' and (position()=1 or position()=6 or position()=15 or position()=16 or position()=20 or position()=26)"><xsl:attribute name="class">bordureRight bordureBottom bordureTop bold montant</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='502' and (position()=1 or position()=8 or position()=9 or position()=18 or position()=23 or position()=24)"><xsl:attribute name="class">bordureRight bordureBottom bordureTop bold montant</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and (position()=1 or position()=3 or position()=4 or position()=5)"><xsl:attribute name="class">bordureRight bordureBottom bordureTop montant bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and position()=6"><xsl:attribute name="class">bordureRight bordureTop center bold</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</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="$el/@Modele='501' and (position()=1 or position()=6 or position()=15 or position()=16 or position()=20 or position()=26)"><xsl:attribute name="class">bordureRight bordureBottom bordureTop bold montant</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='502' and (position()=1 or position()=8 or position()=9 or position()=18 or position()=23 or position()=24)"><xsl:attribute name="class">bordureRight bordureBottom bordureTop bold montant</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and (position()=1 or position()=3 or position()=4 or position()=5)"><xsl:attribute name="class">bordureRight bordureBottom bordureTop montant bold</xsl:attribute></xsl:when>
+ <xsl:when test="$el/@Modele='503' and position()=6"><xsl:attribute name="class">bordureRight bordureTop center bold</xsl:attribute></xsl:when>
+ <xsl:otherwise><xsl:attribute name="class">montant bordureRight</xsl:attribute></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@NetN_1"/>
+ </xsl:call-template>
+ </td>
+ <!--/xsl:otherwise>
+ </xsl:choose-->
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+</xsl:transform>