Files
59a1b0b488
continuous-integration/drone/push Build is passing
Feat/landing ada (#5907)
Co-authored-by: Tobias Diekershoff <tobiasd@fsfe.org>
Co-authored-by: Matthias Kirschner <mk@fsfe.org>
Reviewed-on: #5907
Co-authored-by: silviarbgl <silviarbgl@fsfe.org>
Co-committed-by: silviarbgl <silviarbgl@fsfe.org>
2026-07-27 13:28:38 +00:00

43 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../../fsfe.xsl"/>
<!-- ==================================================================== -->
<!-- Dynamic list of languages for the book -->
<!-- ==================================================================== -->
<xsl:template match="book-languages">
<xsl:for-each select="/buildinfo/document/set/language">
<xsl:sort select="@value" order="ascending"/>
<xsl:variable name="language" select="@value"/>
<p>
<xsl:value-of select="$language"/>
</p>
<ul>
<xsl:for-each select="publisher">
<li>
<p>
<xsl:call-template name="gettext">
<xsl:with-param name="id" select="'publisher'" />
</xsl:call-template>
<xsl:text>: </xsl:text>
<a>
<xsl:attribute name="href">
<xsl:value-of select="url"/>
</xsl:attribute>
<xsl:value-of select="name"/>
</a>
</p>
<p>
ISBN: <xsl:value-of select="number"/>
</p>
<xsl:if test="affiliate != ''">
<p><em>
<xsl:value-of select="affiliate"/>
</em></p>
</xsl:if>
</li>
</xsl:for-each>
</ul>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>