Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1077 connectés 

  FORUM HardWare.fr
  Programmation
  XML/XSL

  Saut de ligne en xsl

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Saut de ligne en xsl

n°1317679
23samael
Posté le 03-03-2006 à 12:08:05  profilanswer
 

Bonjour à tous!
 
Je suis un grand débutant avec fop, pouvez vous me dire pourquoi ce code ne permet pas de sauter des lignes?
 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <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-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
     <fo:region-body margin-top="1cm"/>
     <fo:region-before extent="0cm"/>
     <fo:region-after extent="1cm"/>
    </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-reference="simple">
    <fo:flow flow-name="xsl-region-body">
     <fo:block font-family="Helvetica" font-size="8pt">
      <xsl:apply-templates select="root/user"/>
      <!--xsl:apply-templates select="root/dossier"/-->
     </fo:block>
    </fo:flow>
   </fo:page-sequence>
  </fo:root>
 </xsl:template>
 
 <xsl:template match="user">
   <fo:table space-before="10pt">
    <fo:table-column column-width="3cm"/>
    <fo:table-column column-width="3cm"/>
    <fo:table-column column-width="13cm"/>
    <fo:table-body>
     <fo:block>
     <fo:table-row>
      <fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
       <fo:block font-weight="bold">
        Service
        <!--xsl:value-of select="libelle/label2"/-->
       </fo:block>
      </fo:table-cell>
      <fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
       <fo:block font-weight="bold">
        Service
        <!--xsl:value-of select="libelle/label2"/-->
       </fo:block>
      </fo:table-cell>
      <fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
       <fo:block font-weight="bold">
        Service
        <!--xsl:value-of select="libelle/label2"/-->
       </fo:block>
      </fo:table-cell>
     </fo:table-row>
     </fo:block>
     <fo:block>
     <fo:table-row>
      <fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
       <fo:block font-weight="bold">
        Service
        <!--xsl:value-of select="libelle/label2"/-->
       </fo:block>
      </fo:table-cell>
      <fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
       <fo:block font-weight="bold">
        Service
        <!--xsl:value-of select="libelle/label2"/-->
       </fo:block>
      </fo:table-cell>
      <fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
       <fo:block font-weight="bold">
        Service
        <!--xsl:value-of select="libelle/label2"/-->
       </fo:block>
      </fo:table-cell>
     </fo:table-row>
     </fo:block>
    </fo:table-body>
   </fo:table>
  <!--/fo:block-->
 </xsl:template>
 
</xsl:stylesheet>
 
 
Merci à tous

mood
Publicité
Posté le 03-03-2006 à 12:08:05  profilanswer
 

n°1317704
rufo
Pas me confondre avec Lycos!
Posté le 03-03-2006 à 12:31:22  profilanswer
 

Le texte à afficher qui contient des <br />, je le reformate pour remplacer les <br /> par <![CDATA[<br />]]>...Et ça marche :)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  XML/XSL

  Saut de ligne en xsl

 

Sujets relatifs
saut de ligne dans un excel créé en phpShell unix : caractère saut de ligne à supprimer
saut de ligne portableJEditorPane Editable, Annuler le saut de ligne sur Enter
saut de ligne dans un fichier généré en phpSaut de ligne en java
Régler la largeur d'un saut de ligne <p>Probleme de saut de ligne
[javascript et PHP]Pb avec saut de ligne[résolu]introduction de saut de ligne dans un fichier
Plus de sujets relatifs à : Saut de ligne en xsl


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR