#document()
#macro ( makeSectionHeader $value )
#if ( $value.getAttributeValue("name") )
#set ( $titleName = $value.getAttributeValue("name") )
#else
#set ( $titleName = "" )
#end
$titleName
#end
#macro ( makeParagraph $value )
$xmlout.outputString($value)
#end
#macro ( makeSrc $value )
$escape.getText($value.getText())
#end
#macro ( makeLink $value )
TO DO
#end
#macro (document)
$root.getChild("properties").getChild("title").getText() pg
#set ($allSections = $xpath.applyTo("body/section", $root))
#foreach ( $section in $allSections )
#makeSectionHeader($section)
#foreach ( $item in $section.getChildren() )
#if ( $item.getName().equals("p") )
#makeParagraph($item)
#elseif ( $item.getName().equals("source") )
#makeSrc($item)
#end
#end
#end
#end