From e659181a5252a64c980edcbf5463c72f39df79a1 Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Sat, 22 Jan 2005 06:24:25 +0000 Subject: [PATCH] Adds support for side floats in FO output. --- xsl/params/body.end.indent.xml | 32 +++++++++++ xsl/params/body.start.indent.xml | 32 +++++++++++ xsl/params/margin.note.float.type.xml | 64 +++++++++++++++++++++ xsl/params/margin.note.properties.xml | 49 ++++++++++++++++ xsl/params/margin.note.title.properties.xml | 27 +++++++++ xsl/params/margin.note.width.xml | 29 ++++++++++ xsl/params/sidebar.float.type.xml | 2 +- xsl/params/sidebar.float.width.xml | 29 ++++++++++ xsl/params/sidebar.title.properties.xml | 27 +++++++++ 9 files changed, 290 insertions(+), 1 deletion(-) create mode 100644 xsl/params/body.end.indent.xml create mode 100644 xsl/params/body.start.indent.xml create mode 100644 xsl/params/margin.note.float.type.xml create mode 100644 xsl/params/margin.note.properties.xml create mode 100644 xsl/params/margin.note.title.properties.xml create mode 100644 xsl/params/margin.note.width.xml create mode 100644 xsl/params/sidebar.float.width.xml create mode 100644 xsl/params/sidebar.title.properties.xml diff --git a/xsl/params/body.end.indent.xml b/xsl/params/body.end.indent.xml new file mode 100644 index 000000000..86617cf22 --- /dev/null +++ b/xsl/params/body.end.indent.xml @@ -0,0 +1,32 @@ + + +body.end.indent + + + +body.end.indent +The end-indent for the body text + + + + + + + + +Description + +This end-indent property is added to the fo:flow +for certain page sequences. Which page-sequences it is +applied to is determined by the template named +set.flow.properties. +By default, that template adds it to the flow +for page-sequences using the body +master-reference, as well as appendixes and prefaces. + + +See also body.start.indent. + + + + diff --git a/xsl/params/body.start.indent.xml b/xsl/params/body.start.indent.xml new file mode 100644 index 000000000..53242df7a --- /dev/null +++ b/xsl/params/body.start.indent.xml @@ -0,0 +1,32 @@ + + +body.start.indent + + + +body.start.indent +The start-indent for the body text + + + + + + + + +Description + +This start-indent property is added to the fo:flow +for certain page sequences. Which page-sequences it is +applied to is determined by the template named +set.flow.properties. +By default, that template adds it to the flow +for page-sequences using the body +master-reference, as well as appendixes and prefaces. + + +See also body.end.indent. + + + + diff --git a/xsl/params/margin.note.float.type.xml b/xsl/params/margin.note.float.type.xml new file mode 100644 index 000000000..a735dbbce --- /dev/null +++ b/xsl/params/margin.note.float.type.xml @@ -0,0 +1,64 @@ + + +margin.note.float.type +list + + +margin.note.float.type +Select type of float for margin note customizations + + + + + + + + +Description + +Selects the type of float for margin notes. +DocBook does not define a margin note element, so this +feature must be implemented as a customization of the stylesheet. +See margin.note.properties for +an example. + + + +If margin.note.float.type is +none, then +no float is used. + + + +If margin.note.float.type is +before, then +the float appears at the top of the page. On some processors, +that may be the next page rather than the current page. + + + +If margin.note.float.type is +left or +start, then +a left side float is used. + + + +If margin.note.float.type is +right or +end, then +a right side float is used. + + + +If your XSL-FO processor supports floats positioned on the +inside or +outside +of double-sided pages, then you have those two +options for side floats as well. + + + + + + diff --git a/xsl/params/margin.note.properties.xml b/xsl/params/margin.note.properties.xml new file mode 100644 index 000000000..b6b551858 --- /dev/null +++ b/xsl/params/margin.note.properties.xml @@ -0,0 +1,49 @@ + + +margin.note.properties +attribute set + + +margin.note.properties +Attribute set for margin.note properties + + + + + + 90% + start + + + + +Description + +The styling for margin notes. +By default, margin notes are not implemented for any +element. A stylesheet customization is needed to make +use of this attribute-set. + +You can use a template named floater +to create the customization. +That template can create side floats by specifying the +content and characteristics as template parameters. + + +For example: + + + + + + + + + + + + +]]> + + + diff --git a/xsl/params/margin.note.title.properties.xml b/xsl/params/margin.note.title.properties.xml new file mode 100644 index 000000000..67ac3ad51 --- /dev/null +++ b/xsl/params/margin.note.title.properties.xml @@ -0,0 +1,27 @@ + + +margin.note.title.properties +attribute set + + +margin.note.title.properties +Attribute set for margin note titles + + + + + + bold + false + start + always + + + + +Description + +The styling for margin note titles. + + + diff --git a/xsl/params/margin.note.width.xml b/xsl/params/margin.note.width.xml new file mode 100644 index 000000000..342d3150b --- /dev/null +++ b/xsl/params/margin.note.width.xml @@ -0,0 +1,29 @@ + + +margin.note.width + + +margin.note.width +Set the default width for margin notes + + + + + + + + +Description + +Sets the default width for margin notes when used as a side float. +The width determines the degree to which the margin note block intrudes into +the text area. + +If margin.note.float.type is +before or +none, then +this parameter is ignored. + + + + diff --git a/xsl/params/sidebar.float.type.xml b/xsl/params/sidebar.float.type.xml index a248256ff..12f39df80 100644 --- a/xsl/params/sidebar.float.type.xml +++ b/xsl/params/sidebar.float.type.xml @@ -43,7 +43,7 @@ a left side float is used. If sidebar.float.type is right or end, then -a left side float is used. +a right side float is used. diff --git a/xsl/params/sidebar.float.width.xml b/xsl/params/sidebar.float.width.xml new file mode 100644 index 000000000..ee5e3fe5c --- /dev/null +++ b/xsl/params/sidebar.float.width.xml @@ -0,0 +1,29 @@ + + +sidebar.float.width + + +sidebar.float.width +Set the default width for sidebars + + + + + + + + +Description + +Sets the default width for sidebars when used as a side float. +The width determines the degree to which the sidebar block intrudes into +the text area. + +If sidebar.float.type is +before or +none, then +this parameter is ignored. + + + + diff --git a/xsl/params/sidebar.title.properties.xml b/xsl/params/sidebar.title.properties.xml new file mode 100644 index 000000000..e9594666c --- /dev/null +++ b/xsl/params/sidebar.title.properties.xml @@ -0,0 +1,27 @@ + + +sidebar.title.properties +attribute set + + +sidebar.title.properties +Attribute set for sidebar titles + + + + + + bold + false + start + always + + + + +Description + +The styling for sidebars titles. + + + -- 2.40.0