Mercurial > hg > nginx-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
756:7b9a463b58f6 | 757:7b8d659687b8 |
---|---|
86 <ol> !!; </ol> | 86 <ol> !!; </ol> |
87 } | 87 } |
88 X:text disable-output-escaping="yes" {<p> } | 88 X:text disable-output-escaping="yes" {<p> } |
89 } | 89 } |
90 | 90 |
91 X:template = "listitem[@id]" { <a name="{@id}" /> <li> !!; </li> } | |
92 X:template = "listitem" { <li> !!; </li> } | 91 X:template = "listitem" { <li> !!; </li> } |
92 X:template = "listitem[@id]" { <li id="{@id}"> !!; </li> } | |
93 | 93 |
94 X:template = "list[@type='tag']" { | 94 X:template = "list[@type='tag']" { |
95 X:if "@compact = 'yes'" { | 95 X:if "@compact = 'yes'" { |
96 <dl class="compact"> !!; </dl> | 96 <dl class="compact"> !!; </dl> |
97 } else { | 97 } else { |