The depth of the entries in a Table of Contents is given as a level, see Section 26.2 for more about levels. The specification is in the attribute
/publication/common/tableofcontents/@level
with a whole number as the value. A value of 0 is used to indicate that no Table of Contents is desired. Absent this setting, reasonable defaults are supplied, which can vary by conversion and document type.