cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

List outline numbering alternative

largyres
1-Newbie

List outline numbering alternative

Adepters,

I'm trying to justify a whacky idea here but is anyone else out there
dissatified with traditional DTD embedded lists and out-of-box Styler?

Unsophisticated users, accustomed to word processor outline-numbered and
bullet styles, found them impossible to manipulate--and made my life
miserable before I wrote hundreds of lines of ACL to indent and outdent
embedded numbered and bulleted lists (list, listitems, paras) with a couple
buttons. But we have several other list types with intervening "junk" such
as subheads and flush notes complicating matters.

So why not a level attribute for "flat" listitem elements?




...

In Styler, the listitem numbers can be XPATH expression gentext:

count(preceding-sibling::chklstItem[@level=1])+1

count(preceding-sibling::chklstItem[@level=2])-(count(parent::*/chklstItem[@
level=2])-count(preceding-sibling::chklstItem[@level=1][1]/following-sibling
::chklstItem[@level=2]))+1

count(preceding-sibling::chklstItem[@level=3])-(count(parent::*/chklstItem[@
level=3])-count(preceding-sibling::chklstItem[@level=2][1]/following-sibling
::chklstItem[@level=3]))+1

[Alpha and Roman formatting comes from java number formatting functions and
putting the XPATHs inside UFEs with e-i-c (charlist/supress sup=1, fillval
attloc=sytem-func).]

Releveling is just a matter of changing attributes without worrying about
intervening junk. Purists may object that we can't start the list higher
than 1 or skip levels, but that's easier to control with a few ACL callbacks
than dealing with a user uprising.

- Lou

Lou Argyres
Continuing Education of the Bar - California
300 Frank Ogawa Plaza, Suite 410
Oakland, CA 94612
Lou.Argyres@ceb.ucop.edu
510-302-2097
0 REPLIES 0
Announcements