Если оформляются ссылки на внешние сайты каким-то особым образом, удобно добавить класс (типа class="outside").
Можно в XSLT добавить этот класс ко всем ссылкам, которые начинаются с http://
, и не равно http://your_domain.ru
<!--Добавление class="outside" если не совпадает с доменом-->
<xsl:choose>
<xsl:when test="(starts-with(@href, 'http://') or starts-with(@href, 'https://')) and not(starts-with(@href, 'http://your_domain.ru') or starts-with(@href, 'https://your_domain.ru') or starts-with(@href, 'http://www.your_domain.ru') or starts-with(@href, 'https://www.your_domain.ru'))">
<xsl:attribute your_domain="class"><xsl:value-of select="@class"/> outside</xsl:attribute>
</xsl:when>
</xsl:choose>