This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dynamic column in table


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]