Hovertext implementation in html output
Posted: Fri Jun 07, 2013 5:45 pm
Hello,
I am trying to implement hovertext effect for my glossary term definition using the following documents, but I have not been able to achieve that at the moment.
What I need is be able to show when we mouse over the content of <glossdef>some text..</glossdef>. I might be doing something wrong. Here are my source files:
The map
And the example dita file for the hovertext effect
I also followed the explanations here http://www.oxygenxml.com/forum/topic6726.html but still the expected result does not show.
Thanks for your help.
I am trying to implement hovertext effect for my glossary term definition using the following documents, but I have not been able to achieve that at the moment.
What I need is be able to show when we mouse over the content of <glossdef>some text..</glossdef>. I might be doing something wrong. Here are my source files:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glossgroup PUBLIC "-//OASIS//DTD DITA Glossary Group//EN" "glossgroup.dtd">
<glossgroup id="glossgroup_dsp_hgg_kk">
<title>ABS</title>
<glossentry id="abs">
<glossterm>Anti-lock Braking System</glossterm>
<glossdef>ABS or Anti-lock Braking System is ...</glossdef>
<glossBody>
<glossSurfaceForm>Anti-lock Braking System (ABS)</glossSurfaceForm>
<glossAlt>
<glossAcronym>ABS</glossAcronym>
</glossAlt>
</glossBody>
</glossentry>
<glossentry id="abs1">
<glossterm>Anti-lock Braking System</glossterm>
<glossdef>ABS or Anti-lock Braking System is ...</glossdef>
<glossBody>
<glossSurfaceForm>Anti-lock Braking System (ABS)</glossSurfaceForm>
<glossAlt>
<glossAcronym>ABS-BIS</glossAcronym>
</glossAlt>
</glossBody>
</glossentry>
</glossgroup>
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA 1.2 Map//EN" "map.dtd">
<map>
<title>KeyrefMasterMap</title>
<topicref href="glossary1.dita"/>
<glossref keys="abs" href="glossary1.dita"/>
<glossref keys="abs1" href="glossary1.dita"/>
</map>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_qhd_fs5_kk">
<title>Glossary terms demo</title>
<body>
<p>This is simply a demo for glossary term inside another topic. The <term keyref="abs"/></p>
<p>This is a test keyref <term keyref="abs1" /></p>
<p><xref href="myterm.dita">My Term<desc>My term means...</desc></xref></p>
</body>
</topic>
Thanks for your help.