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 :

placing footer on the bottom of the region-area


Sujet :

XSL/XSLT/XPATH XML

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Août 2005
    Messages
    1
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 1
    Points : 1
    Points
    1
    Par défaut placing footer on the bottom of the region-area
    Hello,
    I see that there is no topic for xsl-fo so I decided to post here. Sorry for any inconvenient.
    I'm a newbie with xsl-fo so I would need some help.I am trying to position my footer content aligned on the bottom of my region-after area. I'm using the display-align attribut initialized at "after". Here is the code:

    <fo:simple-page-master master-name="first" page-height="29.7cm" page-width="21.0cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm">

    <fo:region-body margin-top="0cm" margin-bottom="1.5cm"/>
    <fo:region-before extent="1cm" region-name="before-first"/>
    <fo:region-after extent="3.5cm" display-align="after" background-color="#BBB34F" region-name="after-first" />
    </fo:simple-page-master>

    Here I place a static content for the region-after area

    <fo:static-content flow-name="after-first">
    <xsl:call-template name="show-footer" />
    </fo:static-content>

    Suposing the template show-footer looks like this (no need to bother you with the whole code, it doesn't work eaven with this simple one):


    <xsl:template name="show-footer">

    <fo:table>
    <fo:table-column column-width="18.5cm" />
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell height="3.5" background-color="#CCCCCC">
    <fo:block>
    test
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>

    </xsl:template>

    I'm not using a stylesheet so it ain't a problem of override.

    Thanks for any kind of help

  2. #2
    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
    Hi,

    Welcome on Board!

    Me I do like this:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    <fo:simple-page-master master-name="first" page-height="29.7cm" page-width="21cm" margin-top="1mm" margin-bottom="3mm" margin-left="3mm" margin-right="3mm">
    <fo:region-body margin-top="3.6cm" margin-bottom="1.5cm" background-image="inBearb.jpg"/>		
    <fo:region-before region-name="title1" extent="3.7cm"/>
    <fo:region-after extent="1cm"/>
    </fo:simple-page-master>
    And after:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <fo:static-content flow-name="xsl-region-after">
    <xsl:call-template name="show-footer" /> 			
    		</fo:static-content>
    Your error is possibily because you give another name that is by default and it's possible that FOP don't implement this!

    ++

    Thierry

    P.S. If you search an expert forum for FO question go on : http://groups.yahoo.com/group/XSL-FO/ (in English)

Discussions similaires

  1. Réponses: 1
    Dernier message: 22/04/2010, 12h24
  2. Réponses: 2
    Dernier message: 23/01/2008, 16h26
  3. Réponses: 5
    Dernier message: 19/11/2007, 10h10
  4. [JPA][EJB3] The @JoinColumns on the annotated element
    Par *alexandre* dans le forum JPA
    Réponses: 9
    Dernier message: 19/02/2007, 11h26
  5. Ghost in the shell in the PC
    Par inertia dans le forum MFC
    Réponses: 3
    Dernier message: 11/07/2005, 15h33

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