Hi,
You will probably need to make some XSLT customizations for this.
The XSLT stylesheet:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.xhtml/xsl/xslhtml/ut-d.xsl
has a template which matches the imagemap and generates HTML output from it:
You should also consider registering on the Yahoo Groups DITA Users List, it is a very good place where to ask DITA publishing customization questions.
Code: Select all
<xsl:template match="*[contains(@class,' ut-d/imagemap ')]" name="topic.ut-d.image
...........
which at some point computes the title which will be set on the HTML <a> element corresponding to the DITA xref:
Code: Select all
<!-- create ALT text from XREF content-->
<!-- if no XREF content, use @HREF, & put out a warning -->
<xsl:choose>
<xsl:when test="*[contains(@class, ' topic/xref ')]">
<xsl:variable name="alttext"><xsl:apply-templates select="*[contains(@class, ' topic/xref ')]/*[contains(@class, ' topic/desc ')]" mode="text-only"/></xsl:variable>
<xsl:attribute name="alt"><xsl:value-of select="normalize-space($alttext)"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="normalize-space($alttext)"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="ditamsg:area-element-without-linktext"/>
</xsl:otherwise>
</xsl:choose>
and you would probably need to modify the alttext variable to take only the description from the xref link like:
Code: Select all
<xsl:variable name="alttext"><xsl:apply-templates select="*[contains(@class, ' topic/xref ')]/*[contains(@class, ' topic/desc ')]" mode="text-only"/></xsl:variable>
Regards,
Radu