conditional text with ditaval and props
Forum topic: Submitted by ngn_at_ebbr on Thu, 2009-08-27 16:27.
I'm trying to get to grips with ditaval and props as a means of handling conditions, and already have a couple of questions.
1. Does the example here show correct use of the props attribute for later conditional processing with a ditaval file?
[dd props="airportPubs"]The group is also involved in preparing and updating the safety procedure SOP-SAF 015-02 (available in the Airport Publications environment) and the Winter Operations Manual.[/dd]
[dd props="extranet"]The group is also involved in preparing and updating the safety procedure SOP-SAF 015-02 (available on the company extranet) and the Winter Operations Manual.[/dd]
2. If it does, then I'll be fairly happy with applying conditions to a complete element such as a [dd]. I suppose that for a conditional block of text within a paragraph, I can wrap each of the variants in a [phrase] and set the [props] on the [phrase]?
[p]The group is also involved in preparing and updating the safety procedure SOP-SAF 015-02 (available
[ph props="airportPubs"]in the Airport Publications environment[/ph]
[ph props="extranet"]on the company extranet[/ph]
) and the Winter Operations Manual.[/p]
And I suppose, then, I could even use [ph] elements inside a [title] to handle something like this:
[title]
[ph props="new_042009"]Wild-life strikes[/ph]
[ph props="deleted_042009"]Bird-strike incident rate[/ph]
[/title]
Turning the display/output of conditional blocks on and off with ditaval is the next stage, but it seemed best to check my assumptions about [props] coding first!
Thanks in advance for any hints and tips.
1. Does the example here show correct use of the props attribute for later conditional processing with a ditaval file?
[dd props="airportPubs"]The group is also involved in preparing and updating the safety procedure SOP-SAF 015-02 (available in the Airport Publications environment) and the Winter Operations Manual.[/dd]
[dd props="extranet"]The group is also involved in preparing and updating the safety procedure SOP-SAF 015-02 (available on the company extranet) and the Winter Operations Manual.[/dd]
2. If it does, then I'll be fairly happy with applying conditions to a complete element such as a [dd]. I suppose that for a conditional block of text within a paragraph, I can wrap each of the variants in a [phrase] and set the [props] on the [phrase]?
[p]The group is also involved in preparing and updating the safety procedure SOP-SAF 015-02 (available
[ph props="airportPubs"]in the Airport Publications environment[/ph]
[ph props="extranet"]on the company extranet[/ph]
) and the Winter Operations Manual.[/p]
And I suppose, then, I could even use [ph] elements inside a [title] to handle something like this:
[title]
[ph props="new_042009"]Wild-life strikes[/ph]
[ph props="deleted_042009"]Bird-strike incident rate[/ph]
[/title]
Turning the display/output of conditional blocks on and off with ditaval is the next stage, but it seemed best to check my assumptions about [props] coding first!
Thanks in advance for any hints and tips.