Testing a Sub-Template in Microsoft Word
You should test your template and sub-template using Template Builder before uploading to PeopleTools to make your sub-template is accessible to your template on the file system.
Use the following syntax when importing:
<?import:file:C:///Template_Directory/subtemplate_file.rtf?>
Notice the triple slashes and the use of the actual file name instead of template ID.
When your design is complete, you can change the import statement back to make the sub-template available to the main template in PeopleTools environment.
I followed the same syntax above. However, I could not work it out as I was having these errors when I try to preview the main RTF template as a PDF. After bit of a research I found out that I need to include these custom properties in the xdo.xfg file.
<property name="xdk-secure-io-mode">false</property><property name="xslt-scalable">true</property>
Here are some of the references I checked while figuring out this issue
- https://docs.oracle.com/cd/E41633_01/pt853pbh1/eng/pt/txml/task_DefiningSystemProperties-d67e77.html
- https://docs.oracle.com/middleware/12211/bip/BIPAD/GUID-9D988F03-8CBD-4A0C-B8DA-93986843C0B8.htm#BIPAD320
- https://docs.oracle.com/cd/E87544_01/pt856pbr1/eng/pt/txml/task_UsingRTFTemplates-997f94.html?pli=ul_d81e52_txml
- http://bipconsulting.blogspot.com/2009/11/common-header-and-footer-with-sub.html
Thank you so much for the tip about the config file - that resolved my problem! I'm new to PS and it would have taken me months or years to figure that out on my own!
ReplyDelete