Page 1 of 1

Unable to get simple repeat to work

PostPosted: Thu Feb 24, 2011 8:27 pm
by Siempre
Hey, sorry to back so soon.

I've got a document into which I added a repeat as described in the walkthrough, but whatever I do, I can't get it to repeat.
What I want to achieve is getting it to repeat without havind to dive into the xml and change some stuff.
It only ever fills in the content of the first entry but does not repeat.

What i do is select a word and add a simple bind pointed to the first element of the repeat.
Then I select this content control and wrap it with a repeat. I tried pointing the repeat to the container and to the element itself.
But in either case it just only fills in the first element and does not repeat it.
If I look into the preprocessed document I see that only a bind has been created for "xxx[1]" but not for "xxx[2]" etc..
It is as if the repeating elements are not detected.

I see a difference in the one I created and in the example (in the example there are two "[1]" parts in the xpath and in mine there is only one.
But as I said, I would like to get it to work without having to do intervention in the xml.

Hope you can help?

Here are the documents I used. : the template ... cessed.xml : the preprocessed version ... cessed.xml : the bound (processed) version

Re: Unable to get simple repeat to work

PostPosted: Thu Feb 24, 2011 11:36 pm
by jason

Sorry, the example in the walkthrough is out of date. Thanks for drawing my attention to it.

From version 2.1, the convention stipulates that a repeat xpath points to the element to be repeated, not to its parent container. (See

Opening your document with the add-in, on your repeat, I used XPath /CV/Industry_Experiences/Industry_Experience

I gave it a new XPath ID (since that panel needs to be fixed to save edits properly), just to ensure the change got saved.

Then it worked for me.

Re: Unable to get simple repeat to work

PostPosted: Fri Feb 25, 2011 12:38 am
by Siempre

I tried it and it indeed works.
I must probably done it wrong somewhere because I also tried it with pointing the repeat to the element itself and not the container.

The procedure I follow now (that works) is:
- select the text and add a simple bind pointing to the element itself.
- select the text again and add a richtext control through the developer tab.
- Choose make contents repeat and select the same xpath (the element itself).

Doing it this way seems to work for me.

On to the next task!

Thanks again