🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #8627

Re: [XSL FO] indentation relative

#8627
From: Thomas Broyer
Date: Thu, 06 Sep 2001 12:19
30 lines
2313 bytes
In <3B974012.2836F2E2@sophia.inria.fr>, Joel Fillon wrote:
> Dans un document xsl fo, je voudrais indenter un block par rapport au
> block qui le contient. J'ai essaye :
> 
> <fo:block start-indent="50pt">Text before<fo:block start-indent="50pt">A
> block with 50pt start-indent within a block with 50pt
> start-indent</fo:block>Text after</fo:block>
> 
> Mais l'attribut start-indent="50pt" definit l'indentation absolue par
> rapport au bord gauche de la page. Ici, le texte "A block with ..." est
> aligne avec "Text before".

start-indent d�finit l'indentation par rapport au premier conteneur qui 
sert d'aire de r�f�rence (reference-area).
Si j'ai bien lu les specs (et je n'ai fait que les lire, je n'ai pas 
essay�), il faudrait faire quelque chose comme :
  <fo:block-container start-indent="50pt">
    <fo:block>Text before<fo:block start-indent="50pt">A block
with 50pt start-indent within a block with 50pt start-indent</fo:block>Text
after</fo:block>
  </fo:block-container>
Parce que block-container cr�e une reference-area.

> Au passage : j'utilise FOP 0.20.1. Y a-t-il d'autres moteurs de
> transformation xsl fo ?

J'ai entendu parler de RenderX, un produit commercial. Je crois qu'il y en 
a quelques autres mais FOP et RenderX sont les plus aboutis.

Tom.
Technical Details
Message-ID: <5318819.gypaU67uLZ@ltgt.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp3.proxad.net.POSTED!not-for-mail
References: <3B974012.2836F2E2@sophia.inria.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,292d535c01b141cf
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-09-06 05:19:30 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp3.proxad.net.POSTED!not-for-mail
Message-ID: <5318819.gypaU67uLZ@ltgt.net>
From: Thomas Broyer <ptittom+news@free.fr>
Subject: Re: [XSL FO] indentation relative
Newsgroups: fr.comp.text.xml
Mail-Copies-To: nobody
References: <3B974012.2836F2E2@sophia.inria.fr>
Lines: 30
Organization: </>
User-Agent: KNode/0.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
Date: Thu, 06 Sep 2001 12:19:29 GMT
NNTP-Posting-Host: 193.252.183.43
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp3.proxad.net 999778769 193.252.183.43 (Thu, 06 Sep 2001 14:19:29 CEST)
NNTP-Posting-Date: Thu, 06 Sep 2001 14:19:29 CEST