#set ($centralWidth = "83%")
#set ($rightWidth = "10%")
#set ($rightBG = "${relativePath}/images/778899.gif")
#if ($root.getChild("toc"))
#set ($centralWidth = "65%")
#set ($rightWidth = "28%")
#set ($rightBG = "${relativePath}/images/666633.gif")
#end
$project.getChild("title").getText(): $root.getChild("title").getText()
|
|
|
|
|
|
|
#set ($allSections = $root.getChild("body").getChildren("section"))
#foreach ( $section in $allSections )
#section ($section)
#end
|
|
#tableOfContents()
|
|
|
|
|
|
|
Copyright ©2001-2003 ObjectStyle Group |
|
|
|
## Velocity Macros
## Creates mailing list archive placeholder
#macro ( listarch $arch)
#end
#macro ( panel $panel)
$panel.getAttributeValue("name")
$panel.getText()
|
#end
#macro ( table $table)
#foreach ( $items in $table.getChildren() )
#if ($items.getName().equals("tr"))
#tr ($items)
#elseif ($items.getName().equals("list-arch"))
#listarch ($items)
#end
#end
#end
#macro ( tr $tr)
#foreach ( $items in $tr.getChildren() )
#if ($items.getName().equals("td"))
#td ($items)
#elseif ($items.getName().equals("th"))
#th ($items)
#end
#end
#end
#macro ( td $value)
#if ($value.getAttributeValue("colspan"))
#set ($colspan = $value.getAttributeValue("colspan"))
#end
#if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan"))
#end
#if ($value.getText().length() != 0 || $value.hasChildren())
$value.getContent()
#else
#end
|
#end
#macro ( th $value)
#if ($value.getAttributeValue("colspan"))
#set ($colspan = $value.getAttributeValue("colspan"))
#end
#if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan"))
#end
#if ($value.getText().length() != 0 || $value.hasChildren())
$value.getContent()
#else
#end
|
#end
#macro ( projectanchor $name $value )
#if ($value.startsWith("http://"))
$name
#else
$name
#end
#end
#macro ( menuprojectanchor $name $value )
#if ($value.startsWith("http://"))
$name
#else
$name
#end
#end
#macro ( image $value )
#set ($tag = "")
$tag
#end
#macro ( source $value)
#end
#macro ( subsection $subsection)
#if( $subsection.getAttributeValue("anchor") )
#end
$subsection.getAttributeValue("name")
#foreach ( $item in $subsection.getChildren() )
#if ($item.getName().equals("img"))
#image ($item)
#elseif ($item.getName().equals("source"))
#source ($item)
#elseif ($item.getName().equals("panel"))
#panel ($item)
#elseif ($item.getName().equals("table"))
#table ($item)
#elseif ($item.getName().equals("subsection"))
#subsection ($item)
#else
$item
#end
#end
#end
#macro ( section $section)
#if( $section.getAttributeValue("anchor") )
#end
$section.getAttributeValue("name")
#foreach ( $item in $section.getChildren() )
#if ($item.getName().equals("img"))
#image ($item)
#elseif ($item.getName().equals("source"))
#source ($item)
#elseif ($item.getName().equals("panel"))
#panel ($item)
#elseif ($item.getName().equals("table"))
#table ($item)
#elseif ($item.getName().equals("subsection"))
#subsection ($item)
#else
$item
#end
#end
|
#end
#macro ( leftMenu )
#set ($menus = $project.getChildren("menu"))
#foreach ( $menu in $menus )
$menu.getAttributeValue("name")
#foreach ( $item in $menu.getChildren() )
#set ($name = $item.getAttributeValue("name"))
#menuprojectanchor($name $item.getAttributeValue("href"))
#end
#end
#end
#macro ( tableOfContents)
#if ($root.getChild("toc"))
#set ($toc = $project.getChild($root.getChild("toc").getAttributeValue("name")))
#menuprojectanchor($toc.getAttributeValue("name") $toc.getAttributeValue("href"))
TABLE OF CONTENTS:
#foreach ( $item in $toc.getChildren())
#set ($name = $item.getAttributeValue("name"))
#menuprojectanchor($name $item.getAttributeValue("href"))
#if($name == $root.getChild("toc").getAttributeValue("chapter"))
#foreach ( $subitem in $item.getChildren("item"))
#set ($subname = $subitem.getAttributeValue("name"))
#menuprojectanchor($subname $subitem.getAttributeValue("href"))
#end
#end
#end
|
|
#else
|
#end
#end