jon         00/11/22 15:35:18

  Modified:    examples/anakia/xdocs/stylesheets site.vsl
  Log:
  add attributes to the img tag.
  
  Revision  Changes    Path
  1.4       +11 -1     jakarta-velocity/examples/anakia/xdocs/stylesheets/site.vsl
  
  Index: site.vsl
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/examples/anakia/xdocs/stylesheets/site.vsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- site.vsl  2000/11/22 22:24:32     1.3
  +++ site.vsl  2000/11/22 23:35:16     1.4
  @@ -68,8 +68,18 @@
   #end
   
   #macro ( image $value )
  -    <img src="$relativePath$value.getAttributeValue("src")">
  +#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
  +<img src="$relativePath$value.getAttributeValue("src")" width="$!width" 
height="$!height" align="$!align">
  +#end
  +
   #macro ( projectanchor $name $value )
       <a href="$relativePath$value">$name</a>
   #end
  
  
  

Reply via email to