I created an xsl file to change the appearence of the Picture Library. As I had troubles to get the PictureURL I took the value of the "FileLeafRef" to get the filename of the picture. Than I use the site url and add the value of "FileLeafRef". It works fine for the current site but I would like to use the same style on different subsites with the same Picture Library. How can I insert the current siteURL into img src=" "... I already tried the value of _spPageContextInfo.webAbsoluteUrl but I don't get any value. This is the code I'm using:
<xsl:variable name="LinkToBook">
<xsl:value-of select="@LinkToBook"/>
</xsl:variable>
<div class="bookimage">
<a href="{$LinkToBook}" target="_blank">
<img src="/sites/sitecollection/subsite/subsubsite/FeaturedBooks/{$FileLeafRef}" alt="{$FileLeafRef}" disable-output-escaping="yes"/>
</a>
</div>
<br/>
<br/>