WordProcessingML Lists- Changing the XML list template

Alright, in my last post, I sketched out my coming-of-age story with respect to WordML list definitions. You may recall that I mentioned how lists are defined in a template fashion, articulated at the beginning of the document in a <w:lists> element just before <w:styles>. There you find your list definition along with how each list level should be displayed. One of the things I just discovered is that Word only supports 9 list levels. Granted, it's a clearly practical limitation. For example, if you have a bulleted list that requires more than 9 levels of indentation, you are such a level of detail that you really ought to just write a paragraph of text and be done with it. People who need the 10th level probably have PowerPoint slides filled with text rather than actual bullet points as well. There's got to be a correlation there.

Anyway, I decided to mess with the 9th level. By default, it is designed to be lower-case roman numeral, starting with 1. So, the first item in the 9th level would be: i. How did I know this (other than the obvious cheat of looking in the doc)? I'll mention that tomorrow. For now, I want to show that by configured it to use a regular arabic number: 1 and I configured it to indent 720 twips further in than the 6480 one would expect. The changed level definition looks like this:

<w:lvl w:ilvl="8" w:tplc="0409000F" w:tentative="on">

<w:start w:val="1"/>

<w:lvlText w:val="%9."/>

<w:lvlJc w:val="left"/>



<w:tab w:val="list" w:pos="7200" />


<w:ind w:left="7200" w:hanging="360" />



The result is a list that indents farther and uses an arabic numeral rather than a roman one. Now, think of using a transform to create Word files. Knowing how to manipulate the level definitions lets me create differently formatted documents.

 Rock Thought for the day: As you know, I have my Zen Nomad Xtra 40GB, and I am increasingly pleased with the purchase. The more I use it, the more I like it. Looking for an alternative to the iPod? I strongly suggest the Zen Nomad. OK- now, I messed around with the Windows Media encoder so that I could stream my playlists, just as an intellectual enterprise really. I patched the Zen to my sound board, and I stream from there. The songs are not transferred or downloadable, but in a real-world scenario, someone could listen in on what I am jamming to in my office. I also figured out how to switch between that audio source and my Labtec headset (USB) so that I could intro a few of the songs without causing the listeners' players to have to re-buffer. Very cool.

I have been working since 3am- whatever.

Rock on

Skip to main content