Bug 816319 - Single condition at a time
Summary: Single condition at a time
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 2.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ruediger Landmann
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-25 19:22 UTC by eric
Modified: 2012-08-17 05:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-17 05:04:59 UTC
Embargoed:


Attachments (Terms of Use)

Description eric 2012-04-25 19:22:58 UTC
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

Comment 1 Ruediger Landmann 2012-04-25 23:51:28 UTC
(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.

Cheers
Rudi :)


Note You need to log in before you can comment on or make changes to this bug.