Hey guys,
I experienced a strange and misunderstanding behaviour by the sitecore client. My co-workers reported that sometimes it adds ?db=master to the src attribute of an image field. It looks like this:
<img showineditor=”1″ mediaid=”{A4D0BCFC-9DE7-41BF-BB43-24F9EC8877E3}” mediapath=”/Images/content_1″ src=”~/media/Images/content_1.ashx?db=master“>
After this, you can’t use the src attribute in your xslt if you want to transform the image as well. I modified the xsl in order to use the path field in the image item instead of the src attribute directly.
<variable name=”mediaItem” select=”sc:item(sc:fld(‘picture’,.,’mediaid’),.)” />
<img src=”{sc:fld(‘path’,$mediaItem)}?w=270&as=false&bc=ffffff” />
This should work and avoid this.
chris