[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: FO border-end-width conditionality discard

Subject: Re: FO border-end-width conditionality discard
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jan 2009 12:32:24 +1100
Re:  FO border-end-width conditionality discard
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.