You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/06/22 17:00:48 UTC
cvs commit: jakarta-avalon-excalibur/site/src/stylesheets docs.vsl templates.vm
donaldp 2002/06/22 08:00:48
Modified: site/src/stylesheets docs.vsl templates.vm
Log:
Made some fixes to stylesheets so that they work in all circumstances.
Revision Changes Path
1.2 +33 -1 jakarta-avalon-excalibur/site/src/stylesheets/docs.vsl
Index: docs.vsl
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/site/src/stylesheets/docs.vsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- docs.vsl 17 Jun 2002 11:39:54 -0000 1.1
+++ docs.vsl 22 Jun 2002 15:00:48 -0000 1.2
@@ -7,11 +7,43 @@
#document()
## end the processing
+#macro ( subsection $subsection)
+ <div class="h4">
+ #if ( $subsection.getAttributeValue("anchor") )
+ #set ($anchor = $subsection.getAttributeValue("anchor"))
+ #else
+ #set ($anchor = $subsection.getAttributeValue("name"))
+ #end
+ <h4><a name="$anchor">$subsection.getAttributeValue("name")</a></h4>
+ #foreach ( $items in $subsection.getChildren() )
+ #copy($items)
+ #end
+ </div>
+#end
+
+#macro ( section $section)
+ <div class="h3">
+ #if ( $section.getAttributeValue("anchor") )
+ #set ($anchor = $section.getAttributeValue("anchor"))
+ #else
+ #set ($anchor = $section.getAttributeValue("name"))
+ #end
+ <h3><a name="$anchor">$section.getAttributeValue("name")</a></h3>
+ #foreach ( $items in $section.getChildren() )
+ #if ($items.getName().equals("subsection"))
+ #subsection ($items)
+ #else
+ #copy($items)
+ #end
+ #end
+ </div>
+#end
+
#macro (document)
#header
#set ($allSections = $root.getChild("body").getChildren("section"))
#foreach ( $section in $allSections )
- #section $section
+ #section ($section)
#end
#footer
#end
1.2 +0 -32 jakarta-avalon-excalibur/site/src/stylesheets/templates.vm
Index: templates.vm
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/site/src/stylesheets/templates.vm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- templates.vm 17 Jun 2002 11:39:54 -0000 1.1
+++ templates.vm 22 Jun 2002 15:00:48 -0000 1.2
@@ -58,38 +58,6 @@
</html>
#end
-#macro ( subsection $subsection)
- <div class="h4">
- #if ( $subsection.getAttributeValue("anchor") )
- #set ($anchor = $subsection.getAttributeValue("anchor"))
- #else
- #set ($anchor = $subsection.getAttributeValue("name"))
- #end
- <h4><a name="$anchor">$subsection.getAttributeValue("name")</a></h4>
- #foreach ( $items in $subsection.getChildren() )
- #copy($items)
- #end
- </div>
-#end
-
-#macro ( section $section)
- <div class="h3">
- #if ( $section.getAttributeValue("anchor") )
- #set ($anchor = $section.getAttributeValue("anchor"))
- #else
- #set ($anchor = $section.getAttributeValue("name"))
- #end
- <h3><a name="$anchor">$section.getAttributeValue("name")</a></h3>
- #foreach ( $items in $section.getChildren() )
- #if ($items.getName().equals("subsection"))
- #subsection ($items)
- #else
- #copy($items)
- #end
- #end
- </div>
-#end
-
#macro ( table $table)
#set ($rowcount = 1)
<table cellpadding="3" cellspacing="2" border="1" width="100%">
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>