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

Re: math get maximum and subtract 1

Subject: Re: math get maximum and subtract 1
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 25 Jul 2002 11:31:13 +0100
subtract table
Hi Sascha,

> i tried to implement that but it doesn't work. I thought i
> understand what your're up to but... no output at all- please have a
> look: ( column widths not yet dynamic, and i don't see why there is
> only @col=0 processed, or isn't it? or is that cause if @col=0 is
> "reached" we need a new row?!) just a little confused.... :-/
> anyway- the template is called but i don't get any output! what's
> wrong here`?

No idea. I tried with the source and template that you posted (in a
stylesheet stripping whitespace and doing indenting) and got the
output:

<fo:table xmlns:fo="http://www.w3.org/1999/XSL/Format" table-layout="fixed" width="100%">
   <fo:table-column column-width="proportional-column-width(50)"/>
   <fo:table-column column-width="proportional-column-width(50)"/>
   <fo:table-body>
      <fo:table-row>
         <fo:table-cell>VerantwortlicherText</fo:table-cell>
         <fo:table-cell>Externe VorschriftenText</fo:table-cell>
      </fo:table-row>
      <fo:table-row>
         <fo:table-cell>ProzesszielText</fo:table-cell>
         <fo:table-cell>HinweiseText</fo:table-cell>
      </fo:table-row>
      <fo:table-row>
         <fo:table-cell>MessgrösseText</fo:table-cell>
         <fo:table-cell>PotenzialText</fo:table-cell>
      </fo:table-row>
      <fo:table-row>
         <fo:table-cell>Benötigte InformationenText</fo:table-cell>
         <fo:table-cell>Mitgeltende UnterlagenText</fo:table-cell>
      </fo:table-row>
      <fo:table-row/>
   </fo:table-body>
</fo:table>

The only thing that's missing is the last row, which was a mistake on
my part. The xsl:for-each for iterating of the DESCRIPTION_ITEMs to
create the cells should be:

  <xsl:for-each select="../DESCRIPTION_ITEM
                          [(position() - 1) mod $nrows =
                           current()/@row]">
    <fo:table-cell>
      <xsl:apply-templates />
    </fo:table-cell>
  </xsl:for-each>

because 5 mod 5 = 0 rather than 5.

But I doubt that change will solve your problem of getting no output
at all... Perhaps if you posted the full stylesheet and source
document we'd have more luck helping you with that.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Re: math get maximum and subtract 1, (continued)
        • sascha - Wed, 24 Jul 2002 14:18:50 -0400 (EDT)
        • sascha - Thu, 25 Jul 2002 01:50:26 -0400 (EDT)
        • Jeni Tennison - Thu, 25 Jul 2002 04:50:03 -0400 (EDT)
        • sascha - Thu, 25 Jul 2002 06:01:36 -0400 (EDT)
        • Jeni Tennison - Thu, 25 Jul 2002 06:31:13 -0400 (EDT) <=
        • sascha - Thu, 25 Jul 2002 06:44:57 -0400 (EDT)
        • sascha - Mon, 29 Jul 2002 08:19:17 -0400 (EDT)
        • Jeni Tennison - Tue, 30 Jul 2002 05:09:18 -0400 (EDT)
        • sascha - Tue, 30 Jul 2002 06:43:39 -0400 (EDT)

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-2013 All Rights Reserved.