{ declare function local:tocRender($map){
LABEL : {map:get($map, 'label')}
PATH : {map:get($map, 'fullPath')}
{ if(map:contains($map,'dirs')) then
{ try{local:htmlSubDirs2(map:get($map,'dirs'))}catch * {()} }
}
}; }
Title
{ for $map in map:get($toc_map,'toc') return local:tocRender($toc_map) }