I am trying to call function .But it not display out .here is my code https://plnkr.co/edit/TN1BN5Yao5Z63RDcBGlN?p=preview
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="dosomething">
<xsl:text>A function that does something</xsl:text>
</xsl:template>
<xsl:call-template name="dosomething"/>
</xsl:stylesheet>
xsl:call-template
cannot be at the top level of your stylesheet. It must only be used within a template body, for example: