view xsls/books.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 81ad082bc837
children ae713f8acaca
line wrap: on
line source

<!--
  Copyright (C) Igor Sysoev
  Copyright (C) Nginx, Inc.
  -->

X:stylesheet {

X:template = "book" {

    <table><tr>

    <td bgcolor="#EEEEEE">
    <a href="{@link}">
    <img src="{@cover}" alt="" style="padding: 2pt;" border="0"/>
    </a>
    </td>

    <td>
    X:text {title: } <a href="{@link}">!{@title}</a> <br/>
    X:text {author: }
    X:if "@site" { <a href="{@site}">!{@author}</a> } else { !{@author} } <br/>
    X:if "@translator" { X:text {translator: } !{@translator} <br/> }
    X:if "@publisher" { X:text {publisher: } !{@publisher} <br/> }
    X:text {language: } !{@lang}
    </td>

    </tr></table>
}

}