As I said the xslt code also works fine inside a macro. I've been completely unable to get inline xslt to work with this version of Umbraco. Even code that worked with 4.5.2 doesn't work. I'm obviously missing something simple.
Could you try wrapping the {0} thing in single quotes? If Umbraco does what I think it does, it will insert the value (not the name) into the XPath expression, and then it's actually a literal string, which should be in quotes... so:
xslt code works inside a macro but does not work inline
Hello,
I'm using umbraco 4.9
The xslt code is:
<pre>
<umbraco:Item field="updateDate" xslt="umbraco.library:FormatDateTime({0}, 'H.mm:dMMMyy')" runat="server" />
</pre>
The following code works just fine on the same page (I just don't care for the formatting)
<pre>
<umbraco:Item field="updateDate" formatAsDateWithTime="true" formatAsDateWithTimeSeparator=":" runat="server" />
</pre>
As I said the xslt code also works fine inside a macro. I've been completely unable to get inline xslt to work with this version of Umbraco. Even code that worked with 4.5.2 doesn't work. I'm obviously missing something simple.
Thanks for the help
Jon
Hi Jon,
Could you try wrapping the {0} thing in single quotes? If Umbraco does what I think it does, it will insert the value (not the name) into the XPath expression, and then it's actually a literal string, which should be in quotes... so:
/Chriztian
Thank you Chriztian - unfortunately that didn't change anything.
Arg - just remembered that there was something about this - it's a bug, you can see it here on the tracker.
There seems to be a patched umbraco.dll that you can download somewhere in the comments...
/Chriztian
That did it. Thanks very much Chriztian.
is working on a reply...