W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2001

Re: xsl:fo and tabstops

From: Sebastian Rahtz <sebastian.rahtz@computing-services.oxford.ac.uk>
Date: Thu, 13 Dec 2001 20:35:01 +0000
To: Mikko Peltonen <mpeltonen@myrealbox.com>
Cc: www-xsl-fo@w3.org
Message-ID: <20011213203501.GE28375@spqr.oucs.ox.ac.uk>
On Wed, Dec 26, 2001 at 10:20:22PM +0200, Mikko Peltonen wrote:
> 
> Could anyone help me with a problem of formatting tabstops with xsl:fo.
> Consider for example the following XML:
> 
> <paragraph tabstops="2in 4in">
>     <line>key1&#x9;value1&#x9;value2</line>
>     <line>longerkey2&#x9;value3&#x9;value4</line>
> </paragraph>
> 
> How to format this in xsl:fo so that values 1 and 3 and values 2 and 4 would
> line up in same column as expected?

use a table. forget tabstops - they were last a good idea in about 1948,
and should be banished from the world. 

all you have to do is break up the contents of line by tab character,
and put them in table cells. or is that what you are asking, how
to do that?

send the XML back whence it came with a request for better markup....

-- 
Sebastian Rahtz      OUCS Information Manager
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
Received on Thursday, 13 December 2001 15:35:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT