Dann verknüpf doch einfach die ganzen Antworten?
<xsl:template match="book">
<xsl:variable name="apo">'</xsl:variable>
<xsl:value-of select="translate(//@text, $apo, '_')"/>
</xsl:template>
Sollte genauso gehen:
<xsl:template match="book">
<xsl:variable name="apo">'</xsl:variable>
<xsl:value-of select="translate(.@text, $apo, '_')"/>
</xsl:template>
Gruß Ben