[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

two column list using FOs?

Subject: two column list using FOs?
From: Philip Marden <phil@xxxxxxxxxxxxxxxxxx>
Date: Wed, 3 May 100 01:06:10 -0500 (CDT)
two column list
Hello,

Could someone please help me with the XSL code needed for the
following example?  

Using FOs, I would like to lay out a list into 2 columns so that half
the list items are in the first column and the remaining are in the
second column.  Moreover, this should work for an arbitrary number of
list items.  What is a direct way of coding this in XSL to produce
FOs?

Sample document:
---

<DOC>
<TITLE> Sample Document </TITLE>
<P> A two column list </P>
<OL>
  <LI> showing </LI>
  <LI> the N list items in two columns </LI>
  <LI> so that the first column has </LI>
  <LI> N divided by 2 items </LI>
  <LI> and the other column </LI>
  <LI> has the remaining items. </LI>
</OL>
</DOC>


Sample output:
------

A two column list

  1. showing                     4. N divided by 2 items
  2. the N list items in two     5. and the other column
     columns                     6. has the remaining items.
  3. so that the first column       
     has


The width of the columns is not important as long as it can be
specified. 

Many thanks.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.