]> granicus.if.org Git - apache/commitdiff
add transformation for the two new elements <glossary> and <phonetic>
authorAstrid Malo <kess@apache.org>
Sat, 27 Nov 2004 19:59:14 +0000 (19:59 +0000)
committerAstrid Malo <kess@apache.org>
Sat, 27 Nov 2004 19:59:14 +0000 (19:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106752 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index 9a4e659ff908444d4f339c6624e200634e7b75b5..da33da00486f3c6af43f796c02630dfcaa0163f8 100644 (file)
 </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.                                       -->