[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How can I create CROSSTAB ?
Hi all, I have some records extracted from a db from which I would like to generate crosstab reports in html via xslt. xml source: <service_records> <Invoice_rec> <departement>department1</departement> <servicetype>national carrier</servicetype> <calls>100</calls> <charge>1500</charge> </invoice_rec> <Invoice_rec> <departement>department1</departement> <servicetype>international carrier</servicetype> <calls>150</calls> <charge>3000</charge> </invoice_rec> <Invoice_rec> <departement>department2</departement> <servicetype>national carrier</servicetype> <calls>110</calls> <charge>1200</charge> </invoice_rec> </service_records> I would like the following html output, I would like to know how I can make correct select statement (choose/when/otherwise) on a node content (text or number). <html> <p>department1</p> <table><tr> <td>national carrier</td><td>100</td><td>1500</td></tr> <tr><td>international carrier</td><td>150</td><td>3000</td></tr> </table> <p>department2</p> <table><tr> <td>national carrier</td><td>110</td><td>1200</td></tr> </table> </html> If someone has already done this? thanks david 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
|