Repeating Sections

Top Previous Topic Next Topic  Print this topic

Repeating Sections are paragraphs that are repeated for a set of nodes from the source XML.

 

To understand how can be used, consider an example of XML with a collection of CDs attached.

Create a repeating table with this CDs and go to the Insert tab and choose Repeating Section.

 

Note:

You don't need to create a repeating table before, but it helps you to understand better.

 

The Edit Expression dialog will be displayed. Select the nodes from the XML Tree that you want to be repeated (in this example: /catalog/cd).

 

Your Design view should look like in the picture below:

 

repeating_sections1

 

 

The repeating section can be customized according to your preferences.

Here you select the field you want to be repeated (for example title, artist, etc. or if you want all of them to be displayed select cd) by dragging it into the blue section, right-click and choose Field when dropping.

 

Below you can see first the result in the Design mode and then a preview in PDF:

 

Design mode:

 

repeating_sections2

 

PDF result:

 

repeating_sections3

 

Note:

In Design mode repeating sections are displayed with a blue background (when the cursor`s position is inside them) and with the XPath of the node that creates them.

 

 

See also:

      Repeating Tables