Home Forums DITA and XMetaL Discussion Correct Behaviour of Output with Conditional Attributes Reply To: Correct Behaviour of Output with Conditional Attributes

Derek Read

Reply to: Correct Behaviour of Output with Conditional Attributes

Basically it works like this:
1. Anything without a specific conditional text attribute value set is included regardless of what you select in the dialog.
2. If something has one or more conditional text attribute values (each attribute can have more than one value) then the same value must be selected in the dialog otherwise it will not be included.

Consider this example:

This paragraph is for everyone.

This paragraph is for "Windows XP" people only.

This paragraph is for "Windows XP" and "Windows 2000" people.

This paragraph is for "Mac OS X" people only.

1. If you select nothing in the “Show / Hide Conditional Text” dialog (accessed via the Generate Output dialog) only the first paragraph will appear in output.
2. If you select “windowsxp” for platform in the dialog then the first three paragraphs will appear in output.
3. If you select “windows2000” for platform in the dialog then the third paragraph will appear in output.
4. If you select “macosx” for platform in the dialog then the first and fourth paragraphs will appear in output.
5. If you select both “windowsxp” and “macosx” for platform in the dialog then all paragraphs will appear in output.

Reply

Products
Downloads
Support