Hi David,

Thanks for that it worked fine - my code is below.
FYI the <p> at the end of the .label line is required. It is a HTML
paragraph tag so we get the label in bold on the top a paragraph break with
the image underneath. Without it the image is immediately to the right of
the label text.

        <div ex:role="lens" class="a-lens">
        <b ex:content=".label"></b><p>
                <img ex:if-exists=".image" ex:src-content=".image" />
                <p ex:content=".description"></p>
                <i ex:content=".name"></i><br>
                Start: <i ex:content=".start"></i><br>
                End: <i ex:content=".end"></i>
        </div>

Maybe using <br><br> instead of the <p> would be a little cleaner. That
works and does the same think probably more reliably.

Cheers and thanks for the response
Peter
 

-----Original Message-----
From: David Huynh [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 26 February 2008 11:11 PM
To: [EMAIL PROTECTED]; General List
Subject: Re: Suppressing 'broken link' image in Exhibit

>You can change

    <img ex:src-content=".image"><p>

to

    <img ex:if-exists=".image" ex:src-content=".image" />

Or if Google Spreadsheets returns empty strings for empty cells, then 
you can test it with ex:if

    <img ex:if=".image <> ''" ex:src-content=".image" />

(That's a pair of single quotes.)

By the way, watch out for non-matching closing tags. The line

    <b ex:content=".label"></b><p>

should not have <p> at the end.

David

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to