fo:root
The top node of an XSL result tree. This tree is composed of formatting objects.
Element information
Namespace: http://www.w3.org/1999/XSL/Format
Schema document: fo.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Sequence [1..1]
- fo:layout-master-set [1..1]A wrapper around all masters used in the document.
- fo:declarations [0..1]Groups global declarations for a stylesheet.
- fo:bookmark-tree [0..1]A list of access points within the document such as a table of contents, a list of figures or tables, etc. Each access point is represented by a bookmark.
- Choice [1..*]
- fo:page-sequenceSpecifies how to create a (sub-)sequence of pages within a document; for example, a chapter of a report. The content of these pages comes from flow children of the fo:page-sequence. Specifies that only the children of fo:markers that are descendants of any fo:flow within the containing fo:page-sequence may be retrieved by this fo:retrieve-marker.
- fo:page-sequence-wrapperSpecifies inherited properties for a group of fo:page-sequence formatting objects. It has no additional formatting semantics.
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
source-document | [0..1] | Anonymous | A pointer back to the original XML document(s) used to create this formatting object tree, in accordance with the Dublin Core definition of "Source" ("A Reference to a resource from which the present resource is derived." See: http://purl.org/DC/documents/rec-dces-19990702.htm .) The value is not validated by and has no inherent standardized semantics for any XSL processor. | from group fo:source-document |
role | [0..1] | Anonymous | A hint for alternate renderers (aural readers, etc.) as to the role of the XML element or elements that were used to construct this formatting object, if one could be identified during XSLT tree construction. This information can be used to prepare alternate renderings when the normal rendering of a formatting object is not appropriate or satisfactory; for example, the role information can be used to provide better aural renderings of visually formatted material. This property is not inherited, but all subsidiary nodes of this formatting object that do not bear a role property should utilize the same alternate presentation properties. (It is not inherited because knowledge of the start and end of the formatting object subtree generated by the element may be needed by the renderer.) | from group fo:role |
id | [0..1] | fo:id | An identifier unique within all objects in the result tree with the fo: namespace. It allows references to this formatting object by other objects. | from group fo:id |
index-class | [0..1] | fo:string | Associates an index class with a formatting object that also has an index key specified. | from group fo:index-class |
index-key | [0..1] | fo:string | Associates an index key with the formatting object on which it is specified. | from group fo:index-key |
media-usage | [0..1] | Anonymous | How the selected display medium is used to present the page(s) specified by the stylesheet. | from group fo:media-usage |
Sample instance
<fo:root> <fo:layout-master-set> <fo:simple-page-master> <fo:region-body/> <fo:region-before/> <fo:region-after/> <fo:region-start/> <fo:region-end/> </fo:simple-page-master> </fo:layout-master-set> <fo:declarations> <fo:color-profile/> </fo:declarations> <fo:bookmark-tree> <fo:bookmark> <fo:bookmark-title>Any text</fo:bookmark-title> <fo:bookmark>... </fo:bookmark> </fo:bookmark> </fo:bookmark-tree> <fo:page-sequence> <fo:title>Any text, intermingled with: <fo:bidi-override>Any text, intermingled with:... </fo:bidi-override> </fo:title> <fo:folio-prefix>Any text, intermingled with: <fo:bidi-override>Any text, intermingled with:... </fo:bidi-override> </fo:folio-prefix> <fo:folio-suffix>Any text, intermingled with: <fo:bidi-override>Any text, intermingled with:... </fo:bidi-override> </fo:folio-suffix> <fo:static-content> <fo:block>Any text, intermingled with:... </fo:block> </fo:static-content> <fo:flow> <fo:block>Any text, intermingled with:... </fo:block> </fo:flow> </fo:page-sequence> </fo:root>