Red Hat Bugzilla – Bug 816319
Single condition at a time
Last modified: 2012-08-17 01:04:59 EDT
Description of problem: If I'm writing a document that may have multiple conditions that I would like to publish, Publican will only support publishing a single condition at a time.
Version-Release number of selected component (if applicable): 2.8
(Not a bug in our packaging of Publican, moving upstream)
Hi -- this is actually how DocBook conditions are supposed to work, and I agree it's a little counter-intuitive.
They "profile" the output by removing any element that has a condition set on it, when that condition is different from the one specified for the document.
To specify content to appear only in certain, specific versions of a document, set those multiple conditions as a comma-separated list in the "condition" attribute on that element. When any one of those conditions is met, Publican includes that element in the build.
There's an example of how to do this in the Publican User Guide.
If that doesn't help, maybe reply back here with an example of where it's going wrong for you.