parent::d:sect5|parent::d:section|parent::d:setindex|parent::d:sidebar|
parent::d:simplesect|parent::d:taskprerequisites|parent::d:taskrelated|
parent::d:tasksummary|parent::d:warning|parent::d:topic">
+
+<!-- Entity used in xref-to for inline elements -->
+<!ENTITY inline.elements "d:abbrev | d:accel | d:acronym | d:application | d:author | d:citation | d:citebiblioid
+ | d:citetitle | d:classname | d:code | d:command | d:computeroutput | d:constant | d:database
+ | d:date | d:editor | d:email | d:emphasis | d:envar | d:errorcode | d:errorname | d:errortext
+ | d:errortype | d:exceptionname | d:filename | d:firstterm | d:foreignphrase | d:function
+ | d:glossterm | d:guibutton | d:guiicon | d:guilabel | d:guimenu | d:guimenuitem | d:guisubmenu
+ | d:hardware | d:initializer | d:inlineequation | d:inlinemediaobject | d:interfacename | d:jobtitle
+ | d:keycap | d:keycode | d:keycombo | d:keysym | d:literal | d:markup | d:menuchoice | d:methodname
+ | d:modifier | d:mousebutton | d:nonterminal | d:ooclass | d:ooexception | d:oointerface
+ | d:option | d:optional | d:org | d:orgname | d:package | d:parameter | d:person | d:personname
+ | d:phrase | d:productname | d:productnumber | d:prompt | d:property | d:quote | d:replaceable
+ | d:returnvalue | d:shortcut | d:symbol | d:systemitem | d:tag | d:termdef | d:token | d:trademark
+ | d:type | d:uri | d:userinput | d:varname | d:wordasword">
</xsl:param>
<fo:inline font-family="{$sans.font.family}">
+ <xsl:call-template name="anchor"/>
<xsl:choose>
<xsl:when test="@dir">
<fo:inline>
</xsl:call-template>
</xsl:param>
- <xsl:choose>
- <xsl:when test="@dir">
- <fo:inline>
- <xsl:attribute name="direction">
- <xsl:choose>
- <xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
- <xsl:otherwise>rtl</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:choose>
+ <xsl:when test="@dir">
+ <fo:inline>
+ <xsl:attribute name="direction">
+ <xsl:choose>
+ <xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
+ <xsl:otherwise>rtl</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:copy-of select="$contentwithlink"/>
+ </fo:inline>
+ </xsl:when>
+ <xsl:otherwise>
<xsl:copy-of select="$contentwithlink"/>
- </fo:inline>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$contentwithlink"/>
- </xsl:otherwise>
- </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:inline>
</xsl:template>
<xsl:template name="inline.monoseq">
</xsl:param>
<fo:inline font-weight="bold">
+ <xsl:call-template name="anchor"/>
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:template match="d:author">
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
- <xsl:call-template name="person.name"/>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="person.name"/>
+ </fo:inline>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="d:editor">
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
- <xsl:call-template name="person.name"/>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="person.name"/>
+ </fo:inline>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="d:othercredit">
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
- <xsl:call-template name="person.name"/>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="person.name"/>
+ </fo:inline>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="d:phrase">
<fo:inline>
- <xsl:call-template name="anchor"/>
<xsl:call-template name="inline.charseq"/>
</fo:inline>
</xsl:template>
</xsl:variable>
<fo:inline>
- <xsl:call-template name="anchor"/>
<xsl:copy-of select="$content"/>
</fo:inline>
<xsl:template match="d:termdef">
<fo:inline>
+ <xsl:call-template name="anchor"/>
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'termdef'"/>
<xsl:with-param name="name" select="'prefix'"/>
<xsl:otherwise>+</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:for-each select="*">
- <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:for-each select="*">
+ <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if>
+ <xsl:apply-templates select="."/>
+ </xsl:for-each>
+ </fo:inline>
</xsl:template>
<xsl:template match="d:uri">
<xsl:template match="d:menuchoice">
<xsl:variable name="shortcut" select="./d:shortcut"/>
- <xsl:call-template name="process.menuchoice"/>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="process.menuchoice"/>
+ </fo:inline>
<xsl:if test="$shortcut">
<xsl:text> (</xsl:text>
<xsl:apply-templates select="$shortcut"/>
<!-- ==================================================================== -->
<xsl:template match="d:person">
- <xsl:apply-templates select="d:personname"/>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:apply-templates select="d:personname"/>
+ </fo:inline>
</xsl:template>
<xsl:template match="d:personname">
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
- <xsl:call-template name="person.name"/>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="person.name"/>
+ </fo:inline>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="d:jobtitle">
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
- <xsl:apply-templates/>
+ <fo:inline>
+ <xsl:call-template name="anchor"/>
+ <xsl:apply-templates/>
+ </fo:inline>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
templates with different properties for different linking elements -->
</xsl:template>
+<!-- ==================================================================== -->
+<!-- generate text for xrefs to inline elements -->
+<xsl:template match="&inline.elements;" mode="xref-to">
+ <xsl:apply-templates mode="no.anchor.mode"/>
+</xsl:template>
+
</xsl:stylesheet>