<xsl:copy-of select="@*[not(name(.) = 'xml:id')
and not(name(.) = 'version')
and not(local-name(.) = 'href')]"/>
+ <xsl:if test="@xml:id">
+ <xsl:attribute name="id">
+ <xsl:value-of select="@xml:id"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:apply-templates mode="stripNS"/>
</sgmltag>
</ulink>
<xsl:otherwise>
<sgmltag>
<xsl:copy-of select="@*[not(name(.) = 'xml:id')
- and not(name(.) = 'version')]"/>
+ and not(name(.) = 'version')]"/>
+ <xsl:if test="@xml:id">
+ <xsl:attribute name="id">
+ <xsl:value-of select="@xml:id"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:apply-templates mode="stripNS"/>
</sgmltag>
</xsl:otherwise>
<xsl:copy-of select="@*[not(name(.) = 'xml:id')
and not(name(.) = 'version')
and not(local-name(.) = 'href')]"/>
+ <xsl:if test="@xml:id">
+ <xsl:attribute name="id">
+ <xsl:value-of select="@xml:id"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:apply-templates mode="stripNS"/>
</citetitle>
</ulink>
and not(name(.) = 'version')
and not(name(.) = 'linkend')
and not(local-name(.) = 'href')]"/>
+ <xsl:if test="@xml:id">
+ <xsl:attribute name="id">
+ <xsl:value-of select="@xml:id"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:apply-templates mode="stripNS"/>
</citetitle>
</xsl:template>