view xslt/books.xslt @ 2060:237b67ef69a6

Improved win32 build instructions. Added "--with-openssl-opt=no-asm" argument which is required since OpenSSL 1.0.2, as OpenSSL started to use assembler by default in 1.0.0 and then broke builds with MASM in OpenSSL 1.0.2 (ticket #1396). While here, added "--with-debug", added missing "--http-scgi-temp-path" and "--http-uwsgi-temp-path", updated OpenSSL to 1.0.2l, switched to slightly more readable one-argument-per-line style in configure example, added indentation to continuation lines, removed useless "--builddir=objs" argument ("objs" is the default), and removed useless "-f objs/Makefile" argument in nmake (nginx generates appropriate Makefile in the current directory).
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 17 Oct 2017 17:57:36 +0300
parents 4a54e7fc6f4d
children
line wrap: on
line source

<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) Igor Sysoev
  Copyright (C) Nginx, Inc.
  -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="book">

    <table><tr>

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

    <td>
    <xsl:text>title: </xsl:text> <a href="{@link}"><xsl:value-of select="@title"/></a> <br/>
    <xsl:choose><xsl:when test="@author2"> <xsl:text>authors: </xsl:text> </xsl:when><xsl:otherwise> <xsl:text>author: </xsl:text> </xsl:otherwise></xsl:choose>
    <xsl:choose><xsl:when test="@site"> <a href="{@site}"><xsl:value-of select="@author"/></a> </xsl:when><xsl:otherwise> <xsl:value-of select="@author"/> </xsl:otherwise></xsl:choose>
    <xsl:if test="@author2">
        <xsl:text>,</xsl:text> <br/> <xsl:text>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</xsl:text>
        <xsl:choose><xsl:when test="@site2"> <a href="{@site2}"><xsl:value-of select="@author2"/></a> </xsl:when><xsl:otherwise> <xsl:value-of select="@author2"/> </xsl:otherwise></xsl:choose>
    </xsl:if>
    <br/>
    <xsl:if test="@translator"> <xsl:text>translator: </xsl:text> <xsl:value-of select="@translator"/> <br/> </xsl:if>
    <xsl:if test="@publisher"> <xsl:text>publisher: </xsl:text> <xsl:value-of select="@publisher"/> <br/> </xsl:if>
    <xsl:text>language: </xsl:text> <xsl:value-of select="@lang"/> <br/>
    <xsl:text>year: </xsl:text> <xsl:value-of select="@year"/>
    </td>

    </tr></table>
</xsl:template>

</xsl:stylesheet>