Yeah I have been trying to think of a good way to explain this, my idea with this code is to get the top level lists in a straightforward way. As you mentioned any lists that are embedded in other lists inherit the style but since I will be traversing the text:list DOM sub-tree from the top level list down to any embedded lists I don't want to consider them here. The only caveat with this approach is any top level lists with no style-name need a default implementation defined style but I think I left a TODO around that.