adding li/@id attribute so that ToC entries can be linked to