Hi all i am trying to run XSLT 2.0 but it is giving the error when i run xslt 1.0 it fine but i am not able to run XSLT 2.0, is there any way to run XSLT 2.0, below is my code.



let $xslt :=
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">
    <xsl:variable name="editmode" select="dharam"/>
    <xsl:variable name="EDIT-FULL" select="dharam"/>
    <xsl:template match="/">
        <xsl:value-of select="if($editmode eq $EDIT-FULL) then 'textarea' else 'ouput'"/>
    </xsl:template>
</xsl:stylesheet>

return 

xslt:transform(<p>1111</p>, $xslt)



Regards
Dharmendra Kumar Singh