Subject: Re: Dynamic column in table
From: Mike Brown <mike@xxxxxxxx>
Date: Sun, 25 Aug 2002 11:59:27 -0600 (MDT)
|
Shabbir Rahman wrote:
> [see original message for XML]
>
> I have to create a table like spreadsheet for each ostl.
> Can anyone help me with a example of xsl-fo file or xsl file.
> Output will be like this
>
> Color\Size S M XL L XXL Total
> Green 5000 5000 4000 7000 0 21000
> Baown/ 3000 6000 7000 5000 3000 24000
> Beige Melange
>
> Total 8000 11000 11000 12000 3000 45000
When you say "dynamic column", do you mean you want the columns to be
determined by the sizes in that ostl, as opposed to being hard-coded as
S,M,XL,L,XXL? If so, then this is a grouping problem.
Techniques for table generation and grouping are discussed
http://www.dpawson.co.uk/ and http://www.jenitennison.com/ .
You should review the examples there and experiment.
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|