Index: site-author/stylesheets/site.vsl
===================================================================
--- site-author/stylesheets/site.vsl	(revision 1182014)
+++ site-author/stylesheets/site.vsl	(working copy)
@@ -127,37 +127,24 @@
 #else
 #set ($heading = "")
 #end
+## add id="xyz" as link target rather than <a name="xyz">
+#set ($tmp = "$!section.getAttributeValue('id')")
+#if ($tmp != "")#set ($id=" id='$tmp'")#else#set ($id="")#end
 #if ($level == 1)
-<h2><img src="$relativePath/images/redarrow.gif" />
-#if ($section.getAttributeValue("id"))
-   <a name="$section.getAttributeValue("id")">$heading</a>
-#else
+<h2$id><img src="$relativePath/images/redarrow.gif" />
    $heading
-#end
 </h2>
 #elseif ($level == 2)
-<h3>
-#if ($section.getAttributeValue("id"))
-   <a name="$section.getAttributeValue("id")">$heading</a>
-#else
+<h3$id>
    $heading
-#end
 </h3>
 #elseif ($level == 3)
-<h4>
-#if ($section.getAttributeValue("id"))
-   <a name="$section.getAttributeValue("id")">$heading</a>
-#else
+<h4$id>
    $heading
-#end
 </h4>
 #else
-<h5> 
-#if ($section.getAttributeValue("id")) 
-   <a name="$section.getAttributeValue("id")">$heading</a> 
-#else 
-   $heading 
-#end 
+<h5$id>
+   $heading
 </h5> 
 #end
 <div class="section-content">
