| HTML Tutorials |
|
|
| XML Tutorials |
|
|
| Browser Scripting |
|
|
| Server Scripting |
|
|
| .NET (dotnet) |
|
|
| Multimedia |
|
|
| Web Building |
|
|
| Java Tutorials |
|
|
| Programming Langauges |
|
|
| Soft Skills |
|
|
|
|
XSL-FO Pages
|
|
To define the layout of pages XSL-FO uses page templates called "Page Masters".
|
|
Page Templates
|
|
To define the layout of pages XSL-FO uses page templates called "Page Masters" and each template must have a unique name.
|
|
In example given below three <fo:simple-page-master> elements, define three
different templates and each template has a different name.
The first template is called "intro" and it is used for
introduction pages.
The second and third templates are called "left" and "right" and used for
even and odd page numbers.
|
|
<fo:simple-page-master master-name="intro">
<fo:region-body margin="5in" />
</fo:simple-page-master>
<fo:simple-page-master master-name="left">
<fo:region-body margin-left="2in" margin-right="3in" />
</fo:simple-page-master>
<fo:simple-page-master master-name="right">
<fo:region-body margin-left="3in" margin-right="2in" />
</fo:simple-page-master>
|
|
Page Size
|
|
To define the page size of a page XSL-FO Page size used the following attributes:
- page-width defines the width of a page
- page-height defines the height of a page
|
|
Page Margins
|
|
To define the margins of a page XSL-FO Page Margins used the following attributes:
- margin-top
- margin-bottom
- margin-left
- margin-right
- margin defines all four margins
|
|
Page Regions
|
|
To define the regions of a page XSL-FO Page regions used the following attributes:
- region-body:- For body region
- region-before:- For top region
- region-after:- For bottom region
- region-start:- For left region
- region-end:- For right region
Note:- The region-start,region-end,region-before and region-after is a
part of the body region.To avoid text in the body region and to overwrite text in
these regions, the body region must have margins as a minimum size of these
regions.
|
| Margin Top |
M
a
r
g
i
nL
e
f
t
|
| REGION BEFORE |
R
E
G
I
O
N
S
T
A
R
T |
REGION BODY
|
R
E
G
I
O
NE
N
D |
| REGION AFTER |
|
M
a
r
g
i
n
R
i
g
h
t |
| Margin Bottom |
|
|
Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
Keywords : xsl tutorial,
xsl reference,
apache fo,
xsl examples,
xsl example,
xsl cdata,
xsl text,
xsl count,
xsl attribute,
xsl name,
xsl variable,
xsl document,
xsl dtd,
xsl namespace,
docbook xsl,
xsl xpath,
xsl element,
xsl javascript,
xsl css,
xsl processor,
xsl xhtml,
xsl stylesheet,
xsl template,
html fo,
xsl fo block,
fo reference,
svg xsl,
xsl date,
xsl html,
xsl fo inline,
xsl output,
pdf fo,
xsl node,
fo table,
docbook fo,
fo examples,
display xsl,
xsl tag,
fo text,
print pages,
xsl using,
fo tutorial
|
|
| HTML Quizes |
|
|
| XML Quizes |
|
|
| Browser Scripting Quizes |
|
|
| Server Scripting Quizes |
|
|
| .NET (dotnet) Quizes |
|
|
| Multimedia Quizes |
|
|
| Web Building Quizes |
|
|
| Java Quizes |
|
|
| Programming Langauges Quizes |
|
|
| Soft Skills Quizes |
|
|
|