[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: math get maximum and subtract 1
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|