TOC - numbering of sublists

Hello,
A possibility of numbering of sublists is provided here, by adding a StyleSheetExtension with
ol { list-style-type: none; counter-reset: say; }
ol li:before { counter-increment: say; content: counters(say,“.”) ". "; }

It works, but I noticed that once this is activated, the whole path also gets this numbering too:

Is it supposed to be so?
Thank you.