Re: [xsl] Header Text Overflows Body Section Title

Subject: Re: [xsl] Header Text Overflows Body Section Title
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Nov 2007 15:07:00 -0500
At 2007-11-19 11:53 -0800, Horace Burke wrote:
Thanks! Do you have an example that you can share?

Honestly, it was as simple as:


  <xsl:variable name="classification">
    ....calculate classification string in complex method
  </xsl:variable>
  <xsl:variable name="header-lines"
                select="floor( string-length($classification)/50 ) + 1"/>

  <simple-page-geometry.....
    <region-body margin-top="{$header-lines} * 1.2em" ...... />
    <region-before extent="{$header-lines} * 1.2em"/>
    ...

I hope this helps.

. . . . . . . . . . . . Ken

--
Comprehensive in-depth XSLT2/XSL-FO1.1 classes: Austin TX,Jan-2008
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread