## Defined variables #set ($bodybg = "#ffffff") #set ($bodyfg = "#000000") #set ($bodylink = "#525D76") #set ($pagebannerbg = "#ffffff") #set ($pagebannerfg = "#625972") #set ($bannerbg = "#726982") #set ($bannerfg = "#ffffff") #set ($subbannerbg = "#9289A2") #set ($subbannerfg = "#ffffff") #set ($tablethbg = "#039acc") #set ($tabletdbg = "#a0ddf0") #document() ## This is where the macro's live #macro ( table $table) #foreach ( $items in $table.getChildren() ) #if ($items.getName().equals("tr")) #tr ($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 ( metaauthor $author $email ) #end #macro ( image $value ) #if ($value.getAttributeValue("width")) #set ($width=$value.getAttributeValue("width")) #end #if ($value.getAttributeValue("height")) #set ($height=$value.getAttributeValue("height")) #end #if ($value.getAttributeValue("align")) #set ($align=$value.getAttributeValue("align")) #end #if ($value.getAttributeValue("usemap")) #set ($usemap=$value.getAttributeValue("usemap")) #end #end #macro ( source $value)
$escape.getText($value.getText())
#end #macro ( subsection $subsection)
$subsection.getAttributeValue("name")
#foreach ( $items in $subsection.getChildren() ) #if ($items.getName().equals("img")) #image ($items) #elseif ($items.getName().equals("source")) #source ($items) #elseif ($items.getName().equals("table")) #table ($items) #else $items #end #end

#end #macro ( section $section)
$section.getAttributeValue("name")
#foreach ( $items in $section.getChildren() ) #if ($items.getName().equals("img")) #image ($items) #elseif ($items.getName().equals("source")) #source ($items) #elseif ($items.getName().equals("table")) #table ($items) #elseif ($items.getName().equals("subsection")) #subsection ($items) #else $items #end #end


#end #macro ( makeProject ) #set ($menus = $project.getChild("body").getChildren("menu")) #foreach ( $menu in $menus )

$menu.getAttributeValue("name")

#end #end #macro (getProjectImage) #set ( $logoString = $project.getChild("logo").getAttributeValue("href") ) $project.getChild( #end #macro (getBannerTitle) #if ( $root.getChild("properties").getChild("bannertitle") ) #set ( $pageBanner = $root.getChild("properties").getChild("bannertitle") ) #else #set ( $pageBanner = $root.getChild("properties").getChild("title").getText() ) #end $pageBanner #end #macro (printMeta $metaElement) #end #macro (document) #set ($authors = $root.getChild("properties").getChildren("author")) #foreach ( $au in $authors ) #metaauthor ( $au.getText() $au.getAttributeValue("email") ) #end #set ($metas = $root.getChildren("meta")) ## Parse meta directives such as ## #foreach ($meta in $metas) #printMeta($meta) #end ## Support for tags. #if ($root.getChild("properties").getChild("base")) #set ($url = $root.getChild("properties").getChild("base").getAttributeValue("href")) #end $project.getChild("title").getText() - $root.getChild("properties").getChild("title").getText()
#getProjectImage() #getBannerTitle()

#projectanchor("Home" "/index.html") #projectanchor("SCA" "/sca_index.html") #projectanchor("SDO" "/sdo_index.html") #projectanchor("DAS" "/das_index.html")
#makeProject() #set ($allSections = $root.getChild("body").getChildren("section")) #foreach ( $section in $allSections ) #section ($section) #end

Apache Incubator Logo Copyright © 2006, The Apache Software Foundation
Apache Tuscany is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Web Services PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
#end