<xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/>
<xsl:variable name="refnamediv" select=".//refnamediv"/>
<xsl:variable name="refname" select="$refnamediv//refname"/>
+ <xsl:variable name="refdesc" select="$refnamediv//refdescriptor"/>
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="$refentrytitle">
<xsl:apply-templates select="$refentrytitle[1]" mode="title.markup"/>
</xsl:when>
+ <xsl:when test="$refdesc">
+ <xsl:apply-templates select="$refdesc" mode="title.markup"/>
+ </xsl:when>
<xsl:when test="$refname">
<xsl:apply-templates select="$refname[1]" mode="title.markup"/>
</xsl:when>
<xsl:copy-of select="$title"/>
</xsl:template>
-<xsl:template match="refentrytitle|refname" mode="title.markup">
+<xsl:template match="refentrytitle|refname|refdescriptor" mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:choose>
<xsl:when test="$allow-anchors != 0">
<xsl:when test="../refmeta/refentrytitle">
<xsl:apply-templates select="../refmeta/refentrytitle"/>
</xsl:when>
+ <xsl:when test="refdescriptor">
+ <xsl:apply-templates select="refdescriptor[1]"/>
+ </xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="refname[1]"/>
</xsl:otherwise>
<xsl:apply-templates select="refpurpose"/>
</fo:block>
+ <!-- what was this for?
<fo:block>
- <xsl:for-each select="refname">
- <xsl:apply-templates select="."/>
- <xsl:if test="following-sibling::refname">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:for-each>
+ <xsl:choose>
+ <xsl:when test="refdescriptor">
+ <xsl:apply-templates select="refdescriptor"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="refname">
+ <xsl:apply-templates select="."/>
+ <xsl:if test="following-sibling::refname">
+ <xsl:text>, </xsl:text>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
</fo:block>
+ -->
</fo:block>
</xsl:template>
-
<xsl:template match="refname">
<xsl:apply-templates/>
</xsl:template>
</xsl:template>
<xsl:template match="refdescriptor">
- <!-- todo: finish this -->
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="refclass">
<xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/>
<xsl:variable name="refnamediv" select=".//refnamediv"/>
<xsl:variable name="refname" select="$refnamediv//refname"/>
+ <xsl:variable name="refdesc" select="$refnamediv//refdescriptor"/>
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="$refentrytitle">
- <xsl:apply-templates select="$refentrytitle[1]" mode="titleabbrev.markup"/>
+ <xsl:apply-templates select="$refentrytitle[1]"
+ mode="titleabbrev.markup"/>
+ </xsl:when>
+ <xsl:when test="$refdesc">
+ <xsl:apply-templates select="$refdesc"
+ mode="titleabbrev.markup"/>
</xsl:when>
<xsl:when test="$refname">
- <xsl:apply-templates select="$refname[1]" mode="titleabbrev.markup"/>
+ <xsl:apply-templates select="$refname[1]"
+ mode="titleabbrev.markup"/>
</xsl:when>
- <xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>