A little strange issue I am facing, When assigning in one line it is working but when in multiple lines it is not working
Working code
<xsl:variable name="detail" select="utils:DecodeCDATA($addNode2Detail)" />
Nonworking code
<xsl:variable name="detail">
<xsl:valueof select="utils:DecodeCDATA($addNode2Detail)">
</xsl:variable>
Please Suggest what can be the reason!!
Without knowing more, it’s very hard to tell. The two variable declarations are NOT equivalent: one binds the variable to a result tree fragment (that is, a document node), while the other binds it to whatever your function utils:DecodeCDATA returns (a string, perhaps?)
You need to tell us more about what the function is doing, more about how you are using the variable, and more about what exactly you mean when you say it doesn’t work.