@ensure_tag(['<STR_LIT:p>'])<EOL>def get_numId(li, w_namespace):
numIds = li.xpath('<STR_LIT>', namespaces=li.nsmap)<EOL>if len(numIds) == <NUM_LIT:0>:<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT>return numIds[<NUM_LIT:0>].get('<STR_LIT>' % w_namespace)<EOL>
The numId on an li tag maps to the numbering dictionary along side the ilvl
to determine what the list should look like (unordered, digits, lower
alpha, etc)