What is The XSL-FO Page Templates in XML

In this article I will explain what is the XSL-FO Page Templates in XML
  • 1918

XSL-FO Page Templates

  • XSL-FO uses page templates called "Page Masters" to define the layout of pages.
  • XSL-FO Page Templates template must have a unique name.
  • XSL-FO Page Templates could be used as a template for introduction pages.

<fo:simple-page-master master-name="intro">
   <fo:region-body margin="5in" />
 </fo:simple-page-master>

In the example above, <fo:simple-page-master> elements, define templates.The template name is called "intro".

XSL-FO Page Size

XSL-FO uses the following attributes to define the size of a page

  • page-width defines the width of a page
  • page-height defines the height of a page

XSL-FO Page Margins

XSL-FO uses the following attributes to define the margins of a page

  • margin-top defines the top margin
  • margin-bottom defines the bottom margin
  • margin-left defines the left margin
  • margin-right defines the right margin
  • margin defines all four margins

XSL-FO Page Regions

XSL-FO uses the following elements to define the regions of a page

  • region-body defines the body region
  • region-before defines the top region (header)
  • region-after defines the bottom region (footer)
  • region-start defines the left region (left sidebar)
  • region-end defines the right region (right sidebar)

Further Readings

You may also want to read these related articles

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

 

 

 

 

 

© 2019 DotNetHeaven. All rights reserved.