comparison xsls/menu.xsls @ 408:202e4424cab8

Unbreak menus.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 13 Feb 2012 12:23:39 +0000
parents 61e04fc01027
children be54c443235a
comparison
equal deleted inserted replaced
407:7d9b9f26231c 408:202e4424cab8
51 } 51 }
52 } 52 }
53 } 53 }
54 54
55 55
56 X:template = "menu/item[starts-with(@href, 'http://')]" { 56 X:template = "menu/item[starts-with(@href, 'http://') or starts-with(@href, 'https://')]" {
57 <a href="{@href}"> !{ normalize-space(text()) } </a> 57 <a href="{@href}"> !{ normalize-space(text()) } </a>
58 X:if "@lang" { X:text { [} !{@lang} X:text {]}} 58 X:if "@lang" { X:text { [} !{@lang} X:text {]}}
59 <br/> 59 <br/>
60 } 60 }
61 61