I want use localized strings from resources in xsl template as in aspx page, like this:
<%=GetLocalizedString("grid_numberof_claim")%>. I am trying use
<xsl:text disable-output-escaping="yes">
<![CDATA[<%=GetLocalizedString("grid_numberof_claim")%>]]>
</xsl:text>
but it is not useful.
Actually i can pass localized strings inside XML node, for example “localization”. But i am looking for way to get its value in aspx style.
Using ASPX style isn’t possible.
You can use
XsltArgumentListto send parameters to your XSLT template, as explained here: HOW TO: Execute Parameterized XSL Transformations in .NET ApplicationsEDIT: Yes, you can pass arguments client-side too.
But client-side leads to another solution: You can rename your XSLT file to ASPX and to use
<%= %>syntax