Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to return winners within 3 months of todays date, this is my XSLT:
<xsl:variable name="testDate" select="umbraco.library:DateAdd(umbraco.library:CurrentDate(), 'm', -3)"/> <p> <xsl:for-each select="($currentPage/ancestor-or-self::*[@isDoc and @level=1] /Winners/Winner) and (umbraco.library:DateGreaterThanOrEqual(winDate, $testDate))">
Which is giving me the dreaded:
System.Xml.Xsl.XslLoadException: Expression must evaluate to a node-set. -->($currentPage/an...ate, $testDate))<--
Could you help me out?
Thanks.
Solved it, guess I must be tired this late on a Friday afternoon!
<xsl:for-each select="$currentPage/ancestor-or-self::*[@isDoc and @level=1] /Winners/Winner [umbraco.library:DateGreaterThanOrEqual(winDate, $testDate)]">
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Struggling with an XSLT
I'm trying to return winners within 3 months of todays date, this is my XSLT:
Which is giving me the dreaded:
Could you help me out?
Thanks.
Solved it, guess I must be tired this late on a Friday afternoon!
is working on a reply...