Ron's right, you want to use the {} syntax to expand the item in place. It is, effectively, a value-of select statement that you can use when you're already inside the value of a tag. You'll see this syntax all the time with the niceUrl(@id) inside an href tag.
Alternatively, you can use the more verbose but possibly clearer xsl:attribute syntax. It would look like this:
Using XSLT In Image Tag?
I haven't been able to get my head round why this won't work?
I just get this error?
Can you please point me in the right direction :)
use <img src='>{$post/@BlogThumbnail}"/
Ron
Sorry for markup >> src="{$post/@BlogThumbnail}"
Finally == <img src="{$post/@BlogThumbnail}" alt="{$post/@nodeName}" />
Ron's right, you want to use the {} syntax to expand the item in place. It is, effectively, a value-of select statement that you can use when you're already inside the value of a tag. You'll see this syntax all the time with the niceUrl(@id) inside an href tag.
Alternatively, you can use the more verbose but possibly clearer xsl:attribute syntax. It would look like this:
cheers,
doug.
Awesome thanks chaps :) ...
Almost built the first fully Umbraco powered site! So getting there slowly...
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.