IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

XSL/XSLT/XPATH XML Discussion :

[XSl-FO] tableau tronqué


Sujet :

XSL/XSLT/XPATH XML

  1. #1
    Membre à l'essai
    Inscrit en
    Août 2002
    Messages
    27
    Détails du profil
    Informations forums :
    Inscription : Août 2002
    Messages : 27
    Points : 24
    Points
    24
    Par défaut [XSl-FO] tableau tronqué
    Bonjour à tous

    Je suis en train de préparer une feuille Xsl-fo afin de generer un PDF via Fop.
    Mon probléme est le suivant, j'ai des éléments Table-row contenant des elements Table-cell et j'aimerai que si certains éléments table-cell au lieu d'être tronqué dans ma page soit plutôt écrit sur une autre page, bien sur que je ne connais pas l'avance les colonnes qui seront tronqués.
    Exist-t-il une solution merci d'avance.

  2. #2
    Expert éminent
    Avatar de GrandFather
    Inscrit en
    Mai 2004
    Messages
    4 587
    Détails du profil
    Informations personnelles :
    Âge : 54

    Informations forums :
    Inscription : Mai 2004
    Messages : 4 587
    Points : 7 103
    Points
    7 103
    Par défaut
    Bonjour,

    il faut ajouter cet attribut dans tes <table-row> :

  3. #3
    Membre à l'essai
    Inscrit en
    Août 2002
    Messages
    27
    Détails du profil
    Informations forums :
    Inscription : Août 2002
    Messages : 27
    Points : 24
    Points
    24
    Par défaut
    Ca ne change rien, j'ai toujours ma quatrième colonne tronquée, au lieu d'être sur une nouvelle page.

    je vous délivre une partie de mon fichier:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    <?xml version="1.0" encoding="UTF-8"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    	<fo:layout-master-set>
    		<fo:simple-page-master page-width="21cm" page-height="29.7cm" master-name="essai">
    			<fo:region-body margin-top="3.6cm" margin-bottom="1.5cm" margin-left="1.5cm" margin-right="1.5cm"/>
    		</fo:simple-page-master>
    	</fo:layout-master-set>
    	<fo:page-sequence master-reference="essai">
    		<fo:flow flow-name="xsl-region-body">
    			<fo:table space-before="1cm" table-layout="fixed" border-collapse="separate">
    				<fo:table-column column-width="35pt"/>
    				<fo:table-column column-width="260pt"/>
    				<fo:table-column column-width="160pt"/>
    				<fo:table-column column-width="160pt"/>
    				<fo:table-body>
    					<fo:table-row keep-together="always">
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(255,255,255)" background-color="rgb(178,34,34)">
    							<fo:block></fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(255,255,255)" background-color="rgb(178,34,34)">
    							<fo:block>Commune</fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(0,0,0)" background-color="rgb(210,210,199)">
    							<fo:block>Dotations totales communales</fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(0,0,0)" background-color="rgb(210,210,199)">
    							<fo:block>Dotation forfaitaire</fo:block>
    						</fo:table-cell>
    					</fo:table-row>
    					<fo:table-row keep-together="always">
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(255,255,255)" background-color="rgb(178,34,34)">
    							<fo:block></fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(255,255,255)" background-color="rgb(178,34,34)">
    							<fo:block></fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(0,0,0)" background-color="rgb(210,210,199)">
    							<fo:block>2005 - €</fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(0,0,0)" background-color="rgb(210,210,199)">
    							<fo:block>2005 - €</fo:block>
    						</fo:table-cell>
    					</fo:table-row>
    					<fo:table-row keep-together="always">
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(0,0,0)" background-color="rgb(245,222,179)">
    							<fo:block>1</fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(0,0,0)" background-color="rgb(245,222,179)">
    							<fo:block>ABRIES</fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(0,0,0)" background-color="rgb(245,245,245)">
    							<fo:block>278201</fo:block>
    						</fo:table-cell>
    						<fo:table-cell padding="0.3cm" border-color="black" border-top-width="0.5pt" border-style="solid" color="rgb(0,0,0)" background-color="rgb(245,245,245)">
    							<fo:block>233456</fo:block>
    						</fo:table-cell>
    					</fo:table-row>
     
    .......

  4. #4
    Membre expérimenté
    Avatar de virgul
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    1 625
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : Suisse

    Informations forums :
    Inscription : Novembre 2004
    Messages : 1 625
    Points : 1 666
    Points
    1 666
    Par défaut
    Salut,

    étonnant que ca ne marche pas chez moi c'est dans la 2 ou 3ème colonne qui peut y avoir des problème comme le tient et ca marche bien...

    Petit conseil il existe:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    ...<fo:table-header>
    <fo:table-row>...
    Pour faire la ligne de titre de ton tableau!

    ++

    Thierry

    P.S. pour ton prob je regarde encore...

  5. #5
    Membre expérimenté
    Avatar de virgul
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    1 625
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : Suisse

    Informations forums :
    Inscription : Novembre 2004
    Messages : 1 625
    Points : 1 666
    Points
    1 666
    Par défaut
    Quelle version de FOP tu utilise?


    essaye d'enlever le border-collapse de fo:table de toute facon c'est pas implémenté. Ca peux, peut-être générer des erreurs et faire foirer le reste!

  6. #6
    Membre à l'essai
    Inscrit en
    Août 2002
    Messages
    27
    Détails du profil
    Informations forums :
    Inscription : Août 2002
    Messages : 27
    Points : 24
    Points
    24
    Par défaut
    j'utilise fop-0.20.5
    j'ai enlevé le border-collapse, mais sans que ça change quoi que se soit.
    toujours la quatrième colonne qui est tronqué.
    et merci pour le conseil je l'avais vu dis moi j'en profite aussi est-ce que le fait de mettre un <fo:table-header> fait répéter les lignes contenu à chaque nouvelle page?
    sinon merci pour tes réponses à mon pB.

Discussions similaires

  1. [XSL-FO] Tableau avec bouts arrondis + Utilisation FOP
    Par Little_flower dans le forum XSL/XSLT/XPATH
    Réponses: 2
    Dernier message: 21/05/2007, 09h24
  2. [Débutant] XSL vers tableau HTML
    Par Sam 069 dans le forum XML/XSL et SOAP
    Réponses: 1
    Dernier message: 09/04/2007, 11h22
  3. Réponses: 9
    Dernier message: 09/02/2007, 11h19
  4. [XSL~FO] tableau à colonnes variables
    Par matts21 dans le forum XSL/XSLT/XPATH
    Réponses: 4
    Dernier message: 18/09/2006, 15h47
  5. [XSL~FO]tableau de taille dynamique
    Par sozie9372 dans le forum XSL/XSLT/XPATH
    Réponses: 9
    Dernier message: 13/07/2006, 17h57

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo