Subject: Re: math get maximum and subtract 1
From: "sascha" <sascha@xxxxxxxxxx>
Date: Wed, 31 Jul 2002 16:43:24 +0200
|
Hello again,
I tried to get into that , but i don't know how to change the for-each
syntax.
It's a locigal problem....
The loop around the rows is still correct , isnt it? Well at least it
creates the right number of rows.
<xsl:for-each select="DESCRIPTION_ITEM[@col = 0]">
<fo:table-row>
But this seems to need a correction
<xsl:for-each select="../DESCRIPTION_ITEM [(position() - 1) mod $nrows
= current()/@row]">
I know, you tried to explain that to me and i understood what you described,
but i don't get how to change it to work with the new input
Could you please just give me another hint?
Any more info needed?
Sascha
----- Original Message -----
From: "Jeni Tennison" <jeni@xxxxxxxxxxxxxxxx>
> Yes; it looks like they're sorting it by row first now, rather than by
> column. That's great, since it still means that the last
> DESCRIPTION_ITEM in the DESCRIPTION_TABLE has the maximum row/col, so
> you can still use:
>
> <xsl:variable name="nrow"
> select="/DESCRIPTION_TABLE/DESCRIPTION_ITEM[last()]/@row" />
>
> <xsl:variable name="ncol"
> select="/DESCRIPTION_TABLE/DESCRIPTION_ITEM[last()]/@col" />
...
<xsl:for-each select="DESCRIPTION_ITEM[@col = 0]">
<fo:table-row>
<xsl:for-each select="../DESCRIPTION_ITEM [(position() - 1) mod $nrows
= current()/@row]">
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: math get maximum and subtract 1, (continued)
- Jeni Tennison - Tue, 30 Jul 2002 05:09:18 -0400 (EDT)
- sascha - Tue, 30 Jul 2002 06:43:39 -0400 (EDT)
- Jeni Tennison - Tue, 30 Jul 2002 07:03:30 -0400 (EDT)
- sascha - Wed, 31 Jul 2002 06:50:52 -0400 (EDT)
- sascha - Wed, 31 Jul 2002 10:39:34 -0400 (EDT) <=
- Jeni Tennison - Wed, 31 Jul 2002 10:57:52 -0400 (EDT)
- sascha - Wed, 31 Jul 2002 11:07:37 -0400 (EDT)
- sascha - Tue, 30 Jul 2002 06:39:28 -0400 (EDT)
- Américo Albuquerque - Tue, 30 Jul 2002 06:56:16 -0400 (EDT)
|
|