This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] mediaobject phrase as caption for figure
- From: David Pratt <prattda at assiniboine dot net>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 7 May 2003 12:23:40 -0500
- Subject: [docbook-apps] 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org