Mercurial > hg > nginx-site
diff xslt/books.xslt @ 1658:ae713f8acaca
Two Japanese books.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 24 Feb 2016 15:42:57 +0000 |
parents | c454373427ef |
children | 4a54e7fc6f4d |
line wrap: on
line diff
--- a/xslt/books.xslt Wed Feb 24 18:06:22 2016 +0300 +++ b/xslt/books.xslt Wed Feb 24 15:42:57 2016 +0000 @@ -18,8 +18,13 @@ <td> <xsl:text>title: </xsl:text> <a href="{@link}"><xsl:value-of select="@title"/></a> <br/> - <xsl:text>author: </xsl:text> - <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> <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>      </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"/>