From 7ed52aa6900d6214d6acb0baea11dcf90909a077 Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Wed, 23 Nov 2011 22:01:40 +0000 Subject: [PATCH] Complete support for side regions. --- xsl/params/body.margin.inner.xml | 9 +++- xsl/params/body.margin.outer.xml | 9 +++- .../inner.region.content.properties.xml | 48 +++++++++++++++++ .../outer.region.content.properties.xml | 47 +++++++++++++++++ xsl/params/region.inner.extent.xml | 9 +++- xsl/params/region.inner.properties.xml | 51 +++++++++++++++++++ xsl/params/region.outer.extent.xml | 8 ++- xsl/params/region.outer.properties.xml | 51 +++++++++++++++++++ xsl/params/side.region.precedence.xml | 45 ++++++++++++++++ 9 files changed, 273 insertions(+), 4 deletions(-) create mode 100644 xsl/params/inner.region.content.properties.xml create mode 100644 xsl/params/outer.region.content.properties.xml create mode 100644 xsl/params/region.inner.properties.xml create mode 100644 xsl/params/region.outer.properties.xml create mode 100644 xsl/params/side.region.precedence.xml diff --git a/xsl/params/body.margin.inner.xml b/xsl/params/body.margin.inner.xml index b4c43830d..6cad6dc72 100644 --- a/xsl/params/body.margin.inner.xml +++ b/xsl/params/body.margin.inner.xml @@ -15,7 +15,7 @@ -0.5in +0in @@ -41,5 +41,12 @@ is fo:region-start for all pages. both left-to-right and right-to-left writing modes. The default value is zero. + +See also +region.inner.extent, +region.outer.extent, +body.margin.outer, +side.region.precedence. + diff --git a/xsl/params/body.margin.outer.xml b/xsl/params/body.margin.outer.xml index 48833f92f..4101b5564 100644 --- a/xsl/params/body.margin.outer.xml +++ b/xsl/params/body.margin.outer.xml @@ -15,7 +15,7 @@ -0.5in +0in @@ -42,5 +42,12 @@ is fo:region-end for all pages. both left-to-right and right-to-left writing modes. The default value is zero. + +See also +region.inner.extent, +region.outer.extent, +body.margin.inner, +side.region.precedence. + diff --git a/xsl/params/inner.region.content.properties.xml b/xsl/params/inner.region.content.properties.xml new file mode 100644 index 000000000..72d932255 --- /dev/null +++ b/xsl/params/inner.region.content.properties.xml @@ -0,0 +1,48 @@ + + +inner.region.content.properties +attribute set + + +inner.region.content.properties +Properties of running inner side content + + + + + + + + + +Description + +The FO stylesheet supports optional side regions +similar to the header and footer regions. +Any attributes declared in this attribute-set +are applied to the fo:block in the side region +on the inner side (binding side) of the page. +This corresponds to the start +region on odd-numbered pages and the end +region on even-numbered pages. +For single-sided output, it always corresponds to +the start region. + +You can customize the template named +inner.region.content to specify +the content of the inner side region. + +See also +region.inner.properties, +page.margin.inner, +body.margin.inner, +and the corresponding outer +parameters. + + + diff --git a/xsl/params/outer.region.content.properties.xml b/xsl/params/outer.region.content.properties.xml new file mode 100644 index 000000000..43695c6bf --- /dev/null +++ b/xsl/params/outer.region.content.properties.xml @@ -0,0 +1,47 @@ + + +outer.region.content.properties +attribute set + + +outer.region.content.properties +Properties of running outer side content + + + + + + + + + +Description + +The FO stylesheet supports optional side regions +similar to the header and footer regions. +Any attributes declared in this attribute-set +are applied to the fo:block in the side region +on the outer side (opposite the binding side) of the page. +This corresponds to the start +region on odd-numbered pages and the end +region on even-numbered pages. +For single-sided output, it always corresponds to +the start region. + +You can customize the template named +outer.region.content to specify +the content of the outer side region. + +See also +region.outer.properties, +page.margin.outer, +body.margin.outer, +and the corresponding inner +parameters. + + diff --git a/xsl/params/region.inner.extent.xml b/xsl/params/region.inner.extent.xml index 234848711..ab550cf6e 100644 --- a/xsl/params/region.inner.extent.xml +++ b/xsl/params/region.inner.extent.xml @@ -15,7 +15,7 @@ -0.4in +0in @@ -40,5 +40,12 @@ be sure to also enlarge the body.margin.inner parameter to make room for its content, otherwise any text in the side region may overlap with the body text. +See also +region.outer.extent, +body.margin.inner, +body.margin.outer, +side.region.precedence. + + diff --git a/xsl/params/region.inner.properties.xml b/xsl/params/region.inner.properties.xml new file mode 100644 index 000000000..44e8bb4ba --- /dev/null +++ b/xsl/params/region.inner.properties.xml @@ -0,0 +1,51 @@ + + +region.inner.properties +attribute set + + +region.inner.properties +Properties of running inner side region + + + + + + 0 + 0 + 90 + + + + +Description + +The FO stylesheet supports optional side regions +similar to the header and footer regions. +Any attributes declared in this attribute-set +are applied to the region element in the page master +on the inner side (binding side) of the page. +This corresponds to <fo:regin-start> +on odd-numbered pages and <fo:region-end> +on even-numbered pages. +For single-sided output, it always corresponds to +<fo:regin-start>. + +You can customize the template named +inner.region.content to specify +the content of the inner side region. + +See also +inner.region.content.properties, +page.margin.inner, +body.margin.inner, +and the corresponding outer +parameters. + + + diff --git a/xsl/params/region.outer.extent.xml b/xsl/params/region.outer.extent.xml index 42cb218d3..338c2a184 100644 --- a/xsl/params/region.outer.extent.xml +++ b/xsl/params/region.outer.extent.xml @@ -15,7 +15,7 @@ -0.4in +0in @@ -40,5 +40,11 @@ be sure to also enlarge the body.margin.outer parameter to make room for its content, otherwise any text in the side region may overlap with the body text. +See also +region.inner.extent, +body.margin.inner, +body.margin.outer, +side.region.precedence. + diff --git a/xsl/params/region.outer.properties.xml b/xsl/params/region.outer.properties.xml new file mode 100644 index 000000000..1ed1c5052 --- /dev/null +++ b/xsl/params/region.outer.properties.xml @@ -0,0 +1,51 @@ + + +region.outer.properties +attribute set + + +region.outer.properties +Properties of running outer side region + + + + + + 0 + 0 + 90 + + + + +Description + +The FO stylesheet supports optional side regions +similar to the header and footer regions. +Any attributes declared in this attribute-set +are applied to the region element in the page master +on the outer side (opposite the binding side) of the page. +This corresponds to <fo:regin-start> +on odd-numbered pages and <fo:region-end> +on even-numbered pages. +For single-sided output, it always corresponds to +<fo:regin-start>. + +You can customize the template named +outer.region.content to specify +the content of the outer side region. + +See also +outer.region.content.properties, +page.margin.outer, +body.margin.outer, +and the corresponding inner +parameters. + + + diff --git a/xsl/params/side.region.precedence.xml b/xsl/params/side.region.precedence.xml new file mode 100644 index 000000000..604a29ee9 --- /dev/null +++ b/xsl/params/side.region.precedence.xml @@ -0,0 +1,45 @@ + + +side.region.precedence +string + + +side.region.precedence +Determines side region page layout precedence + + +false + + +Description + +If optional side regions on a page +are established using parameters such as +body.margin.inner, +region.inner.extent, etc., then this +parameter determines what happens at the corners where the +side regions meet the header and footer regions. + +If the value of this parameter is true, +then the side regions have precedence and extend higher +and lower, while the header and footer regions are narrower +and fit inside the side regions. + +If the value of this parameter is false +(the default value), then the header and footer regions +have precedence and extend over and below the side regions. +Any value other than true or +false is taken to be false. + +See also +region.inner.extent, +region.outer.extent, +body.margin.inner, +body.margin.outer. + + -- 2.40.0