Re: [xsl] FO border-end-width conditionality discard

Subject: Re: [xsl] FO border-end-width conditionality discard
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jan 2009 12:32:24 +1100
At 2009-01-25 18:03 -0700, Karl Stubsjoen wrote:
Consider:

(begin report)
page-sequence
  block 1px solid border
  block 1px solid border
  block 1px solid border
  block 1px solid border
page-sequence
  block 1px solid border
  block 1px solid border
  block 1px solid border
  block 1px solid border
page-sequence
  block 1px solid border
  block 1px solid border
  block 1px solid border
  block 1px solid border
(end report)

How do you discard the border for the last block object in each
page-sequence above?

In your report you are explicitly writing an explicit "page-sequence" instead of an implicit "page break".


If it is indeed the case that you are packaging your blocks within page sequences, then algorithmically in your XSLT you are somehow working with a group of information items, each producing a block, with the group of blocks within a page sequence.

In this case, you should be able to do something like:

  <xsl:if test="position()=last()">
    <xsl:attribute name="border-end-width">0pt</xsl:attribute>
  </xsl:if>

I hope this helps.

. . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes:
:  Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread