[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: "sascha" <sascha@xxxxxxxxxx>
Date: Thu, 25 Jul 2002 12:04:46 +0200
column width maximum xsl
Thanks again,
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`?



<xsl:template match="DESCRIPTION_TABLE">

<xsl:variable name="nrows" select="DESCRIPTION_ITEM[last()]/@row + 1" />

  <fo:table 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>
      <xsl:for-each select="DESCRIPTION_ITEM[@col = 0]">
    <fo:table-row>
      <xsl:for-each select="../DESCRIPTION_ITEM[position() mod $nrows =
current()/@row + 1]">
        <fo:table-cell>
          <xsl:apply-templates />
        </fo:table-cell>
      </xsl:for-each>
    </fo:table-row>
  </xsl:for-each>

    </fo:table-body>
  </fo:table>
</xsl:template>



----- Original Message -----
From: "Jeni Tennison" <jeni@xxxxxxxxxxxxxxxx>

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


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


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