{"id":23189,"date":"2013-05-13T17:01:48","date_gmt":"2013-05-13T11:31:48","guid":{"rendered":"http:\/\/vskills.in\/certification\/tutorial\/?p=23189"},"modified":"2024-04-12T14:23:51","modified_gmt":"2024-04-12T08:53:51","slug":"formatting-objects","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/","title":{"rendered":"Formatting Objects"},"content":{"rendered":"<p>Formatting is the process of turning the result of an XSL transformation into a tangible form for the reader or listener.<\/p>\n<p>Our model for formatting will be the construction of an area tree, which is an ordered tree containing geometric information for the placement of every<\/p>\n<div>\n<ul type=\"disc\">\n<li>glyph (character representation in a specific font) ,<\/li>\n<li>shape,<\/li>\n<li>image,<\/li>\n<li>together with information embodying spacing constraints and other rendering information;<\/li>\n<\/ul>\n<\/div>\n<p>Formatting objects are elements in the formatting object tree, whose names are from the XSL namespace; a formatting object belongs to a class of formatting objects identified by its element name.<\/p>\n<p>Some formatting objects are\u00a0<strong>inline-level<\/strong>\u00a0and others are\u00a0<strong>block-level<\/strong>. This refers to the types of areas which they generate, which in turn refer to their default placement method:<\/p>\n<div>\n<ul type=\"disc\">\n<li>Inline-areas (for example, glyph-areas) are collected into lines and the direction in which they are stacked is the inline-progression-direction.<\/li>\n<li>Lines are a type of block-area and these are stacked in a direction perpendicular to the inline-progression-direction, called the block-progression-direction<\/li>\n<\/ul>\n<\/div>\n<p>In Western writing systems, the block-progression-direction is &#8220;top-to-bottom&#8221; and the inline-progression-direction is &#8220;left-to-right&#8221;.<\/p>\n<h3><a name=\"page_layouts\"><\/a>Page Layouts<\/h3>\n<p>After the FO document&#8217;s beginning\u00a0<tt>&lt;fo:root&gt;<\/tt>\u00a0tag, we have to describe what kinds of pages our document can have. Our document will have three kinds of pages shown in the diagram below. To accommodate the stapling area, the cover page and right-hand pages will have more margin space at the left. The content pages will also have a region for a header and footer.<\/p>\n<p><a ref=\"magnificPopup\" href=\"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-29307\" src=\"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif\" alt=\"layouts (2)\" width=\"300\" height=\"123\" \/><\/a><\/p>\n<p>Let&#8217;s start out by specifying the page widths and heights and margins. The units below are all in centimeters, but you may use any of the CSS units, such as px (pixel), pt (point), em, in, mm, etc. Each of these specifications is called a\u00a0<tt>simple-page-master<\/tt>\u00a0and must be given a\u00a0<tt>master-name<\/tt>\u00a0so you can refer to it later.<\/p>\n<pre>&lt;fo:layout-master-set&gt;\n    &lt;fo:simple-page-master master-name=\"cover\"\n        page-height=\"12cm\"\n        page-width=\"12cm\"\n        margin-top=\"0.5cm\"\n        margin-bottom=\"0.5cm\"\n        margin-left=\"1cm\"\n        margin-right=\"0.5cm\"&gt;\n    &lt;\/fo:simple-page-master&gt;\n\n    &lt;fo:simple-page-master master-name=\"leftPage\"\n        page-height=\"12cm\"\n        page-width=\"12cm\"\n        margin-left=\"0.5cm\"\n        margin-right=\"1cm\"\n        margin-top=\"0.5cm\"\n        margin-bottom=\"0.5cm\"&gt;\n    &lt;\/fo:simple-page-master&gt;\n\n    &lt;fo:simple-page-master master-name=\"rightPage\"\n        page-height=\"12cm\"\n        page-width=\"12cm\"\n        margin-left=\"1cm\"\n        margin-right=\"0.5cm\"\n        margin-top=\"0.5cm\"\n        margin-bottom=\"0.5cm\"&gt;\n    &lt;\/fo:simple-page-master&gt;\n\n    &lt;!-- more info will go here --&gt;\n&lt;\/fo:layout-master-set&gt;<\/pre>\n<p>The margins are areas which will not contain any printed output.<\/p>\n<div class=\"apply\">\n<h5>Go to- <a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/xml-developer\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Certified XML Developer Tutorial<\/strong><\/a><\/h5>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Formatting is the process of turning the result of an XSL transformation into a tangible form for the reader or listener. Our model for formatting will be the construction of an area tree, which is an ordered tree containing geometric information for the placement of every glyph (character representation in a specific font) , shape,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[3353],"tags":[4570,4571],"class_list":["post-23189","page","type-page","status-publish","hentry","category-xml","tag-formatting-objects","tag-page-layouts"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Formatting Objects - Tutorial<\/title>\n<meta name=\"description\" content=\"Formatting Objects\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Formatting Objects - Tutorial\" \/>\n<meta property=\"og:description\" content=\"Formatting Objects\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:53:51+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/\",\"name\":\"Formatting Objects - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif\",\"datePublished\":\"2013-05-13T11:31:48+00:00\",\"dateModified\":\"2024-04-12T08:53:51+00:00\",\"description\":\"Formatting Objects\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#primaryimage\",\"url\":\"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif\",\"contentUrl\":\"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Formatting Objects\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Formatting Objects - Tutorial","description":"Formatting Objects","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/","og_locale":"en_US","og_type":"article","og_title":"Formatting Objects - Tutorial","og_description":"Formatting Objects","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:53:51+00:00","og_image":[{"url":"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/","name":"Formatting Objects - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#primaryimage"},"thumbnailUrl":"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif","datePublished":"2013-05-13T11:31:48+00:00","dateModified":"2024-04-12T08:53:51+00:00","description":"Formatting Objects","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#primaryimage","url":"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif","contentUrl":"http:\/\/vskills.in\/certification\/tutorial\/wp-content\/uploads\/2013\/05\/layouts-2-300x123.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/formatting-objects\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Formatting Objects"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/23189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=23189"}],"version-history":[{"count":4,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/23189\/revisions"}],"predecessor-version":[{"id":134077,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/23189\/revisions\/134077"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=23189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=23189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=23189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}