[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: mediaobject phrase as caption for figure
I am interested in using my phrase text as a caption underneath my image in my output for chunked xhtml output so it results in this: <div class="figure"> <a id="id542272"/> <p class="title"> <b>Figure 7.16. My Figure</b> </p> <div class="mediaobject"> <img src="myfigure.jpg" alt="My figure described"/> </div> <p class="imagecaption"> <!-- this is what I want to add --> My figure described <!-- this is what I want to add --> </p> <!-- this is what I want to add --> </div> from this: <figure> <title>My Figure</title> <mediaobject> <imageobject> <imagedata fileref="myfigure.jpg" format="JPG" /> </imageobject> <textobject> <phrase>My figure described</phrase> </textobject> </mediaobject> </figure> In the graphics.xsl template in the xhtml folder, I have located the mediaobject template. Just under this, I located the simple template for textobject. I have added the following to my xhtml chunk customization but I get nothing. <!-- Generate an image caption underneath each image --> <xsl:template match="mediaobject/textobject/phrase"> <p class="imagecaption"> <xsl:value-of select="."/> </p> </xsl:template> I have also tried this with template match="phrase" since the the textobject template simply applies templates. Any recommendations on how to achieve the desired would be much appreciated.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]