Description of problem: When a <term/> tag is empty, or contains only other tags (<varname/>, etc.), Publican does not complain of an empty tag, but FOP falls over while building the PDF. Version-Release number of selected component (if applicable): publican-2.1-0.fc12.noarch How reproducible: Every time. Steps to Reproduce: 1. Have a <term/> tag that is empty except for other tags: <varlistentry> <term><varname></varname></term> <listitem> ... or that is just empty: <varlistentry> <term></term> <listitem> ... 2. publican build --langs en-US --formats pdf Actual results: javax.xml.transform.TransformerException - see output in attached file. Expected results: Publican should make mention of the (technically valid) empty tag, or FOP should give a more informative error message. Additional info:
Created attachment 431971 [details] fop error on empty term Fop error for empty term tag attached.
Well it's clearly valid, if crazy, to have an empty term, so the PDF should build. Fixed PDF build so it doesn't blow up on empty terms. Fixed in build: 2.1-0%{?dist}.t2
Thanks, Jeff. :) Any chance we can get it to warn when it senses something like an empty term? I can't think of a circumstance in which an empty term would be correct, even if it's valid.
(In reply to comment #3) > Thanks, Jeff. :) > > Any chance we can get it to warn when it senses something like an empty term? I > can't think of a circumstance in which an empty term would be correct, even if > it's valid. I think it would be best to open a discussion upstream to get the DTD changed so that an empty term isn't valid.
Verified in 2.1.t20 PDF builds fine even with an empty <term>
publican-2.2-0.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/publican-2.2-0.fc13
publican-2.2-0.fc12 has been submitted as an update for Fedora 12. https://admin.fedoraproject.org/updates/publican-2.2-0.fc12
publican-2.2-0.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/publican-2.2-0.fc14
publican-2.2-0.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.