From 72957bcf0c39d6e1de8d985deb9e3c5a1b82e23d Mon Sep 17 00:00:00 2001 From: nmorozov Date: Thu, 24 Aug 2006 14:23:53 +0400 Subject: [PATCH] Removing presentation info from doc model --- xdocs/stylesheets/site.vsl | 114 +++++++++++++++++++------------------------- 1 files changed, 48 insertions(+), 66 deletions(-) diff --git a/xdocs/stylesheets/site.vsl b/xdocs/stylesheets/site.vsl index 0ef8754..2d51d93 100644 --- a/xdocs/stylesheets/site.vsl +++ b/xdocs/stylesheets/site.vsl @@ -16,19 +16,6 @@ limitations under the License. --> - - - ## 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") - #document() @@ -64,14 +51,13 @@ #end #if ($value.getAttributeValue("rowspan")) #set ($rowspan = $value.getAttributeValue("rowspan")) #end - - + + #if ($value.getText().length() != 0 || $value.hasChildren()) $value.getContent() #else   #end - #end @@ -82,14 +68,12 @@ #end #if ($value.getAttributeValue("rowspan")) #set ($rowspan = $value.getAttributeValue("rowspan")) #end - - + #if ($value.getText().length() != 0 || $value.hasChildren()) $value.getContent() #else   #end - #end @@ -122,36 +106,36 @@ #end #end #macro ( source $value) -
- +
+
- - - + + + - + - + - - - + + +
$escape.getText($value.getText())
#end #macro ( subsection $subsection) - - - -
- - $subsection.getAttributeValue("name") - + +
+

+ $subsection.getAttributeValue("name") +

-
+ #foreach ( $items in $subsection.getChildren() ) #if ($items.getName().equals("img")) #image ($items) @@ -163,10 +147,9 @@ #macro ( subsection $subsection) $items #end #end -
+

+ #end @@ -177,14 +160,13 @@ #include($name) #end #macro ( section $section) - -
- - $section.getAttributeValue("name") - + + -
+

+ $section.getAttributeValue("name") +

-
#foreach ( $items in $section.getChildren() ) #if ($items.getName().equals("img")) #image ($items) @@ -198,10 +180,8 @@ #macro ( section $section) $items #end #end -
-

+

#end @@ -211,20 +191,22 @@ #macro ( makeProject ) #set ($menus = $project.getChild("body").getChildren("menu")) #foreach ( $menu in $menus ) -

$menu.getAttributeValue("name")

+
    #foreach ( $item in $menu.getChildren() ) #set ($name = $item.getAttributeValue("name")) -
  • #projectanchor($name $item.getAttributeValue("href"))
  • + - + #foreach ( $subitem in $item.getChildren() ) #set ($name = $subitem.getAttributeValue("name")) - +
    -   #projectanchor($name $subitem.getAttributeValue("href")) -
    + +
    #end -
+ #end #end @@ -233,11 +215,11 @@ #end #macro (getProjectImage) #if ($project.getChild("logo")) #set ( $logoString = $project.getChild("logo").getAttributeValue("href") ) - + #if ( $logoString.startsWith("/") ) -$project.getChild( +$project.getChild( #else -$project.getChild( +$project.getChild( #end #end @@ -280,11 +262,11 @@ #macro (document) #foreach ( $link in $links ) $link #end - + - - + +
@@ -295,30 +277,30 @@ #macro (document) $project.getChild( + alt="$project.getChild("logo").getText()" />
- +
- - -- 1.4.1

+ + #set ($allSections = $root.getChild("body").getChildren("section")) #foreach ( $section in $allSections ) #section ($section) @@ -336,7 +318,7 @@ #macro (document)
-
+
Copyright © 2003-2006, The Apache Software Foundation