Description of problem:
The condition: parameter in the publican.cfg file does not allow conditional content to be output.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. svn co https://svn.devel.redhat.com/repos/ecs/JBoss_Documentation_Guide/
2. Specify condition: ent in the .cfg file
3. publican build --formats html-single --langs en-US
In the Preface.xml, there are two feedback.xml xi:includes that have the condition attribute set. One has condition="ent" and the other has condition="comm".
When you execute the publish command, both are excluded from the publish
The Feedback.xml with condition="comm" is excluded from the publish, and the condition="ent" is included in the publish.
I have also tried removing the conditional elements from the xi:includes, and applying the conditional attributes to two separate <para> tags in the single Feedback.xml. Because of the current behaviour, this results in both tags being excluded at parse time, and Publican reports an invalid strucutre error.
When you set a condition there is a dirty big error message:
Use of uninitialized value in regexp compilation at /usr/lib/perl5/vendor_perl/5.8.8/Publican/XmlClean.pm line 469.
Bug in XmlClean checking wrong parameter list, made it use the right one.
Did you want me to test the functionality "in the field" Jeff? If not, when would 1.3 be available in the wild?
(In reply to comment #2)
> Did you want me to test the functionality "in the field" Jeff?
You can feel free to check out the code and compile from source if you want.
svn co http://svn.fedorahosted.org/svn/publican/trunk/publican
Assumes you ahve sudo setup. You may need to install deps when running perl Build.pl
> If not, when
> would 1.3 be available in the wild?
We don't have time tables, when release when it feels right or when enough cider has been consumed.
No problem Jeff. Thanks for the heads-up. And thanks for fixing it so quickly.
publican-1.3-0.fc12 has been submitted as an update for Fedora 12.
publican-1.3-0.fc11 has been submitted as an update for Fedora 11.
publican-1.3-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.3-0.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.