A great feature, but I am a bit at loss how to implement this in XWiki
#set ($context.tocNumbered = true)
#set ($context.tocData = $tdoc.getTOC(2, 6, true))
didn't do the trick.
This is not implemented yet for XWiki Syntax 2.0.
The code you pasted above is for XWiki Syntax 1.0.
Ah, shame. Hoped there was an easy resolution. Thanks for the swift