<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
<xsl:output encoding="UTF-8"/>
<xsl:param name="details" />
<xsl:param name="affiche" />
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="simple" page-height ="29.7cm" page-width ="21cm" margin-left ="2.5cm" margin-right ="2.5cm">
<fo:region-body margin-top="3cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="inscrits/inscrit/logement">
<xsl:if test="@id=$details">
<fo:table >
<fo:table-column/>
<fo:table-column/>
<fo:table-header ><fo:table-row><fo:table-cell ><fo:block>Déscriptif</fo:block></fo:table-cell></fo:table-row></fo:table-header>
<fo:table-body >
<fo:table-row><fo:table-cell ><fo:block>Titre logement :*<xsl:value-of select="@titre" /></fo:block></fo:table-cell></fo:table-row>
<fo:table-row><fo:table-cell ><fo:block> Type :*<xsl:value-of select="@type" /></fo:block></fo:table-cell></fo:table-row>
<fo:table-row><fo:table-cell ><fo:block>Adresse:*<xsl:value-of select="@adresse" /></fo:block></fo:table-cell></fo:table-row>
<fo:table-row><fo:table-cell ><fo:block>Région:*<xsl:value-of select="@region" /></fo:block></fo:table-cell>
<fo:table-cell ><fo:block>Prix mensuelle:*<xsl:value-of select="@dinars" />dt</fo:block></fo:table-cell></fo:table-row>
<fo:table-row><fo:table-cell ><fo:block>Surface m2:*<xsl:value-of select="@surface" /></fo:block></fo:table-cell>
<fo:table-cell ><fo:block>Nbre d'étage:*<xsl:value-of select="@nb_etage" /></fo:block></fo:table-cell></fo:table-row>
<fo:table-row><fo:table-cell ><fo:block>Nbre de pièces:*<xsl:value-of select="@nb_pieces" /></fo:block></fo:table-cell>
<fo:table-cell ><fo:block>Nbre dde chambre:*<xsl:value-of select="@nb_cham" /></fo:block></fo:table-cell></fo:table-row>
</fo:table-body>
</fo:table>
........................................
Partager