How to append selected attributes from set selector on generated document.

Hello, I have one entity (Claims) in my domain model. In this I used checkboxes for selecting Yes and No attributes. I have one generate document button to generate the document as pdf.  Here my question is as I'm using two attributes(Yes and No) I want to generate only the selected attribute in document while the document is generated as pdf. Thanks in advance.   These are the checkboxes.     This is the microflow I’m using.  
1 answers

In the document template use an XPath to only retrieve the objects you want to have their. You could also use datasource microflows for the objects on the template.