Mapping data to the template in XML publisher Reports

The mapping of data to the XML template is just similar to providing a source to the field in a report builder layout model.







  • The markup in the form fields will reference the items in the Data Model i.e. the name of the Repeating Groups and the items present in each Repeating Group.
  • While marking up the tags in the form fields, it is necessary to note that all items must be enclosed within <? And ?>.
  • While demarcating the start of a repeating group the syntax is <?for-each: group_name?> where group_name is the name of the repeating group as it appears in the XML output.
  • While demarcating the end of a repeating group the syntax is <?end for-each: group_name?> where group_name is the name of the repeating group as it appears in the XML output.
  • Items within each repeating group are tagged as  <?item_name?> where item_name is the name of the item as it appears in the XML output.
  • After all the tags have been marked up save the template with .rtf (Rich Text Format) extension on the local machine..