this is my xslt
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:MyUtils="pda:MyUtils"
exclude-result-prefixes="MyUtils">
<xsl:template match="/">
<Envelope>
<xsl:variable name="entityData" select="..//ArrayOfEntityRow"/>
<xsl:variable name="data" select="MyUtils:get_data().GoodData()"/>
</Envelope>
</xsl:template>
</xsl:stylesheet>
and this is the extension class
class MyExtension
{
public MyExtension()
{
data = new Data();
}
public Data data
{
get; set;
}
}
class Data
{
public string GoodData()
{
return "hello";
}
}
I am getting the following error "Extension function parameters or return values which have Clr type 'Data' are not supported."
Though I am returning string from GoodData() function.
I want to access GoodData() function from xslt..How can I do it?
The extension object added to the XSLT is of type "MyExtension" not "Data"