According to the description of numbered & bulleted lists, a w.p element can have a w.pStyleId element, which references a style that includes a w.num element that points to a w.abstractNumId. In that case, you can determine what indentation level
the w.p element is at by finding the w.ilvl element that has the same pStyleId value as was in the original w.pStyleId (simple, I know).
Here is where I found that description http://msdn.microsoft.com/en-us/library/office/ee922775(v=office.14).aspx#odc_Office14_ta_WorkingWithNumbering_MarkupLinkedToStyles
However, I have found a case where I can follow all of those steps and still end up with an indentation level that is different from what I observe by opening the document in Word. Can someone explain what I'm missing here?
My document has a numbered list, where one of the list elements contains a bulleted sub-list. I expected to see that the elements in the bulleted list would point to an indentation level of 1 (zero-based). That's not what I saw and yet Word still
seems to display the bulleted list at the proper indentation level.
Here is the Main Document element:
<w:p w:rsidR="00043DB5" w:rsidRPr="00233089" w:rsidRDefault="00043DB5" w:rsidP="00233089"><w:pPr><w:pStyle w:val="ListBullet2"/></w:pPr><w:r w:rsidRPr="00233089"><w:t>Thumbs up = agree with no further discussion.</w:t></w:r></w:p>
Here's the relevant style:
<w:style w:type="paragraph" w:styleId="ListBullet2"><w:name w:val="List Bullet 2"/><w:basedOn w:val="BodyText"/><w:rsid w:val="00233089"/><w:pPr><w:numPr><w:numId w:val="36"/></w:numPr><w:tabs><w:tab w:val="clear" w:pos="1620"/><w:tab w:val="num" w:pos="1080"/></w:tabs><w:spacing w:before="60" w:after="60"/><w:ind w:left="1080"/></w:pPr></w:style>
Here's the relevant num element:
<w:num w:numId="36"><w:abstractNumId w:val="24"/>
Here are the relevant parts of the abstractNum:
<w:abstractNum w:abstractNumId="24"><w:nsid w:val="426153D2"/><w:multiLevelType w:val="hybridMultilevel"/><w:tmpl w:val="85E2C95C"/><w:lvl w:ilvl="0" w:tplc="6A7461F6"><w:start w:val="1"/><w:numFmt w:val="bullet"/><w:pStyle w:val="ListBullet2"/><w:lvlText w:val=""/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="num" w:pos="1620"/></w:tabs><w:ind w:left="1620" w:hanging="360"/></w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:hAnsi="Wingdings" w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="1" w:tplc="04090003" w:tentative="1"><w:start w:val="1"/><w:numFmt w:val="bullet"/><w:lvlText w:val="o"/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab w:val="num" w:pos="1440"/></w:tabs><w:ind w:left="1440" w:hanging="360"/></w:pPr><w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New" w:cs="Courier New" w:hint="default"/></w:rPr></w:lvl>
ListBullet2 is clearly in the element where ilvl is 0. Is there some other way I should know that this bulleted list item is and the 2nd indentation level? I can't seem to find any indication of it in this document XML.
Thanks for your help