def p_content(self, content):
        '''content : TITLE opttexts VERSION opttexts sections
                   | TITLE STATESTAG VERSION opttexts states_sections'''
        content[0] = self.doctype(content[1], content[3], content[4], content[5])
        if self.toc:
            self.toc.set_articles([a for a in content[0].sections if isinstance(a, Article)])