Know how you can generate conditional output for DITA topics in Adobe FrameMaker.
This topic covers, with a sample use case, the steps to generate a PDF output containing conditional content.
<p>) tags. You can, however, create
conditional output from any DITA element in a document.Create a DITA topic with four paragraph
(<p>) elements:
Content ONLY for administrators.
Set the @audience attribute
to admin.
Content ONLY for authors.
Set the @audience attribute
to author.
Content for administrators and authors
Set the @audience attribute
to admin author.
Content for end users and authors.
Set the @audience attribute
to end_user author.
Save the document.
Create a DITAVAL file with four prop elements:
@attr: audience
@val: admin
@action: include
@attr: audience
@val: author
@action: exclude
@attr: audience
@val: end_user
@action: exclude
The above DITAVAL will output all content targeted at administrators.
Save the DITAVAL file.
Create a DITA map and include the above document and save the DITA map as a PDF ().
The output PDF file includes and excludes content based on the attributes that are set up in the document and the corresponding DITAVAL file.