#set( $relative-path = "." )
#set( $body-bg = '#ffffff' )
#set( $body-fg = '#000000' )
#set( $body-link = '#525D76' )
#set( $banner-bg = '#EEEEEE')
#set( $banner-fg = '#000000')
#set( $sub-banner-bg = '#828DA6')
#set( $sub-banner-fg = '#ffffff')
#set( $table-th-bg = '#FFEEEE')
#set( $table-td-bg = '#FFEEEE')
#set( $source-color = '#CCFFFF')
#set( $source-font-size = '-1')
## Double quote for convenience
#set ($qq = '"')
## Macro to output argument if test evaluates to true
#macro(ifset $test $output)
#if ( $test )$output#end
#end
#match( "document" )
#set( $project = $node.selectSingleNode("document('xdocs/project.xml')/project" ) )
$project.title - $node.properties.title
#foreach( $n in $node.properties.selectNodes("author") )
#end
## PAGE HEADER
## JAKARTA LOGO
#if( $project.logo )
#set( $alt = $project.logo )
#set( $home = $project.attribute("href") )
#set( $src = $project.logo.attribute( "href" ) )
## PROJECT LOGO
#end
|
## HEADER SEPARATOR
##
|
|
$context.applyTemplates("body/section")
|
|
$context.applyTemplates( $project, "body/menu" )
|
|
Copyright © 1999-2001, Apache Software Foundation
|
#end
#*
* Process a menu for the navigation bar
*#
#match( "menu" )
$attrib.name
|
$context.applyTemplates("item")
|
#end
#*
* Process a menu item for the navigation bar
*#
#match( "item" )
#if( $attrib.href.endsWith("$outputfilename") && !$attrib.href.startsWith("http"))
$attrib.name
#else
#if( $attrib.href.startsWith("http") )
$attrib.name
#else
$attrib.name
#end
#end
#end
#*
* process a documentation section
*#
#match( "section" )
#if ( $attrib.anchor )
#set( $anchor = $attrib.anchor )
#else
#set( $anchor = $attrib.name )
#end
$attrib.name
|
$context.applyTemplates("*")
|
#end
#match( "subsection" )
#if ( $attrib.anchor )
#set( $anchor = $attrib.anchor )
#else
#set( $anchor = $attrib.name )
#end
$attrib.name
|
$context.applyTemplates("*")
|
#end
#match( "source" )
|
$toolbox.htmlescape.getText( $node.value() )
|
|
#end
#match("table")
$context.applyTemplates("*")
#end
#match("tr")
$context.applyTemplates("*")
#end
#match( "td" )
$node.copy( $node.children() )
|
#end
#match( "th" )
$node.copy( $node.children())
|
#end
#match("*")
$node.copy()
#end