]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle xref to glossentry
authorNorman Walsh <ndw@nwalsh.com>
Mon, 20 Jan 2003 17:11:50 +0000 (17:11 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 20 Jan 2003 17:11:50 +0000 (17:11 +0000)
xsl/html/xref.xsl

index fee347db7efaefb155883d4961a8a2efa60704be..c4ab30acba010662072c6c68d0152d909cf1e72b 100644 (file)
   </xsl:apply-templates>
 </xsl:template>
 
+<xsl:template match="glossentry" mode="xref-to">
+  <xsl:choose>
+    <xsl:when test="$glossentry.show.acronym = 'primary'">
+      <xsl:choose>
+        <xsl:when test="acronym|abbrev">
+          <xsl:apply-templates select="(acronym|abbrev)[1]"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:apply-templates select="glossterm[1]" mode="xref-to"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates select="glossterm[1]" mode="xref-to"/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
+<xsl:template match="glossterm" mode="xref-to">
+  <xsl:apply-templates/>
+</xsl:template>
+
 <xsl:template match="index" mode="xref-to">
   <xsl:param name="referrer"/>
   <xsl:param name="xrefstyle"/>