## ## Content Stylesheet for Printable docs ## ## Defined variables #set ($bodybg = "#ffffff") #set ($bodyfg = "#000000") #set ($bodylink = "#525D76") #set ($bannerbg = "#525D76") #set ($bannerfg = "#ffffff") #set ($subbannerbg = "#828DA6") #set ($subbannerfg = "#ffffff") #set ($tablethbg = "#039acc") #set ($tabletdbg = "#a0ddf0") #set ($notebackground = "#bbbb00") #set ($space = " ") #set ($space = $space.charAt(0)) #set ($udsc = "_") #set ($udsc = $udsc.charAt(0)) #set ($year = $date.getYear()+1900) ## ## Printable document settings #set ($imgdir = "$relativePath/../docs/images") #set ($cssdir = "$relativePath/../docs/css") #set ($sshotdir = "$imgdir/screenshots") #document() ## This is where the macros live #macro ( sectionlink $anchor) #if($anchor)#end #end #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.getChildren().size() > 0) #runloop($value) #else   #end #end #macro ( th $value) #set ($colspan = $value.getAttributeValue("colspan")) #set ($rowspan = $value.getAttributeValue("rowspan")) #if ($value.getText().length() != 0 || $value.getChildren().size() > 0) $value.content #else   #end #end #macro ( projectanchor $name $value ) #if ($value.startsWith("http://")) $name #elseif ($value.startsWith("/site")) $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 #end #macro ( code $value) #runloop($value)## #end #macro ( source $value)
#runloop($value)
#end #macro (properties $properties)

Parameters

#foreach ($items in $properties.getChildren("property")) #end
AttributeDescriptionRequired
$items.getAttributeValue("name") #runloop($items) #if("$!items.getAttributeValue('required')" != "") $items.getAttributeValue("required") #else No #end
#end #macro (seeAlso $seeAlso)

See Also:

#end #macro (figure $figure) #set ($width = "") #set ($width = $figure.getAttributeValue('width') ) #set ($height = "") #set ($height = $figure.getAttributeValue('height') ) #set ($dim= "") #if ("$!width" != "") #set ($dim = "width='$width' height='$height'") #end

#runloop($figure)
#end #macro (example $example)

$example.getAttributeValue("title")

#runloop($example) #end #macro (note $note)

#runloop($note)

#end #macro (scope $scope) #if ($scope.getText() == "")
scope #else $scope.getText() #end #end ## #macro ( bugzilla $id) Bug $id.getText() #end #macro ( pullrequest $id) Pull request #$id.getText()## #end #macro ( rfc $id) #if($id.getText()) $id.getText()## #else RFC $id.getAttributeValue('link')## #end #end ## Shorthand - automatically adds " - " before remaining text #macro ( bug $id) #bugzilla($id) - ## #end ## Shorthand - automatically adds " - " before remaining text #macro ( pr $id) #pullrequest($id) - ## #end #macro ( contributor $id) Contributed by $id.getAttributeValue("name") <$id.getAttributeValue("mail")> #end #macro ( ch_section $section)

$section.getText()

#end #macro ( ch_category $category)

$category.getText()

#end #macro ( ch_title $title)
$title.getText()
#end #macro (description $node)
#runloop($node)
#end #macro (unknown $node) #if($node.getName() == "note") #note($node) #elseif($node.getName() == "complink") #complink($node) #elseif($node.getName() == "funclink") #funclink($node) #elseif($node.getName() == "figure") #figure($node) #elseif ($node.getName() == "links") #seeAlso ($node) #elseif ($node.getName() == "properties") #properties ($node) #elseif ($node.getName() == "example") #example ($node) #elseif ($node.getName().equals("source")) #source ($node) #elseif ($node.getName().equals("code")) #code ($node) #elseif ($node.getName().equals("table")) #table ($node) #elseif ($node.getName().equals("component")) #component($node) #elseif ($node.getName().equals("subsection")) #subsection ($node) #elseif ($node.getName().equals("scope")) #scope ($node) #elseif ($node.getName().equals("bugzilla")) #bugzilla ($node) #elseif ($node.getName().equals("bug")) #bug ($node) #elseif ($node.getName().equals("pr")) #pr ($node) #elseif ($node.getName().equals("rfc")) #rfc ($node) #elseif ($node.getName().equals("contributor")) #contributor ($node) #elseif ($node.getName().equals("ch_section")) #ch_section ($node) #elseif ($node.getName().equals("ch_category")) #ch_category ($node) #elseif ($node.getName().equals("ch_title")) #ch_title ($node) #elseif ($node.getName().equals("menuchoice")) #menuchoice ($node) #elseif ($node.getName().equals("shortcut")) #shortcut ($node) #elseif ($node.getName().equals("keycombo")) #keycombo ($node) #elseif ($node.getName().equals("keysym")) #keysym ($node) #elseif ($node.getName().equals("guimenuitem")) #guimenuitem ($node) #elseif ($node.getName().equals("description")) #description ($node) #else #outputTag($node) #runloop($node) #outputEndTag($node) #end #end #macro (complink $complink) $complink.getAttributeValue("name")## #end #macro (funclink $funclink) $funclink.getAttributeValue("name")## #end #macro (outputTag $tag) <$tag.getName()#getAtts($tag)>## #end #macro (getAtts $tag) #foreach ($att in $tag.getAttributes()) $att.getName()="$att.getValue()"#end## #end #macro (outputEndTag $tag) ## #end #macro (menuchoice $items) #foreach ($item in $items.getChildren("guimenuitem"))#guimenuitem($item)#if ($foreach.hasNext) → #end#end #foreach ($item in $items.getChildren("shortcut")) #shortcut($item) #end #end #macro (guimenuitem $item)$item.getText()#end #macro (shortcut $shortcut) (#foreach ($keycombo in $shortcut.getChildren("keycombo"))#keycombo ($keycombo)#end) #end #macro (keycombo $combo)#foreach ($key in $combo.getChildren("keysym"))#keysym($key)#if ($foreach.hasNext) + #end#end#end #macro (keysym $keysym)$keysym.getText()#end #macro (runloop $itemToLoop) #foreach ($node in $itemToLoop.getContent()) #if($node.getClass().getName().indexOf("Element") > -1) #unknown($node)## #else $escape.getText($node.getText())## #end #end #end #macro ( component $component) #set ($width = "") #set ($width = $component.getAttributeValue('width') ) #set ($height = "") #set ($height = $component.getAttributeValue('height') ) #set ($dim= "") #if ("$!width" != "") #set ($dim = "width='$width' height='$height'") #end #set ($screenshot = "") #set ($screenshot = $component.getAttributeValue('screenshot') ) #if($component.getAttribute("useinstead")) #end
#set ($was = "") #set ($was = $component.getAttributeValue("was")) #if ("$!was" != "") #set ($was = " (was: $was)") #end

$!component.getAttributeValue("index") $component.getAttributeValue("name")$!was

*** This element is deprecated. Use $component.getAttributeValue("useinstead") instead ***
#foreach ( $items in $component.getChildren() ) #if ($items.getName().equals("description")) #runloop($items) #if ("$!screenshot" != "")

Control Panel

#end #else #unknown($items) #end #end


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

#end #macro (pagelinks) #if (("$!next" != "") || ("$!prev" != "")) #if ("$!next" != "") #end #if ("$!prev" != "") #end
Index
Next
Prev
#end #end #macro ( section $section)
#set ($anchor = $section.getAttributeValue("anchor")) #if($anchor)#end$section.getAttributeValue("name")#if($anchor)#end
#foreach ( $items in $section.getChildren() ) #if ($items.getName().equals("img")) #image ($items) #else #unknown($items) #end #end


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

$menu.getAttributeValue("name")

#end #end #macro (makeIndex $subsections) #set ($level2 = $root.getAttributeValue("index-level-2")) ## Should we display numbers for index level 2 ? (useful for checking numbering) #set ($index2 = $root.getAttributeValue("index-numbers")) #set ($colbreak = $root.getAttributeValue("colbreak")) #if ("$!colbreak" != "")
#end
    #foreach ($sect in $subsections) #if (("$!colbreak" != "") && ($sect.getAttributeValue("name").startsWith("$colbreak")))
    #end
  • $sect.getAttributeValue("name")
  • #if ("$!level2" != "no" and !$sect.getChildren().isEmpty())
      #foreach ($comp in $sect.getChildren("component"))
    • #if ("$!index2" == "yes") $comp.getAttributeValue("index") #end #set ($was = $comp.getAttributeValue("was")) #if ("$!was" != "") #set ($was = " (was: $was)") #end $comp.getAttributeValue("name")$!was
    • #end
    #end #end
#if ("$!colbreak" != "")
#end #end #macro (getProjectImage) #if ($project.getChild("logo")) #set ( $logoString = $project.getChild("logo").getAttributeValue("href") ) #set ( $logoHeight = $project.getChild("logo").getAttributeValue("height") ) #set ( $logoWidth = $project.getChild("logo").getAttributeValue("width") ) #if ( $logoString.startsWith("/") ) $project.getChild( #else $project.getChild( #end #else #end #end #macro (document) ## ====================================================================== ## Main Page Section --> ## ====================================================================== #set ($authors = $root.getChild("properties").getChildren("author")) #foreach ( $au in $authors ) #metaauthor ( $au.getText() $au.getAttributeValue("email") ) #end #set ($next = "") #set ($next = $root.getAttributeValue("next")) #set ($prev = "") #set ($prev = $root.getAttributeValue("prev")) #set ($id = "") #set ($id = $root.getAttributeValue("id")) $project.getChild("title").getText() - $root.getChild("properties").getChild("title").getText() ## #getProjectImage()

#pagelinks()
#if ($root.getAttributeValue("index") == "yes") #makeIndex($root.getChild("body").getChildren("section")) #end #set ($allSections = $root.getChild("body").getChildren("section")) #foreach ( $section in $allSections ) #section ($section) #end
#pagelinks()

#if ("$!id" != "") #if ("$!id" != "") #end
#else #end Copyright © 1999-$year, Apache Software Foundation $id
Apache, Apache JMeter, JMeter, the Apache feather, and the Apache JMeter logo are trademarks of the Apache Software Foundation.
#end