Assembler issue: Masterpage definition in XDP?

Avatar

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
BjornEricsson1
Level 3

04-06-2017

Background

I'm working on a process that combines XDPs with an DDX and Assembler Service. Now I have come across a situaition where if I combine two specific XDPs (each with its own Masterpages) then the last one (the one that gets included into the other) will loose its Connection to its Masterpage and instead use the Masterpage of the first one. This is also shown when I view the combined XDP in Designer. The pattern I have found is that the problem occurs when a form withut pagination element (xdp/config/present/pagination) is combined with one that does have it. Then the first form will dictate that there will be no pagination element and the second one will suffer. I hope that I will be able to fix this with XSLT when I have understood what should be fixed and when.

My questions:

  1. How do I read the Masterpage Connection in the XML of the XDP?
  2. Have sombody else had the same issue and found a fix?

/Björn

who likes the new forum where formatting works with IE.

Replies

Avatar

Avatar
Give Back 25
Level 5
TundraSteve
Level 5

Likes

51 likes

Total Posts

442 posts

Correct reply

57 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Level 5
TundraSteve
Level 5

Likes

51 likes

Total Posts

442 posts

Correct reply

57 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
TundraSteve
Level 5

05-06-2017

Can you please provide the sample XDPs and DDX?

Avatar

Avatar
Validate 10
Level 5
DarrenBiz
Level 5

Likes

68 likes

Total Posts

205 posts

Correct reply

37 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 5
DarrenBiz
Level 5

Likes

68 likes

Total Posts

205 posts

Correct reply

37 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
DarrenBiz
Level 5

05-06-2017

I havent faced this issue personally but just a thought - are the Masterpages & Content areas named differently in the XDP's? If you leave the default naming on them then the references in the second XDP might just reference the first Masterpage by name as they both are named the same.

Avatar

Avatar
Boost 5
Employee
sharoon23
Employee

Likes

6 likes

Total Posts

43 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Employee
sharoon23
Employee

Likes

6 likes

Total Posts

43 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
sharoon23
Employee

05-06-2017

Please supply the sample XDPs (input and output) and the DDX that you are using.

Avatar

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
BjornEricsson1
Level 3

06-06-2017

Sure. I didn't find a way of uploading files to the forums so I put it in my OneDrive: https://hiq365-my.sharepoint.com/personal/bjorn_stromros_hiq_se/_layouts/15/guestaccess.aspx?docid=1...

Avatar

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
BjornEricsson1
Level 3

07-06-2017

Hi! I'm not sure what you mean. Could you give me an example? We have thousands of forms, so I can't change them in the respository. What I can do is to modify them on the fly in the AEM process.

Avatar

Avatar
Boost 5
Employee
sharoon23
Employee

Likes

6 likes

Total Posts

43 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Employee
sharoon23
Employee

Likes

6 likes

Total Posts

43 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
sharoon23
Employee

07-06-2017

Hi,

What you are observing is expected behaviour. When you are assembling one XDP after the other, second XDP is stitched w.r.t. the first and properties retained are of the first XDP (base XDP). You cannot have different master pages in the same XDP. By default, the first XDP in the assembly is taken as the base document, the one whose properties will be retained but if you want any other XDP to be treated as base XDP you can add the attribute baseDocument=="true" for that XDP.

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">

  <XDP result="out">

    <XDP source="xdpIn1" baseDocument="false"/>

    <XDP source="xdpIn2" baseDocument="true"/>

  </XDP>

  <?ddx-source-hint name="xdpIn1"?>

  <?ddx-source-hint name="xdpIn2"?>

</DDX>

I hope it answers your query.

Avatar

Avatar
Give Back 25
Level 5
TundraSteve
Level 5

Likes

51 likes

Total Posts

442 posts

Correct reply

57 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Level 5
TundraSteve
Level 5

Likes

51 likes

Total Posts

442 posts

Correct reply

57 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
TundraSteve
Level 5

08-06-2017

Just for clarity, an XDP can have multiple master pages, it may be that Assembler XDP stitching doesn't support it

Avatar

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
BjornEricsson1
Level 3

Likes

2 likes

Total Posts

48 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
BjornEricsson1
Level 3

09-06-2017

OK, thanks.

I have tried some things now and what seams to work is to remove attribute relation in element pageSet of the second form. Do you think that could work in the long run, or will it not work every where or will it have side-affects? This process is only used for Printing multiple forms in one go, and the changes I make will only apply during the "process lifetime" in memory.