geirm       02/01/28 11:08:03

  Modified:    xdocs/stylesheets site.vsl
  Log:
  Added Ceki's additional meta stuff
  
  Revision  Changes    Path
  1.24      +16 -0     jakarta-site2/xdocs/stylesheets/site.vsl
  
  Index: site.vsl
  ===================================================================
  RCS file: /home/cvs/jakarta-site2/xdocs/stylesheets/site.vsl,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- site.vsl  4 Jan 2002 12:38:37 -0000       1.23
  +++ site.vsl  28 Jan 2002 19:08:02 -0000      1.24
  @@ -215,6 +215,11 @@
   #end
   #end
   
  +#macro (printMeta $metaElement)
  +<meta #set ($attribs = $metaElement.getAttributes())
  +#foreach ($a in $attribs) $a.getName()="$a.getValue()" #end />
  +#end
  +
   #macro (document)
       <!-- ====================================================================== -->
       <!-- Main Page Section -->
  @@ -228,6 +233,12 @@
                   #metaauthor ( $au.getText() $au.getAttributeValue("email") )
               #end
   
  +           #set ($metas = $root.getChildren("meta"))
  +
  +            ##    Parse meta directives such as
  +            ##    <meta name="keyword" content="jakarta, java"/>
  +            #foreach ($meta in $metas) #printMeta($meta) #end
  +
               <title>$project.getChild("title").getText() - 
$root.getChild("properties").getChild("title").getText()</title>
           </head>
   
  @@ -269,3 +280,8 @@
           </body>
       </html>
   #end
  +
  +
  +
  +
  +
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to