comparison xslt/link.xslt @ 3038:f0c2c0458f2b

Regenerated.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 01 Feb 2024 15:25:52 +0400
parents 7e662eae0429
children
comparison
equal deleted inserted replaced
3037:c1d078b13527 3038:f0c2c0458f2b
48 <xsl:template match="links"> 48 <xsl:template match="links">
49 <xsl:for-each select="link"><xsl:sort select="@id"/> 49 <xsl:for-each select="link"><xsl:sort select="@id"/>
50 <a href="{substring-before(@doc, '.xml')}.html#{@id}"><xsl:value-of select="@id"/></a> 50 <a href="{substring-before(@doc, '.xml')}.html#{@id}"><xsl:value-of select="@id"/></a>
51 <xsl:if test="count(../link[@id = current()/@id]) > 1"> 51 <xsl:if test="count(../link[@id = current()/@id]) > 1">
52 <xsl:text> (</xsl:text> 52 <xsl:text> (</xsl:text>
53 <xsl:value-of select="substring-before(substring-after(@doc, '/'), '.xml')"/> 53 <xsl:choose><xsl:when test="contains(@doc, '/')">
54 <xsl:value-of select="substring-before(substring-after(@doc, '/'), '.xml')"/>
55 </xsl:when><xsl:otherwise>
56 <xsl:value-of select="substring-before(@doc, '.xml')"/>
57 </xsl:otherwise></xsl:choose>
54 <xsl:text>)</xsl:text> 58 <xsl:text>)</xsl:text>
55 </xsl:if> 59 </xsl:if>
56 <br/> 60 <br/>
57 </xsl:for-each> 61 </xsl:for-each>
58 </xsl:template> 62 </xsl:template>
60 <xsl:template match="varlinks"> 64 <xsl:template match="varlinks">
61 <xsl:for-each select="link"><xsl:sort select="@id"/> 65 <xsl:for-each select="link"><xsl:sort select="@id"/>
62 <a href="{substring-before(@doc, '.xml')}.html#{@id}"><xsl:apply-templates/></a> 66 <a href="{substring-before(@doc, '.xml')}.html#{@id}"><xsl:apply-templates/></a>
63 <xsl:if test="count(../link[@id = current()/@id and @doc != current()/@doc]) > 0"> 67 <xsl:if test="count(../link[@id = current()/@id and @doc != current()/@doc]) > 0">
64 <xsl:text> (</xsl:text> 68 <xsl:text> (</xsl:text>
65 <xsl:value-of select="substring-before(substring-after(@doc, '/'), '.xml')"/> 69 <xsl:choose><xsl:when test="contains(@doc, '/')">
70 <xsl:value-of select="substring-before(substring-after(@doc, '/'), '.xml')"/>
71 </xsl:when><xsl:otherwise>
72 <xsl:value-of select="substring-before(@doc, '.xml')"/>
73 </xsl:otherwise></xsl:choose>
66 <xsl:text>)</xsl:text> 74 <xsl:text>)</xsl:text>
67 </xsl:if> 75 </xsl:if>
68 <br/> 76 <br/>
69 </xsl:for-each> 77 </xsl:for-each>
70 </xsl:template> 78 </xsl:template>