User Help > Working With Documents > Branching Documents > Creating Branched Documents using Filtered Query Definition > Example: Adding, Excluding, or Referencing Inserted and Included Documents in Branched Document > Case 2: Included and Inserted documents added in the branched document
  
Case 2: Included and Inserted documents added in the branched document
For the input document in the following image, the im branchsegment command is used with the recurseInclude and recurseReference options. In the branched document that is created, inserted and included documents are added as new documents with the filter criteria System Requirements applied.