--- /dev/null
+<?xml version="1.1" encoding="iso-8859-1"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY nbsp " ">
+]>
+<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.minefi.gouv.fr/cp/helios/pes/versement/1.0" xmlns:n="http://www.minefi.gouv.fr/cp/helios/pes/versement/1.0" 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="&#160;"/>
+ </xsl:character-map>
+
+ <xsl:output method="xhtml" encoding="ISO-8859-1" indent="yes" use-character-maps="accents"/>
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"> </xsl:template>
+
+ <!-- parametre implicite pour tous les format-number utilises dans la feuille-->
+ <xsl:decimal-format decimal-separator="." grouping-separator=" "/>
+
+
+ <xsl:param name="language" select="'fr'"/>
+
+
+ <xsl:template match="/n:Bourses">
+ <html>
+ <head>
+ <title>Nomenclature : <xsl:value-of select="/n:Bourses/n:Employeur/n:Nom/@V"/></title>
+ <style type="text/css" media="all">
+ @page { size: 210mm 297mm; @bottom-center { content: "Page " counter(page) " / " counter(pages); } }
+ body { font-size: 10px; }
+ table { -fs-table-paginate: paginate; }
+ h2 { font-size: 16px; }
+ tr { page-break-inside: avoid }
+ td { font-size: 11px; border-width: 1px; border-color: black; border-spacing: 0px border-collapse: collapse; padding: 2px; }
+ td.gauche { border-style: none none solid solid; }
+ td.droite { border-style: none solid solid solid; }
+ .titreGauche { font-weight: bold; text-align: center; background-color: #555555; color: white; border-style: solid none solid solid; }
+ .titreDroite { font-weight: bold; text-align: center; background-color: #555555; color: white; border-style: solid solid solid solid; }
+ </style>
+ </head>
+ <body>
+ <xsl:apply-templates/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="n:Nomenclatures">
+ <xsl:choose>
+ <xsl:when test="@Code">
+ <h3><xsl:value-of select="@Libelle"/> (<xsl:value-of select="@Code"/>)</h3>
+ </xsl:when>
+ <xsl:otherwise>
+ <h3>Nomenclature par défaut</h3>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="/n:Bourses/n:Nomenclatures/n:NomenclaturePrestation">
+ <h2>
+ <xsl:value-of select="n:Description/@V"/>
+ </h2>
+ <table cellspacing="0">
+ <thead>
+ <tr>
+ <td class="titreGauche">Libellé</td>
+ <td class="titreDroite">Code</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:apply-templates/>
+ </tbody>
+ </table>
+ <br/>
+ </xsl:template>
+
+ <xsl:template match="/n:Bourses/n:Nomenclatures/n:NomenclatureBudget">
+ <h2>
+ <xsl:value-of select="n:Description/@V"/>
+ </h2>
+ <table cellspacing="0">
+ <thead>
+ <tr>
+ <td class="titreGauche">Libellé</td>
+ <td class="titreDroite">Code</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:apply-templates/>
+ </tbody>
+ </table>
+ <br/>
+ </xsl:template>
+
+ <xsl:template match="/n:Bourses/n:Nomenclatures/n:NomenclatureNature">
+ <h2>
+ <xsl:value-of select="n:Description/@V"/>
+ </h2>
+ <table cellspacing="0">
+ <thead>
+ <tr>
+ <td class="titreGauche">Libellé</td>
+ <td class="titreDroite">Code</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:apply-templates/>
+ </tbody>
+ </table>
+ <br/>
+ </xsl:template>
+
+ <xsl:template match="n:NomenclaturePrestation/n:Correspondance">
+ <tr>
+ <td class="gauche"><xsl:value-of select="n:Libelle/@V"/> </td>
+ <td class="droite"><xsl:value-of select="n:Code/@V"/> </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="n:NomenclatureNature/n:Correspondance">
+ <tr>
+ <td class="gauche"><xsl:value-of select="n:Libelle/@V"/> </td>
+ <td class="droite"><xsl:value-of select="n:Code/@V"/> </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="n:NomenclatureBudget/n:Correspondance">
+ <tr>
+ <td class="gauche"><xsl:value-of select="n:Libelle/@V"/> </td>
+ <td class="droite"><xsl:value-of select="n:Code/@V"/> </td>
+ </tr>
+ </xsl:template>
+
+</xsl:transform>