diff xsls/content.xsls @ 757:7b8d659687b8

Use the "id" attribute instead of placing "a name" in the wrong place, to create anchors to list items.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 12 Nov 2012 07:11:56 +0000
parents 3b0ea2ab2b24
children 9155b937f8c1
line wrap: on
line diff
--- a/xsls/content.xsls
+++ b/xsls/content.xsls
@@ -88,8 +88,8 @@ X:stylesheet {
         X:text disable-output-escaping="yes" {&lt;p&gt; }
     }
 
-    X:template = "listitem[@id]" { <a name="{@id}" /> <li> !!; </li> }
     X:template = "listitem" { <li> !!; </li> }
+    X:template = "listitem[@id]" { <li id="{@id}"> !!; </li> }
     
     X:template = "list[@type='tag']" {
         X:if "@compact = 'yes'" {