I want to loop through the elements in a package in the same order as they appear in the containment tree. Currently I use a foreach loop over the package's owned elements:
#foreach($e in $thePackage.ownedElement)
... do stuff
#end
However, the elements in the ownedElement attribute of the package may not be in the same order as they appear in the containment tree. The latter is defined by the inner elements property but I can't figure out how to access it with VTL code. Any suggestions?
Thanks,
Geoff