I have a main document which contains a secondary documents table of contents. I'm using the example given in the first half of this answer.

My secondary ToC doesn't use section numbering. I assume this is because I haven't defined the necessary bits for toca, but I'm not sure what those bits are.

Here's a minimal, working example:

\documentclass{report}
\usepackage{tocloft}
\makeatletter
\newcommand\tableofcontentsA{%
\@starttoc{toca}%
}
\makeatother

\begin{document}
\tableofcontents

\section{Main introduction}
% These are all defined in the same page, so disable page numbering    \cftpagenumbersoff{chapter}
\cftpagenumbersoff{section}
\cftpagenumbersoff{subsection}

\tableofcontentsA
\section{Main Conclusion}

\end{document}


Here's what it produces:

I'd like to have something more like this:

1 - Main intro
2 - Example ToC
1 - Intro
1.1 - foo
1.2 - bar
2 - Baz
2.1 - barbar
3 - Main Conclusion


Here is how I would go for it:

\documentclass{report}
\usepackage{tocloft}

\makeatletter
\newcommand\tableofcontentsA{%
\indent
\@starttoc{toca}%
}
\makeatother

\newcounter{tocachap}
\setcounter{tocachap}{0}

\newcounter{tocasect}[tocachap]
\setcounter{tocasect}{0}
\renewcommand{\thetocasect}{\thetocachap.\arabic{tocasect}}

\par}

\par}

\renewcommand{\thesection}{\arabic{section}}

\begin{document}
\tableofcontents

\section{Main introduction}