?? - XSL-FO XHTML - XSL-FO Book Anatomy and Acknowledgment Statements

 31 December 18:00   

    



    



    

XSL-FO Book Structure

    



    

Since XSL-FO files are accounting in XML, all statements are organized into an XML

    

tree structure. Actuality is the syntax of the top akin of the tree:

    

<fo:root> <fo:layout-master-set>

    

<fo:simple-page-master>

    

arena acknowledgment statements to ascertain a individual page layout

    

</fo:simple-page-master>

    

...

    

<fo:page-sequence-master>

    

page blueprint advertence statements to ascertain a page arrangement layout

    

</fo:page-sequence-master>

    

...

    

</fo:layout-master-set>

    

<fo:page-sequence>

    

breeze acknowledgment statements to map a breeze of block areas to a region.

    

</fo:page-sequence>

    

...

    

</fo:root>

    



    



    

Note that I use the words "statement" and "element" interchangeably, because the written

    

of an XSL-FO account is an XML element.

    



    

Statements acclimated at the top levels are:

    



        

  • "root": The starting point of an XSL-FO file.


  •     

  • "layout-master-set": A alignment account that keeps all blueprint acknowledgment

        

    statements in one place.



  •     

  • "simple-page-master": A acknowledgment account that defines a individual page layout.


  •     

  • "page-sequence-master": A acknowledgment account that defines a page arrangement layout.


  •     

  • "page-sequence": An activity account that generates areas to aftermath a page sequence.


  •     



    



    



    

"simple-page-master" Statements

    



    

"simple-page-master": An XSL-FO aspect confined as a acknowledgment account

    

to ascertain a individual page layout.

    



    

For example:

    

 <fo:simple-page-master master-name="my_layout"

    

margin-top="1.0in" margin-bottom="0.8in"

    

margin-left="0.8in" margin-right="0.6in">

    

<fo:region-body region-name="my_body"

    

column-count="2" column-gap="0.2in"

    

background-color="#cfcfcf" margin="0.2"/>

    

<fo:region-before region-name="my_header"

    

extent="0.2in" display-align="after"/>

    

<fo:region-after region-name="my_footer"

    

extent="0.2in" display-align="before"/>

    

<fo:region-start region-name="my_left_sidebar"

    

extent="0.2in" display-align="after"

    

reference_orientation="90"/>

    

<fo:region-end region-name="my_right_sidebar"

    

extent="0.2in" display-align="before"

    

reference_orientation="90"/>

    

</fo:simple-page-master>

    



    



    

Obviously, a page is disconnected into 5 regions:

    

 ----------------

    

| Afore |

    

|--------------|

    

|S | | |

    

|t | |E |

    

|a | Physique |n |

    

|r | |d |

    

|t | | |

    

|--------------|

    

| Afterwards |

    

----------------

    



    



    

Some absorbing attributes in the acknowledgment statements:

    



        

  • margin-x: Specifies white spaces at four edges of the page, if acclimated in

        

    simple-page-master statement.



  •     

  • region-name: A accustomed name for this region. It will be use in the breadth generation

        

    statements to specify in which arena the areas are placed.



  •     

  • column-count: Amount of columns of argument to be generated in this region.


  •     

  • reference_orientation: A circling bend of the inline progression direction

        

    from its absence - from larboard to right.



  •     

  • margin: Is a autograph for four altered margins with the aforementioned value.


  •     

  • extent: Specifies how abysmal a bound arena is. A bound arena takes a way

        

    space from the physique region. So you haveto specify abundant allowance in body-region, so

        

    that argument from the physique arena is not overlapping with the argument in the bound regions.



  •     

  • background-color: Specifies the accomplishments blush for all areas that will be

        

    stacked into this region.



  •     

  • display-align: Armament the block areas to adjust to one bend of the region.

        

    For example, display-align="after" is bare in region-before to adjust argument to

        

    the basal of the attack area.



  •     



    



    

 


Tags: simple, areas, column, color, statements, single, statement, align, display, border, background

 region, master, layout, statements, sequence, declaration, margin, simple, statement, align, display, extent, areas, reference, define, orientation, specifies, border, single, element, column, background, color, structure, , page sequence, page master, simple page, declaration statements, region name, display align, page layout, 2in display, statement that, reference orientation, align after, background color, sequence master, layout master, master set, single page, declaration statement, simple page master, 2in display align, display align after, page sequence master, single page layout, display align before, declaration statement that, page sequence layout, statement that defines, layout page sequence,

Share ?? - XSL-FO XHTML - XSL-FO Book Anatomy and Acknowledgment Statements:
Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

Permalink
Article In : Computers & Technology  -  xhtml