Subject: Re: [xsl] math get maximum and subtract 1 From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Thu, 25 Jul 2002 11:31:13 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] math get maximum and subt, sascha | Thread | Re: [xsl] math get maximum and subt, sascha |
RE: [xsl] problems with match, Jarno . Elovirta | Date | RE: [xsl] special chars appearing i, Jarno . Elovirta |
Month |