Hi,
How would you use this new parameter called "CurrentDate" after you make those changes as you suggested? I am trying to use "CurrentDate" in my xsl file, but it's not working.
I called in my xsl the following:
<xsl:value-of select="CurrentDate"/>
The error message on my site page:
System.Xml.Xsl.XslLoadException
XSLT compile error.
Here is what I added to App_Code/XML/Parameters/ParameterInfo.vb:
Case ParameterType.CurrentDate ' Custom CurrentDate added
Return Date.Now.ToShortDateString()
Here is what I added to App_Code/XML/ParameterEditor.ascx:
<asp:listitem value="CurrentDate" resourcekey="CurrentDate">Current Date</asp:listitem>
I also added "CurrentDate" to App_Code/XML/Parameters/ParameterType.vb, and added the parameter "Current Date" on XML/XSL module setting itself.
Is there anything that I didn't do correctly please? Thank you.
Sushan