On 03 Oct, 2011,at 02:21 PM, Bob Stayton <[email protected]> wrote:
Indeed. Here is the update to the template for the imageobjectco element I was going to check in. It should work equally well in an html or fo customization layer. It uses the same mechanism to select a role attribute. The difference from mediaobject is that it only does the selection if the right conditions are met, on the assumption that you may intend to have multiple imageobjects in your output. Let me know if it works for you.
Awesome, thanks Bob!
It seems to do the right thing viz display a single imageobject depending on the role.
The HTML imagemap produced seems to be broken, which I can reproduce with the stock stylesheets and a single imageobject.
<div class="screenshot">
<div class="mediaobject"><img border="0" usemap="" src=""/><map name="id2540550"><area shape="rect" coords="NaN,NaN,NaN,NaN"/></map></div>
</div>
<div class="mediaobject"><img border="0" usemap="" src=""/><map name="id2540550"><area shape="rect" coords="NaN,NaN,NaN,NaN"/></map></div>
</div>
The source document had <area coords="500,500,600,600" ...> I also tried forcing units="calspair", but still got NaNs. I'll investigate more; this is rather likely to be my fault :-)
Cheers,
Chris
