OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Tabular presentation of segmented lists


Title: Tabular presentation of segmented lists
Hi Ron,
If it is two columns, you might consider using a variablelist instead. It is designed for this purpose.  It will automatically try to adjust the first column to fit the data, and it provides a processing instruction for the left width in case you need to override it. For more information, see:
 
http://www.sagehill.net/docbookxsl/Variablelists.html
 
What's missing is segtitle.  You might have to fake that.  8^)
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Monday, March 19, 2007 12:40 PM
Subject: [docbook-apps] Tabular presentation of segmented lists

I use the following XML to display a segmented list in table form.  The first column has only very limited length data, the second column a long line of text.  When I transform this with XEP 4.9 I get a table OK, but the columns are of equal width.

I need to customize the table to get a narrow first column and the rest of the page for the second column.

How can I do this?

<segmentedlist><title>A Title for the Segmented list Presented as a Table</title>
<?dbfo list-presentation="table"?>
<segtitle>Abcd</segtitle><segtitle>Another title for the second column</segtitle>
<seglistitem><seg>1234</seg><seg>A long line of text here, generally will need to wrap around onto next line</seg></seglistitem>
<seglistitem><seg>5678</seg><seg>Another long line of text here, generally will need to wrap around onto next line</seg></seglistitem>
<seglistitem><seg>9012</seg><seg>And yet another long line of text here, generally will need to wrap around onto next line</seg></seglistitem>
</segmentedlist>
Ron
-- 
Ron Catterall, Phd, DSc                         email: ron@catterall.net
Prolongacion de Hidalgo 140                             http://catterall.net/
San Felipe del Agua                                        tel: +52 951 520 1821
Oaxaca      68020  Mexico                          fax: +1 530 348 8309
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]