Page 1 of 1

Table duplicates while repeats

PostPosted: Tue Jul 30, 2013 10:13 pm
by sreejiths_123
Hi ,

I have a custom xml which i bind to a template . it has several repeats .

xml looks like

Code: Select all
  <Operations><Operation>
                    <Name></Name>
                    <Description></Description>                   
                    <Messages>
                        <Message>
                            <Role></Role>
                            <Name></Name>                       
                            <Description></Description>                       
                        </Message>
                        <Message>
                            <Role></Role>
                            <Name></Name>                       
                            <Description></Description>                         
                        </Message>                       
                    </Messages>
                    <name></name>
                </Operation>
                <Operation> ..

</Operations>


Here Operation is repeat binded to table each contains message information ,
There is another table named messages , and i would like to repeat that for each occurrence of Message in each Operation ,
Say suppose if there is 2 Messages in 1st Operation and 3 Messages in 2nd Operation , then then the Messages tables repeat itself 5 times .

I repeat binded the Message table to /Operations/Operation/Messages/Message

Now , my table repeats 5 times , but it duplicates with same data of the first Message only .

What is the change needed inorder to show all messages .

Please help

Re: Table duplicates while repeats

PostPosted: Tue Jul 30, 2013 11:33 pm
by jason
Have a look at this similar example

https://github.com/plutext/docx4j/blob/ ... egions.xml