Björn Kautler - 2016-03-20

Let's try this again. It seems most of my text was swallowed and there is no edit button as far as I can see:

If you have an image (e. g. <inlinegraphic/> or <inlinemediaobject><imageobject/></inlinemediaobject>) as part of the <title> of a <figure> but without an alt-text defined (<textobject><phrase/></textobject> in the same <inlinemediaobject>), the html stylesheets fall into a recursive loop trap, as the title of the figure is tried to be used as alt-text.
At least with Xalan-J this results in a StackOverflowError.

The following DocBook file reproduces the problem and the attached patch fixes the recursion by not using an alt text in that case.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<article>
   <figure>
      <title><inlinegraphic fileref="images/pdf.png"/></title>
      <beginpage/>
   </figure>
</article>
 

Last edit: Björn Kautler 2016-03-20