How to use dynamic tables
Dynamic tables is useful to represent tables that differ in row number from document to document within the same merge. These are only possible with data formats that support nested entities, like XML or JSON.
Dynamic tables can are represented using the following notation fn:table xpath-expression
.
fn:table
must be used with a table in the document itself. See the following example:
This indicates that each column will fetch the data from the specific node by using the respective xpath expression.
For example the following data:
<items>
<item>
<first_name>Jason</first_name>
<last_name>Black</last_name>
<pcns>
<pcn>
<pcn_number>8935049522</pcn_number>
<date>03/07/2017 12:00:00</date>
<location>Inverurie Retail Park Oldmeldrum Road Inverurie Ab51 0gz</location>
<reason>Maximum 3 Hours Free Parking No Return Within 1 Hour</reason>
<pcn_amount>100.00</pcn_amount>
<fee>70.00</fee>
<total>170.00</total>
</pcn>
<pcn>
<pcn_number>1231349233</pcn_number>
<date>11/02/2018 11:32:00</date>
<location>Some other place Oldmeldrum Road Inverurie Ab51 0gz</location>
<reason>Maximum 3 Hours Free Parking No Return Within 1 Hour</reason>
<pcn_amount>200.00</pcn_amount>
<fee>70.00</fee>
<total>270.00</total>
</pcn>
</pcns>
</item>
</items>
Would generate the following table: