Cliquez ici.
Accueil
 chercher             Plan du site             Info (English version) 
L'histoire de XML s'écrit en ce moment même. XMLfr vous aide à la suivre et à en dégager les tendances.Les listes de discussions XMLfr sont à votre disposition pour réagir sur nos articles ou simplement poser une question.Si vous ètes passionnée(e) par XML, pourquoi ne pas en faire votre métier ?XMLfr n'est heureusement pas le seul site où l'on parle de XML. Découvrez les autres grâce à XMLfr et à l'ODP.Les partenaires grâce auxquels XMLfr peut se développer.Pour tout savoir sur XMLfr.XMLfr sans fil, c'est possible !Pour ceux qui veulent vraiment en savoir plus sur XML.L'index du site.
 Commentaires et questions non techniques.Commentaires et questions techniques.

 
Cliquez ici.

xml tech : Technologies XML

[xml-tech] Re: structure xsl-fo

[xml-tech] Re: structure xsl-fo

Auteur: Cédric Joly <joly.cedric@free.fr>
Date: 04/11/2005 - 13:17

par contre tu pourrai me passer le fichier xml, je pense ke j'en ai besoin
merci

-- 
Amicalement
Cédric Joly
Eric.Reiter@ic.lu a écrit :
>Bonjour Cedric
>
>Tu trouveras ci dessous un exemple de XSL-FO que j ai cree.
>J espere que cela pourra t aider.
>eric
>
>---------------------
><?xml version="1.0" encoding="iso-8859-1"?>
><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/XML/XLink/0.9" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
>   <xsl:template match="/">
>      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>         <fo:layout-master-set>
><!-- fo:layout-master-set defines in its children the page layout:
>       the pagination and layout specifications
>      - page-masters: have the role of describing the intended subdivisions
>                       of a page and the geometry of these subdivisions
>                      In this case there is only a simple-page-master which defines the
>                      layout for all pages of the text
>  -->
><!-- layout information -->
>            <fo:simple-page-master master-name="my-page" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
>               <fo:region-body margin-top="1cm" margin-bottom="2cm" />
>              
>               <fo:region-before extent="3cm" />
>               <fo:region-after extent="0.5cm" />
>               <fo:region-end extent="1cm"/>
>            </fo:simple-page-master>
>         </fo:layout-master-set>
>
><!-- end: defines page layout -->
>         <fo:page-sequence master-reference="my-page">
>
>            <fo:static-content flow-name="xsl-region-before" margin-left="10mm" margin-right="10mm" margin-top="5mm">
>               <fo:table table-layout="fixed" border-style="solid" border-width="0pt" border-color="white" space-after="0.5mm">
>                  <fo:table-column column-width="9.5cm" />
>
>                  <fo:table-column column-width="9.5cm" />
>
>                  <fo:table-body>
>                     <fo:table-row>
>                        <fo:table-cell border-bottom-color="black" border-bottom-width="0.5pt" border-bottom-style="solid">
>                           <fo:block text-align="start" font-size="10pt" font-family="serif">
>				<xsl:text>Département PE</xsl:text>
>                           
>                           </fo:block>
>                        </fo:table-cell>
>                        <fo:table-cell border-bottom-color="black" border-bottom-width="0.5pt" border-bottom-style="solid">
>                           <fo:block text-align="start" font-size="10pt" font-family="serif">
>                            <xsl:text> </xsl:text>
>                           </fo:block>
>                        </fo:table-cell>
>                     </fo:table-row>
>                  </fo:table-body>
>               </fo:table>
>            </fo:static-content>
>
>
>            <fo:static-content flow-name="xsl-region-after" margin-left="10mm" margin-right="10mm" margin-top="5mm">
>            
>               <fo:table table-layout="fixed" border-style="solid" border-width="0pt" border-color="white">
>                  <fo:table-column column-width="9.5cm" />
>
>                  <fo:table-column column-width="9.5cm" />
>                  <fo:table-body>
>                     <fo:table-row>
>                        <fo:table-cell border-top-color="black" border-top-width="0.5pt" border-top-style="solid">
>                           <fo:block text-align="start" font-size="10pt" font-family="serif">
>                              <xsl:value-of select="liste/titre" />
>                           </fo:block>
>                        </fo:table-cell>
>
>                        <fo:table-cell border-top-color="black" border-top-width="0.5pt" border-top-style="solid">
>                           <fo:block text-align="end" font-size="10pt" font-family="serif">
>                              <fo:page-number/>
>                           </fo:block>
>                        </fo:table-cell>
>                     </fo:table-row>
>                  </fo:table-body>
>               </fo:table>
>            </fo:static-content>
>           
>           
>
>            <fo:flow flow-name="xsl-region-body" margin-left="10mm" margin-right="10mm" margin-top="5mm" margin-bottom="20mm">
>               <xsl:apply-templates />
>            </fo:flow>
>
>         </fo:page-sequence>
>      </fo:root>
>   </xsl:template>
>
>   <xsl:template match="//titre">
>      <fo:block font-family="Times Roman" font-size="25pt" font-weight="bold" background-color="blue" color="white" text-align="center" space-after="2cm">
>         <xsl:value-of select="text()" />
>      </fo:block>
>   </xsl:template>
>
>   <xsl:template match="//titre.pro">
>      <fo:block font-family="Times Roman" font-size="10pt" font-weight="bold" color="green" space-before="0.5cm" text-indent="0.5cm" space-after="0.5cm">
>         <xsl:apply-templates/>
>      </fo:block>
>   </xsl:template>
>
>      <xsl:template match="//lien">
>      <fo:list-item space-after="0.2cm">
><!-- insert a bullet -->
>         <fo:list-item-label end-indent="label-end()">
>            <fo:block text-indent="1.5cm">
>               <fo:inline font-family="Symbol">·</fo:inline>
>            </fo:block>
>         </fo:list-item-label>
>
><!-- list text -->
>         <fo:list-item-body start-indent="body-start()">
>            <fo:block font-family="Times Roman" font-size="9pt" text-indent="1.5cm" >
>               <xsl:value-of select="@nom" />
>            </fo:block>
>         </fo:list-item-body>
>      </fo:list-item>
>   </xsl:template>
>
>
>
></xsl:stylesheet>
>
>-----Original Message-----
>From: xml-tech-bounce@xmlfr.org [mailto:xml-tech-bounce@xmlfr.org]On
>Behalf Of Cédric Joly
>Sent: vendredi 4 novembre 2005 11:56
>To: xml-tech@xmlfr.org
>Subject: [xml-tech] structure xsl-fo
>
>
>bonjour,
>Je dois pondre un article sur xsl-fo.
>Après avoir tenter de comprendre la structure d'un xsl-fo avec
>traduction de xsl-fo recommendations
><http://www.yoyodesign.org/doc/w3c/xsl1/slice6.html>
>(c'est totalement imbuvable) . je voulais savoir si la structure d'un
>document xsl-fo ressemblait à ca.
><http://utauxpia.free.fr/doc/sche_structure.jpg>?
>si je me trompe ou si quelqu'un pouvait m'apporter quelques précisions,
>je serai ouvert à toute discussion.
>ps: apparemment on est obligé de passer par l'anglais pour avoir de la doc
>
>
>--
>Amicalement
>
>Cédric Joly
>
>
>
>--
>Devenez redacteur <XML>fr et contribuez au developpement du
>xml francophone (http://xmlfr.org/infos/redacteurs/) !
>
>Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
>
>Cette liste est a votre disposition pour discuter en francais de
>tout sujet technique lie a XML.
>
>Pour resilier votre abonnement, envoyez un message contenant
>la commande "unsubscribe" a xml-tech-request@xmlfr.org
>(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
>
>
>Pour connaître nos solutions et services, visitez
>http://www.ic.lu
>
>To learn about our services and solutions, please visit:
>http://www.ic.lu
>
>This E-mail is confidential. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and notify the sender immediately by return E-mail.
>
>Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
>
>--
>Devenez redacteur <XML>fr et contribuez au developpement du
>xml francophone (http://xmlfr.org/infos/redacteurs/) !
>
>Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
>
>Cette liste est a votre disposition pour discuter en francais de 
>tout sujet technique lie a XML.
>
>Pour resilier votre abonnement, envoyez un message contenant 
>la commande "unsubscribe" a xml-tech-request@xmlfr.org
>(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
>
>
>
>__________ Information NOD32 1.1275 (20051103) __________
>
>Ce message a ete verifie par NOD32 Antivirus System.
>http://www.nod32.com
>
>
>
>  
>
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de 
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant 
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Received on Fri Nov 4 15:43:42 2005

Archive générée par hypermail 2.1.8 le 30/11/2005 - 16:12 UTC

webmaster@xmlfr.org

 

xml tech

Discussions techniques au sujet de XML.

Cette liste est à votre disposition pour discuter en français de tout sujet technique lié à XML.



Devenez rédacteur <XML>fr et contribuez au développement du xml francophone !
Les documents publiés sur ce site le sont sous licence "Open Content"
Conception graphique
  l.henriot@online.fr  

Conception, réalisation et hébergement