equal
deleted
inserted
replaced
298 |
298 |
299 <xsl:template match="section" mode="navbar-name"> |
299 <xsl:template match="section" mode="navbar-name"> |
300 <xsl:value-of select="title/text()"/> |
300 <xsl:value-of select="title/text()"/> |
301 </xsl:template> |
301 </xsl:template> |
302 |
302 |
303 <xsl:template match="section|story|poetry" mode="navbar-link"> |
303 <xsl:template match="section|story|poetry" mode="href"> |
304 <xsl:call-template name="get-id"/> |
304 <xsl:call-template name="get-id"/> |
305 </xsl:template> |
305 </xsl:template> |
306 |
306 |
307 <xsl:template name="navbar-link"> |
307 <xsl:template name="navbar-link"> |
308 <xsl:param name="prefix"></xsl:param> |
308 <xsl:param name="prefix"></xsl:param> |
309 <a> |
309 <a> |
310 <xsl:attribute name="href"> |
310 <xsl:attribute name="href"> |
311 <xsl:apply-templates select="." mode="navbar-link"/> |
311 <xsl:apply-templates select="." mode="href"/> |
312 <xsl:text>.html</xsl:text> |
312 <xsl:text>.html</xsl:text> |
313 </xsl:attribute> |
313 </xsl:attribute> |
314 <xsl:value-of select="$prefix"/> |
314 <xsl:value-of select="$prefix"/> |
315 <xsl:apply-templates select="." mode="navbar-name"/> |
315 <xsl:apply-templates select="." mode="navbar-name"/> |
316 </a><br/> |
316 </a><br/> |
458 <a href="{$href}.html"><xsl:value-of select="docinfo/title"/></a> |
458 <a href="{$href}.html"><xsl:value-of select="docinfo/title"/></a> |
459 </xsl:template> |
459 </xsl:template> |
460 |
460 |
461 <xsl:template match="*" mode="xref"/> |
461 <xsl:template match="*" mode="xref"/> |
462 |
462 |
|
463 <xsl:template match="link"> |
|
464 <xsl:variable name="linkend" select="@linkend"/> |
|
465 <a> |
|
466 <xsl:attribute name="href"> |
|
467 <xsl:apply-templates select="//*[@id=$linkend]" mode="href"/> |
|
468 <xsl:text>.html</xsl:text> |
|
469 </xsl:attribute> |
|
470 <xsl:apply-templates/> |
|
471 </a> |
|
472 </xsl:template> |
|
473 |
463 <xsl:template match="section/title"/> |
474 <xsl:template match="section/title"/> |
464 <xsl:template match="section/subtitle"/> |
475 <xsl:template match="section/subtitle"/> |
465 |
476 |
466 </xsl:stylesheet> |
477 </xsl:stylesheet> |
467 |
478 |