Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

How to output repeating content from the model
xomega
#1 Posted : Tuesday, October 8, 2013 5:07:23 PM(UTC)
xomega



In order to output repeating content from the Xomega model in the generated document, you need to wrap it in a rich text content control in the template and specify XPath for the content as the title and loop as the tag as follows.
  1. Select the part of the document in the MS Word template that needs to be repeated, such as a section or a table row.
  2. Open the Developer tab. If you don't see it, open the Word Options dialog and check the "Show Developer tab in the Ribbon" check box.
  3. Click the Aa button to insert a rich text content control.
  4. Click on the Properties button.
  5. Enter the XPath that selects the desired list of nodes from the model into the Title field. Use the $ctx variable for the context node, as well as any built-in or custom functions as appropriate.
  6. Enter loop into the Tag field and click OK.
Below is a picture that illustrates this setup.
Repeating Content Properties
xomega attached the following image(s):
xomega attached the following image(s): DocRepeatingContent.png
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.