Since title
is a child of abbr
, title
's text is part of the string value of abbr
. Please try this:
<xsl:template match ="abbr">
<abbr title="{title}">
<xsl:apply-templates select="text()"/>
</abbr>
</xsl:template>
Incidentally, are you using xsl:output method="text"
in your XSLT? If you are using XSLT to produce XML, then you should use method="xml"
. That's what XSLT was made for.