Red Hat Bugzilla – Bug 572047
callouts containing program listings with code comments breaks build
Last modified: 2010-11-23 23:16:57 EST
Description of problem:
This problem applies to programlistings with language attribute and callouts.
<programlisingco> is a parent tag for applying callouts to a progamlisting. If
the <programlisting> tag includes the "language" attribute to highlight the subsequent code, the following error occurs when building the document:
LibXSLT: error coming back from perl-dispatcher in pm file. Entity: line 1: parser error : Premature end of data in tag span line 1
at /usr/lib/perl5/vendor_perl/5.10.0/Publican/Builder.pm line 744
<area id="subclass1" coords="2 55"/>
<area id="subclass2" coords="3 55"/>
<area id="subclass3" coords="4 55"/>
<area id="subclass4" coords="5 55"/>
Version-Release number of selected component (if applicable):
Workaround: remove language attribute from the offending <programlisting> tag.
Created attachment 401628 [details]
Chapter.xml containing code that exposes this bug
In the attachment in Comment 2, the issue is the in line comments, not the language attribute, causing the problem. Are there any other know causes of this issue?
The exact cause of this is: a callout containing a program listing, with a code comment, with syntax highlighted enabled.
Removing the language attribute disables syntax highlighting thus breaking the chain of causality.
This is due to a limitation of the callout handling code which can't handle nested blocks, highlighting the comments in code causes a nested block to be injected in the XML DOM, breaking the callout code.
Added a regex to replace the offending nested block with an inline version.
Verified fixed in 1.6.1
publican-1.6.1-0.fc12 has been submitted as an update for Fedora 12.
publican-1.6.1-0.fc11 has been submitted as an update for Fedora 11.
publican-1.6.1-0.fc13 has been submitted as an update for Fedora 13.
publican-1.6.1-0.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
publican-1.6.1-0.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
publican-1.6.1-0.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.