<!-- * FIXME: this should handle other *info elements as well -->
<!-- * but this is good enough for now. -->
<xsl:when test="title|info/title">
- <xsl:apply-templates select="title[1]|info/title[1]" mode="title.markup">
+ <xsl:apply-templates select="(title|info/title)[1]" mode="title.markup">
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
</xsl:when>
<xsl:template match="dedication" mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:choose>
- <xsl:when test="title">
+ <xsl:when test="title|info/title">
<xsl:apply-templates select="(title|info/title)[1]" mode="title.markup">
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
<xsl:template match="acknowledgements" mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:choose>
- <xsl:when test="title">
+ <xsl:when test="title|info/title">
<xsl:apply-templates select="(title|info/title)[1]" mode="title.markup">
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
<xsl:template match="colophon" mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:choose>
- <xsl:when test="title">
+ <xsl:when test="title|info/title">
<xsl:apply-templates select="(title|info/title)[1]" mode="title.markup">
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
<xsl:template match="refsynopsisdiv" mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:choose>
- <xsl:when test="title">
- <xsl:apply-templates select="title" mode="title.markup">
+ <xsl:when test="title|info/title">
+ <xsl:apply-templates select="(title|info/title)[1]" mode="title.markup">
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
</xsl:when>
<xsl:template match="procedure" mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
- <xsl:apply-templates select="title" mode="title.markup">
+ <xsl:apply-templates select="(title|info/title)[1]" mode="title.markup">
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="legalnotice" mode="title.markup">
<xsl:param name="allow-anchors" select="0"/>
<xsl:choose>
- <xsl:when test="title">
+ <xsl:when test="title|info/title">
<xsl:apply-templates select="title" mode="title.markup">
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>