enabling id for headings from title of p, div, vid-section

This commit is contained in:
vv01f 2015-09-26 00:18:50 +02:00
parent db1cc14fbb
commit a8dfde1475
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@
<xsl:if test="@title"> <xsl:if test="@title">
<h3> <h3>
<xsl:call-template name="copy-id"/> <xsl:call-template name="copy-id"/>
<xsl:attribute name="id"><xsl:value-of select="translate(@title, ' ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞŸŽŠŒ', '-abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')"/></xsl:attribute>
<xsl:value-of select="@title"/> <xsl:value-of select="@title"/>
</h3> </h3>
</xsl:if> </xsl:if>
@ -49,6 +50,7 @@
<xsl:if test="@title"> <xsl:if test="@title">
<h3> <h3>
<xsl:call-template name="copy-id"/> <xsl:call-template name="copy-id"/>
<xsl:attribute name="id"><xsl:value-of select="translate(@title, ' ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞŸŽŠŒ', '-abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')"/></xsl:attribute>
<xsl:value-of select="@title"/> <xsl:value-of select="@title"/>
</h3> </h3>
</xsl:if> </xsl:if>
@ -553,6 +555,7 @@
<xsl:template name="video-resource"> <xsl:template name="video-resource">
<section class="video-resource"> <section class="video-resource">
<h4> <h4>
<xsl:attribute name="id"><xsl:value-of select="translate(@title, ' ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞŸŽŠŒ', '-abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ')"/></xsl:attribute>
<xsl:choose> <xsl:choose>
<xsl:when test="@details-link"> <xsl:when test="@details-link">
<a href="{@details-link}"> <a href="{@details-link}">