Showing:

Documentation
Parameters
References
Imported from
Source
Stylesheet abbrev-d.xsl
Documentation

Description

 This file is part of the DITA Open Toolkit project hosted on 
     Sourceforge.net. See the accompanying license.txt file for 
     applicable licenses.
 (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. 
Imported from
Template *[contains(@class,' abbrev-d/abbreviated-form ')]topic.abbreviated-form
Documentation

Description

 KEYREF-FILE is defined in dita2htmlImpl.xsl: 
<xsl:param name="KEYREF-FILE" select="concat($WORKDIR,$PATH2PROJ,'keydef.xml')"/>
Namespace No namespace
Match *[contains(@class,' abbrev-d/abbreviated-form ')]
Mode #default
References
Import precedence 15
Source
<xsl:template match="*[contains(@class,' abbrev-d/abbreviated-form ')]" name="topic.abbreviated-form">
  <xsl:variable name="keys" select="@keyref"/>
  <xsl:if test="@keyref and document($KEYREF-FILE)//*[@keys=$keys][normalize-space(@href)!='']/@href">
    <xsl:variable name="target">
      <xsl:value-of select="document($KEYREF-FILE)//*[@keys=$keys][normalize-space(@href)!='']/@href"/>
    </xsl:variable>
    <xsl:variable name="entry-file" select="concat($WORKDIR, $PATH2PROJ, substring-before($target, '.'), $DITAEXT)"/>
    <xsl:variable name="entry-file-contents" select="document($entry-file, /)"/>
    <xsl:choose>
      <xsl:when test="$entry-file-contents//*[contains(@class,' glossentry/glossentry ')]">
        <!-- Fall back to process with normal term rules -->
        <xsl:call-template name="topic.term"/>
      </xsl:when>
      <xsl:otherwise>
        <!-- TODO: Throw a warning for incorrect usage of <abbreviated-form> -->
        <xsl:apply-templates select="." mode="ditamsg:no-glossentry-for-abbreviated-form">
          <xsl:with-param name="keys" select="$keys"/>
        </xsl:apply-templates>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:if>
</xsl:template>
Template *{http://dita-ot.sourceforge.net/ns/200704/ditamsg}no-glossentry-for-abbreviated-form
Namespace No namespace
Match *
Mode {http://dita-ot.sourceforge.net/ns/200704/ditamsg}no-glossentry-for-abbreviated-form
References
Template output-message
Parameters
QName Namespace
keys No namespace
Import precedence 15
Source
<xsl:template match="*" mode="ditamsg:no-glossentry-for-abbreviated-form">
  <xsl:param name="keys"/>
  <xsl:call-template name="output-message">
    <xsl:with-param name="msgnum">060</xsl:with-param>
    <xsl:with-param name="msgsev">W</xsl:with-param>
    <xsl:with-param name="msgparams">%1=
      <xsl:value-of select="$keys"/>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Output (default)
Namespace No namespace
Output properties
method encoding indent
no
Source
<xsl:output method="xml" encoding="utf-8" indent="no"/>