multiple layered list

View: New views
2 Messages — Rating Filter:   Alert me  

multiple layered list

by David_777 :: Rate this Message:

| View Threaded | Show Only this Message

How do I create a multiple layered list such as this (output):

* Car
   - Tires
   - Windows
   - Engine
      > 4 Cylinder
      > 6 Cylinder
      > 8 Cylinder

Thanks!
~David

Re: multiple layered list

by Tony Graham-3 :: Rate this Message:

| View Threaded | Show Only this Message


On Tue, Aug 12 2008 21:23:51 +0100, darkfins@... wrote:
> How do I create a multiple layered list such as this (output):
>
> * Car
>    - Tires
>    - Windows
>    - Engine
>       > 4 Cylinder
>       > 6 Cylinder
>       > 8 Cylinder

The example for how to do lists is at
http://www.w3.org/TR/xsl11/#d0e12424.

You would want to put your symbol as the content of the fo:block in the
fo:list-item-label.

For successive list levels, you could increase the start-indent of the
fo:list-item-label for the nested list items.

Regards,


Tony Graham                         Tony.Graham@...
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2