Translate

Tuesday, 2 April 2013

xml publisher subtempletes and logo

  • create a data source using ex: ps query 
  • get delivered sub template  from content library  add u r company logo and address to that and save it with u r own name
  • create u r own main template  add this code
    • Importing Sub-Templates to main template
      To import a sub-template file that is stored in the Content Library, place the following syntax at the top of the primary template file:
      <?import:psxmlp://sub-template_NAME?>
      where sub-template_NAME is the registered sub-template ID in the Content Library, for example:
      <?import:psxmlp://STDHEADER?>. This syntax must be in Normal text.
    • Calling Sub-Templates
      Place the following syntax in the primary template file in the location where the desired text or XSL
      instructions from the sub-template file should appear:
      <?call-template:peoplesoft?>
      In the preceding sample code peoplesoft is the name of the component that you want to use in the subtemplate file  EX: <?call-template:portrait?>
  • then see o/p in report viewer 

No comments:

Post a Comment