Here's your code, written using a blend of wikitext, widgets, and HTML :
\define recursiveBuild(root)
<li>$root$<ul>
<$list filter="[field:_compose[$root$]]">
<$macrocall $name="recursiveBuild" root=<<currentTiddler>> />
</$list>
</ul></li>
\end
Put the above into a tiddler tagged with $:/tags/Macro, and then invoke it from any tiddler using:
<<recursiveBuild Foobar>>
(where Foobar is the name of the initial root tiddler)
let me know how it goes...
enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals