Red Hat Bugzilla – Bug 466994
Publican doesn't allow underscores or numbers in entity names
Last modified: 2010-11-23 23:17:44 EST
Description of problem:
Publican is overly strict on the name of XML entites. It should allow all valid entity names.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create_book --name=blah
2. add '<!ENTITY TEST_ENTITY "To be filled out later">' to en-US/blah.ent
3. add '&TEST_ENTITY;' to one of the .xml files
4. Generate HTML and PDF version of the book
You'll see the literal text '&TEST_ENTITY;' in the document
The entity should be replaced by its definition. In other words, you should see the text "To be filled out later" in the document.
Discussed with jfearn on IRC, and he confirms that it's a bug in the Perl code that munges the XML.
Changed regex in xmlClean to also match underscores and numerals.
publican-0.38-0.fc9,perl-XML-TreeBuilder-3.09-11.fc9 has been submitted as an update for Fedora 9.
publican-0.38-0.fc9, perl-XML-TreeBuilder-3.09-11.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.