<xsl:param name="xrefstyle"/>
<xsl:param name="verbose" select="1"/>
- <xsl:apply-templates select="question[1]" mode="object.xref.markup">
- <xsl:with-param name="purpose" select="'xref'"/>
+ <xsl:apply-templates select="question[1]" mode="xref-to">
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/>
<xsl:with-param name="verbose" select="$verbose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="verbose" select="1"/>
- <xsl:apply-templates select="." mode="object.xref.markup">
- <xsl:with-param name="purpose" select="'xref'"/>
- <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
- <xsl:with-param name="referrer" select="$referrer"/>
- <xsl:with-param name="verbose" select="$verbose"/>
- </xsl:apply-templates>
+ <xsl:choose>
+ <xsl:when test="string-length(label) != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="object.xref.markup">
+ <xsl:with-param name="purpose" select="'xref'"/>
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
+ <xsl:with-param name="referrer" select="$referrer"/>
+ <xsl:with-param name="verbose" select="$verbose"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="part|reference" mode="xref-to">