</xsl:template>
<!-- in Addresses, for example -->
-<xsl:template match="d:honorific|d:firstname|d:surname|d:lineage|d:othername">
+<xsl:template match="d:honorific|d:firstname|d:givenname|d:surname|d:lineage|d:othername">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
<xsl:variable name="link">
<xsl:choose>
- <xsl:when test="$xhref and
- (not($node/@xlink:type) or
+ <xsl:when test="$xhref and
+ (not($node/@xlink:type) or
$node/@xlink:type='simple')">
<!-- Is it a local idref or a uri? -->
</xsl:attribute>
</xsl:when>
</xsl:choose>
-
+
<xsl:copy-of select="$content"/>
</a>
</xsl:otherwise>
<xsl:apply-templates select="$target" mode="html.title.attribute"/>
<xsl:copy-of select="$content"/>
-
+
</a>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="locale.html.attributes"/>
<!-- We don't want empty @class values, so do not propagate empty @roles -->
<xsl:choose>
- <xsl:when test="@role and
+ <xsl:when test="@role and
normalize-space(@role) != '' and
$phrase.propagates.style != 0">
<xsl:apply-templates select="." mode="class.attribute">
</xsl:template>
<!-- in Addresses, for example -->
-<xsl:template match="d:honorific|d:firstname|d:surname|d:lineage|d:othername">
+<xsl:template match="d:honorific|d:firstname|d:givenname|d:surname|d:lineage|d:othername">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
</xsl:template>
</xsl:stylesheet>
-