How to call multiple template in xml publisher
Here we will be discuss about How to call multiple template in xml publisher. XML publishers allows us to create more flexible Templates. To Design more flexible Templates XML publishers allow us to call multiple templates in the Main or Parent Template. We have the feature in the XML publisher to create many sub templates of the Main templates so that we can call these templates in the Main templates as per the conditions. Here I will share the Steps for How we can call multiple template in xml publisher.
Steps to call multiple template in xml publisher
Step1:- We need to register these sub templates with the Concurrent Program. One Main Template and Other are Sub Templates
Step2:- XML Administrator Responsibility ==> Templates
Register these Sub Template With Sub Template "Yes"
Step3:- Go to the Main Template RTF layout
As below this is the Main RTF Layout.
We are using two Sub templates "INVA_23" and "INVARORE_24" In this Main RTF Layout.
But before using Sub template we must need to import these template in the Mail RTF template. Use this Syntax for call multiple template in xml publisher
<?import:xdo://XXINV.INVA_23.en.US?>
<?import:xdo://XXINV.INVARORE_24.en.US?>
Step4:- After Importing the Template We need to Call these Templates so Here below is the Syntax for that. If any condition is True then Call XXSUBTEMPLATE1 else XXSUBTEMPLATE2 as above
<?:condition1='True'?><?call-template:XXSUBTEMPLATE1?><?END IF?>
<?:condition1='False'?><?call-template:XXSUBTEMPLATE2?><?END IF?>
XXSUBTEMPLATE1 & XXSUBTEMPLATE2 are the Names of XML Bursting
Step5:-
We need to design the Sub template RTF design between these Below XML Tags as below
<?TEMPLATE:XXSUBTEMPLATE1?>
Sub Template Design Layout
0 comments:
Post a Comment