-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
Medium
When using the <textobject> tag to house the necessary information of an image for the visually impared who use screenreaders to read our documentation, weird html files are created in the directory where the 'target' folder is generated.
Here's an example of the xml:
<figure id="figu-Beginners_Guide-Visual_Web_Tools-Visual_Page_Editor">
<title>Visual Page Editor</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/figu-Beginners_Guide-Visual_Web_Tools-Visual_Page_Editor.png" format="PNG" width="444" />
</imageobject>
<textobject>
<phrase>
The Visual Page Editor, showing both the source and a visual preview simultaneously.
</phrase>
</textobject>
</mediaobject>
</figure>
When the <textobject> isn't specified (which it doesn't seem to be in other JBoss Tools documentation I've had a look at) the title of the image is used as the alt-text for the image, however a visually impared reader requires more information than this, which is why the <textobject> tag exists. When using the <textobject> tag, the information in it is indeed used as the alt-text for the image, however weird xml files are generated in the output of compiling the book in maven (mvn compile). I have attached a screenshot of these files.
Each weird html file contains the text of one <textobject> tag, thus there is a weird html file for every <textobject> in the book.