If you have all the galleries under document with ID 48, you need to do following:
Actually because you want the first level to be wrapped in "source" tag and each below that wrapped in "subgallery" tag, you need 2 wayfinder calls, otherwise one should have been enough. I don’t know if this works (I only write it, you have to debug it), but it’s a start.
In the XML document, have the following call:
[!Wayfinder? &startId=`48` &level=`1` &outerTpl=`wfMaxiOuterSource` &rowTpl=`wfMaxiRowSource`!]
wfMaxiOuterSource chunk:
<response>
[+wf.wrapper+]
</response>
wfMaxiRowSource chunk:
<source id="[+wf.docid+]">
[!Wayfinder? &startId=`[+wf.docid+]` &level=`1` &outerTpl=`wfMaxiOuterSubgallery` &rowTpl=`wfMaxiRowSubgallery`!]
</source>
wfMaxiOuterSubgallery chunk (empty):
wfMaxiRowSubgallery chunk:
<subgallery id="[+wf.docid+]">
[!MaxiGallery? &view_gallery=`[+wf.docid+]` &galleryOuterTpl=`maxiOuter` &galleryPictureTpl=`maxiGalleryPic`!]
</subgallery>
maxiOuter chunk:
maxiGalleryPic chunk:
<image="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]">
<title>[+maxigallery.picture.title:htmlent+]</title>