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 :

Problème avec affichage de FO-TABLE [XSLT 2.0]


Sujet :

XSL/XSLT/XPATH XML

  1. #1
    Membre à l'essai
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Août 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Transports

    Informations forums :
    Inscription : Août 2012
    Messages : 8
    Points : 10
    Points
    10
    Par défaut Problème avec affichage de FO-TABLE
    Bonjour à tout le monde,

    j'ai un problème pour afficher une FO-TABLE.

    Elle s'affiche mais sans aucun formatage ! seules les données "brutes" sont affichées !

    Voici le source :

    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
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
     
    <?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" xmlns:cal="xalan//java.util.GregorianCalendar"
    	version="2.0">
    	<xsl:output method="html" indent="yes" />
    ...
     
    	<xsl:template match="Lignes">
    		<fo:layout-master-set>
    			<fo:simple-page-master margin-right="20mm"
    				margin-left="20mm" margin-bottom="20mm" margin-top="20mm"
    				page-width="200mm" page-height="300mm" master-name="mainPage">
    				<fo:region-body margin-right="0mm" margin-left="0mm"
    					margin-bottom="10mm" margin-top="0mm" />
    				<fo:region-after extent="20mm" />
    			</fo:simple-page-master>
    		</fo:layout-master-set>
     
    		<fo:page-sequence master-reference="mainPage">
    			<fo:flow flow-name="xsl-region-body">
    				<fo:block font-size="28pt" line-height="36pt"
    					padding-after="12pt">
    					Creating XSL-FO Tables
    				</fo:block>
    				<fo:table width="16cm" table-layout="fixed">
    					<fo:table-column column-number="1" column-width="30mm">
    					</fo:table-column>
    					<fo:table-column column-number="2" column-width="30mm">
    					</fo:table-column>
    					<fo:table-column column-number="3" column-width="30mm">
    					</fo:table-column>
    					<fo:table-body>
    						<fo:table-row line-height="26pt">
    							<fo:table-cell column-number="1" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt"
    									font-weight="bold">
    									State
    								</fo:block>
    							</fo:table-cell>
    							<fo:table-cell column-number="2" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt"
    									font-weight="bold">
    									Flower
    								</fo:block>
    							</fo:table-cell>
    							<fo:table-cell column-number="3" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt"
    									font-weight="bold">
    									Bird
    								</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="26pt">
    							<fo:table-cell column-number="1" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									California
    								</fo:block>
    							</fo:table-cell>
    							<fo:table-cell column-number="2" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									Quail
    								</fo:block>
    							</fo:table-cell>
    							<fo:table-cell column-number="3" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									Golden
    									Poppy
    								</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="26pt">
    							<fo:table-cell column-number="1" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									Massachusetts
    								</fo:block>
    							</fo:table-cell>
    							<fo:table-cell column-number="2" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									Chickadee
    								</fo:block>
    							</fo:table-cell>
    							<fo:table-cell column-number="3" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									Mayflower
    								</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="26pt">
    							<fo:table-cell column-number="1" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									New York
    								</fo:block>
    							</fo:table-cell>
    							<fo:table-cell column-number="2" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									Bluebird
    								</fo:block>
    							</fo:table-cell>
    							<fo:table-cell column-number="3" border-style="solid">
    								<fo:block font-family="sans-serif" font-size="20pt">
    									Rose
    								</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    					</fo:table-body>
    				</fo:table>
    			</fo:flow>
    		</fo:page-sequence>
    	</xsl:template>
     
    </xsl:stylesheet>
    Une idée ?

    Merci par avance

    Fabrice

  2. #2
    Modérateur

    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    12 551
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 12 551
    Points : 21 607
    Points
    21 607
    Par défaut
    ??

    Ben... Tu utilises quoi pour "l'afficher" ? Je rappelle que les navigateurs utilisent plutôt le langage HTML, pas XSL-FO.
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Conception] Problème avec INSERT dans une TABLE
    Par dunbar dans le forum PHP & Base de données
    Réponses: 26
    Dernier message: 20/07/2006, 12h56
  2. Réponses: 3
    Dernier message: 10/01/2006, 14h01
  3. problème avec le gestionnaire de tables liées
    Par progima dans le forum Access
    Réponses: 3
    Dernier message: 30/11/2005, 11h40
  4. Problème avec affichage d'une table modifiée
    Par auriolbeach dans le forum Access
    Réponses: 6
    Dernier message: 31/10/2005, 15h45
  5. probléme avec la création de table Mysql 5
    Par developpeur_mehdi dans le forum Outils
    Réponses: 3
    Dernier message: 19/10/2005, 19h08

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