Commit b9b602b8 authored by Astrid Kessler's avatar Astrid Kessler
Browse files

add transformation for the two new elements <glossary> and <phonetic>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106752 13f79535-47bb-0310-9956-ffa450edef68
parent c98a75f9
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -915,6 +915,37 @@
</xsl:template>
<!-- /transnote -->

<!-- ==================================================================== -->
<!-- <phonetic>                                                           -->
<!-- phonetics are enclosed in  square brackets and displayed in a        -->
<!-- different color                                                      -->
<!-- ==================================================================== -->
<xsl:template match="phonetic">
<span class="phonetic">
    <xsl:text>[</xsl:text>
    <xsl:apply-templates />
    <xsl:text>]</xsl:text>
</span>
</xsl:template>
<!-- /phonetic -->


<!-- ==================================================================== -->
<!-- <glossary>                                                           -->
<!-- link to a glossary anchor                                            -->
<!-- ==================================================================== -->
<xsl:template match="glossary">
<span>
    <xsl:attribute name="title">
        <xsl:value-of select="$message[@id='glossarylink']" />
    </xsl:attribute>
    <xsl:text>&#x2192;</xsl:text>
</span>&nbsp;
<a href="{$path}/glossary.html#{@ref}">
    <xsl:apply-templates />
</a>
</xsl:template>
<!-- /glossary -->

<!-- ==================================================================== -->
<!-- Filter &#160; in text() nodes.                                       -->