Unfortunately, the cell value when using a numbered list is not stored in the xml, but calculated by Word when the file is opened, so there is no cell that directly contains its numbering number.
Documentation for Office Open XML file formats such as docx are in ISO/IEC 29500-1:2016(E). The Numbering Part (11.3.11 Numbering Definitions Part) contains a definition for the structure of each unique numbering definition in a docx document.
In the document.xml you sent the first numbering cell has this Paragraph (<w:p/>
) whose Paragraph Properties (<w:pPr/>
) contains a <w:numPr />
element. The XML markup for a list usage involves a reference to a numbering definition via the child elements of the numPr element.
<w:p w14:paraId="3163B08A" w14:textId="390B0962" w:rsidR="0089403A" w:rsidRPr="00AC1015"
w:rsidRDefault="0089403A" w:rsidP="00C52ED8">
<w:pPr>
<w:pStyle w:val="CellBodyGrid" />
<w:numPr>
<w:ilvl w:val="0" />
<w:numId w:val="50" />
</w:numPr>
<w:ind w:left="342" />
</w:pPr>
</w:p>
From this xml we can see <w:ilvl w:val="0" />
and <w:numId w:val="50" />
, which are the values needed to look up the numbering style in numbering.xml.
From section 17.9.3 ilvl (Numbering Level Reference) "This element specifies the numbering level of the numbering definition instance which shall be applied to the parent paragraph."
From section 17.9.18 numId (Numbering Definition Instance Reference) "This element specifies the numbering definition instance which shall be used for the given parent numbered paragraph in the WordprocessingML document."
So, to find the number value in each cell you will have to calculate based on examining the table and calculating the cell's position then using the w:ilv
and w:numId
elements' values to determine the numbering style from the Numbering part.
I hope this helped clear up what's going on here.
Best regards,
Michael Bowen
Microsoft Open Specifications