Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

How to make multiple repeating pages for XML child nodes

Avatar

Not applicable
I have a schema that has many levels, and I am trying to have some of the child data print on separate pages.



<As>

<A id=1>

<Bs>

<B id=1 name="B1">

<Cs>

<C id=1 name="B1C1" />

<C id=2 name="B1C2" />

<C id=3 name="B1C3" />

</Cs>

</B>

<B id=2 name="B2">

<Cs>

<C id=1 name="B2C1" />

<C id=2 name="B2C2" />

<C id=3 name="B2C3" />

</Cs>

</B>

<Bs>

</A>

<As>



I want to place the data from A and B on page 1 (A is header fields and B is a table showing B1, B2 etc), and then per B, place data from C items on their own pages (repeat as necessary).



So the page output would be:



Page 1

A:1 (header items)

B table

B1

B2



Page 2

A:1 (header items)

B id: 1

C data for B1C1



Page 3

A:1 (header items)

B id: 1

C data for B1C2



Page 4

A:1 (header items)

B id: 1

C data for B1C3



Page 5

A:1 (header items)

B id: 2

C data for B2C1



Page 6

A:1 (header items)

B id: 2

C data for B2C2



Page 7

A:1 (header items)

B id: 2

C data for B2C3



Page 8

A:2 (header items)



etc.



I am hoping that with this quick sketch someone can tell me how to accomplish the placement of the C items.
0 Replies